I am trying to create a simple responsive ad following the reference 
material 
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.common#responsivedisplayadinfo>
 here, 
but I keep getting the error below, not really sure what it's wrong, as it 
looks straight forward to me:

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

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

  #Setting variable values.
  resp_image =  ad_group_ad.ad.responsive_display_ad.marketing_images.add()
  resp_image.asset.value = "7856501228"
  ad_group_ad.ad.responsive_display_ad.headlines.text.value = "headline1  text"
  ad_group_ad.ad.long_headline.text.value = "long_headline text "
  ad_group_ad.ad.descriptions.text.value    = " Descriptions text "
  ad_group_ad.ad.business_name.value        = "Buisness name text "


AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object 
has no attribute 'text'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2469cff9-1b72-480d-a283-ff8d71fbff76%40googlegroups.com.

Reply via email to