Has anyone tried creating ResponsiveDisplayAds with google ads api ?  I am 
using python and having a tough time. There are no samples as well.

I was able to create the adgroup. I am doing the following :


ad_group_ad_service = client.get_service('AdGroupAdService', version='v1')
ad_group_service = client.get_service('AdGroupService', version='v1')

# Create ad group ad.
ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1')
ad_group_ad = ad_group_ad_operation.create
ad_group_ad.ad_group.value = ad_group_service.ad_group_path(customer_id, 
adgroup_id)
ad_group_ad.status = client.get_type('AdGroupAdStatusEnum',version='v1').PAUSED



## 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 "



I see the following error :

*    ad_group_ad.ad.responsive_display_ad.marketing_images.asset.value = 
'Image Name'*
*AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' 
object has no attribute 'asset'*


I am unable to understand what is going wrong. Can anyone please help ?
Also where do we specify the complete path of the image to  upload it.



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f7bc7aec-f9ed-48a0-9281-cdb1c21b4d6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to