Hello,

I am trying to update the ad within an app campaign (ACi).
More specifically I am trying to add youtube video assets.
I have got the code samples for app campaigns creation, ad_group creation, 
and ad creation. But I cannot work out how to modify ad_group_ad and how to 
add assets to it.
I tried it this way:
  ad_operation = client.get_type('AdOperation') 
  ad = ad_operation.update
  ad.resource_name = resource_name
  video = ad.app_ad.youtube_videos.add()

And this causes an AttributeError:
---> video = ad.app_ad.youtube_videos.add()
AttributeError: 'RepeatedComposite' object has no attribute 'add'

Any advice would be highly appreciated as I have no ideas how this can be 
done. 
And it would be extremely helpful to get a code sample of modifying an app 
ad in terms of adding or removing assets.

Thank you in advance,
Aleksei

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d49bb9e5-1179-4196-9dba-3c905fba1555n%40googlegroups.com.
  • Go... Aleksei Krizhanovskii
    • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum
      • ... Aleksei Krizhanovskii
        • ... 'Google Ads API Forum Advisor' via AdWords API and Google Ads API Forum

Reply via email to