Hi,
Are there any python samples available for creating responsive display ads? If not, can someone create a very simple example for setting variable values?
I've done a fair bit of Googling (including
this thread) and the expanded text ad example isn't really cutting it in terms of documentation.
I've followed this code for setting var values, but it's producing an error "AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object has no attribute 'asset'"
## setting variable values.
ad_group_ad.ad.responsive_display_ad.marketing_images.asset.value = '<image name>'
ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1 text"
ad_group_ad.ad.responsive_display_ad.headlines.pinned_field = client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_1
ad_group_ad.ad.long_headline.text.value = "long_headline text "
ad_group_ad.ad.long_headline.pinned_field = client.get_type('ServedAssetFieldTypeEnum',version='v1').HEADLINE_2
ad_group_ad.ad.descriptions.text.value = " Descriptions text "
ad_group_ad.ad.descriptions.pinned_field = client.get_type('ServedAssetFieldTypeEnum', version='v1').DESCRIPTION_1
ad_group_ad.ad.business_name.value = "Buisness name text "
Thanks!
-Matt