Hi Matt, On 3rd May you said "next week", wonder how is it now on 22th, June. Would be great if let us know in which version of `googleads` that is fixed.
Here is my attempt. It doesn't seem `googleads==32.0.0` (newest up until now) has that. ``` $ pip install -U googleads ... Successfully installed googleads-32.0.0 $ cat .venv/lib/python3.9/site-packages/google/ads/googleads/v10/enums/types/ad_type.py|grep 35 <NOTHING> ``` Besides that, I 'd question that, if it is a wise thing to use protobuf in the first place. Back to the adwords API, everything was XML. Which means, if you add a new type of ads, and give them in your response, in the client side, we basically can figure out that and update our code rapidly. However, with protobuf, it is not. Until you release a newer version of the `googleads` library with the new ad structures, in the client side cannot even get the new ad in a normal way. Here is a minimal example to explain that. `pip install googleads==32.0.0` and create a <35 DISCOVERY_MULTI_ASSET_AD> in your AdWords account before run it. ``` def main(client, account_id, ad_id): query = ( "SELECT" " ad_group_ad.ad.discovery_multi_asset_ad.business_name" " FROM ad_group_ad" " WHERE ad_group_ad.ad.id = %s" ) % ad_id print('Run query:', query) customer_service = client.get_service("GoogleAdsService") search_request = client.get_type("SearchGoogleAdsStreamRequest") search_request.query = query search_request.customer_id = account_id stream = customer_service.search_stream(search_request) for batch in stream: for row in batch.results: x = row.ad_group_ad.ad.discovery_multi_asset_ad print(x) if __name__ == '__main__': main( GoogleAdsClient.load_from_dict(<YOUR CREDENTIALS>) , <THE ACCOUNT ID 111-222-3333>, <THE ID OF THE DISCOVERY_MULTI_ASSET_AD> ) ``` You would suffer ``` File ".........." in main x = row.ad_group_ad.ad.discovery_multi_asset_ad File ".........", in __getattr__ raise AttributeError(str(ex)) AttributeError: 'discovery_multi_asset_ad' ``` Wonder if I 'm doing wrong, and appreciate any hint to fix that. Best regards, Zhe On Tuesday, May 3, 2022 at 1:38:20 AM UTC+9 adsapi wrote: > Hi Elliot, > > Thanks for reaching out. Please see the client library forum post kindly > linked by Dorian. Discovery Campaign enums should be supported in the > client library within the next week. > > Regards, > Matt > Google Ads API Team > > [image: Google Logo] > Matt > Google Ads API Team > > > ref:_00D1U1174p._5004Q2aOrY8:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/736f22e8-5810-47ad-b19f-71f1ac21eb76n%40googlegroups.com.