Main_color & accent_color in responsive display ad

13 views
Skip to first unread message

nikolay...@ostrovok.ru

unread,
Feb 8, 2019, 5:34:12 AM2/8/19
to AdWords API and Google Ads API Forum
when i try to create responsive display ad with google ads api beta v0_7 i get error WRITE_ACCESS_DENIED for Main_color & accent_color fields. But if i pass this fields, ad creates well.


googleadsapi...@google.com

unread,
Feb 8, 2019, 4:36:18 PM2/8/19
to AdWords API and Google Ads API Forum
Hi Nikolay,

I was able to create a ResponsiveDisplayAd successfully by passing just the values as below in Java:

ResponsiveDisplayAdInfo responsiveDisplayAdInfo =
ResponsiveDisplayAdInfo.newBuilder()
.setShortHeadline(StringValue.of("I am short headline"))
.setLongHeadline(StringValue.of("I am long headline"))
.setDescription(StringValue.of("I am desc"))
.setBusinessName(StringValue.of("I am bus name"))
.setMarketingImage(StringValue.of("customers/<customerid>/mediaFiles/<mediafileid>"))
.build();

Ad ad =
Ad.newBuilder()
.setResponsiveDisplayAd(responsiveDisplayAdInfo)
.addFinalUrls(StringValue.of("http://www.example.com"))
.build();

I would suggest to retry with a valid media file id and let me know if you still face issues.

Regards,
Dhanya, Google Ads API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

nikolay...@ostrovok.ru

unread,
Feb 10, 2019, 5:49:26 AM2/10/19
to AdWords API and Google Ads API Forum
Thanks for your message. But I want to know, can I change a color of responsive display ad with api.

googleadsapi...@google.com

unread,
Feb 11, 2019, 11:24:12 AM2/11/19
to AdWords API and Google Ads API Forum
Hi Nikolay,

Just like AdWords API, these features are available to whitelisted customers as stated in this section of the guide. Please let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages