Hi Peter,
As I have told, I have searched everywhere possible and the link that you
have given me is from AdwordsAPI and I am using googleAds api .. it is
totally different and cannot be used and referred to as a replacement for
another.
I did some more trial and error and I tried this ;
resp_image = ad_group_ad.ad.responsive_display_ad.marketing_images.add()
resp_image.asset.value = 'Landscape Image'
I am getting following error with this :
[2019-05-24 12:37:39,834 - WARNING] Request made: ClientCustomerId: , Host:
googleads.googleapis.com:443, Method:
/google.ads.googleads.v1.services.AdGroupAdService/MutateAdGroupAds, RequestId:
5EIz_vb9mEhLlTLm0P
HYbQ, IsFault: True, FaultMessage: Resource name 'Landscape Image' is
malformed: expected 'customers/{customer_id}/assets/{part_1}'.
Request with ID "5EIz_vb9mEhLlTLm0PHYbQ" failed with status "INVALID_ARGUMENT"
and includes the following errors:
Error with message "Resource name 'Landscape Image' is malformed:
expected 'customers/{customer_id}/assets/{part_1}'.".
On field: operations
On field: create
On field: ad
On field: responsive_display_ad
On field: marketing_images
On field: asset
If I check the adImageAsset link
https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.common#google.ads.googleads.v1.common.AdImageAsset.
It is a StringValue, but it still gives the same error.
Is there anyone who can review the python code and point what's wrong ?
Thanks and Regards,
Vinutha
On Friday, 24 May 2019 13:35:44 UTC+5:30, adsapiforumadvisor wrote:
>
> Hi Vinutha,
>
> My apologies for the inconvenience of having no current guides or examples
> specific to the Google Ads API. However, you may note that the service
> names and fields involved in creating the ResponsiveDisplayAd
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupAdService.ResponsiveDisplayAd>
>
> in the Google Ads API is still similar to the ones used in the old AdWords
> API.
>
> You can refer to this Python example
> <https://developers.google.com/adwords/api/docs/samples/python/advanced-operations#add-a-responsive-display-ad>
>
> from the old AdWords API and you can use the Google Ads API's
> AdGroupAdService
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.AdGroupAdService>
>
> (MutateAdGroupAds method) and to the ResponsiveAdDisplayInfo
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.common#google.ads.googleads.v1.common.ResponsiveDisplayAdInfo>
>
> object to see which fields you can set.
>
> Feel free to write back if you have any further clarifications.
>
> Thanks and regards,
> Peter
> Google Ads API Team
>
> ref:_00D1U1174p._5001UAqMsW:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
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/be6e2479-c5f8-4685-b459-550d1bd747ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.