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