AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE for TemplateAd 419 since july 18th 2019

59 views
Skip to first unread message

Alex Oliveira

unread,
Jul 22, 2019, 3:35:29 AM7/22/19
to adwor...@googlegroups.com
I have an automated test that creates an HTML5 ad (TemplateAd, id 419) and it worked fine until the 17th. Today, 20th, without any changes on my end, it's returning errors (haven't checking on the 18th and 19th).

The data field is omitted below, but it's a base64 of a sample zipfile that I copied from Google, and it was working fine previously, including I could get its preview URL.

Was any change deployed since the july 17th that could have broken this endpoint?

Request header:
{'Accept'=>'*/*', 'Authorization'=>'Bearer [redacted]', 'Content-Length'=>'74863', 'Content-Type'=>'text/xml;charset=UTF-8', 'Date'=>'Sat, 20 Jul 2019 18:04:22 GMT', 'Soapaction'=>'"mutate"', 'User-Agent'=>'Ruby AdHoc (AwApi-Ruby/1.4.0, Common-Ruby/1.0.2, GoogleAdsSavon/1.0.3, ruby/2.3.1, HTTPI/2.4.4, httpclient)'}


Request body:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://adwords.google.com/api/adwords/cm/v201809" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header
><wsdl:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><userAgent>Ruby AdHoc (AwApi-Ruby/1.4.0, Common-Ruby/1.0.2, GoogleAdsSavon/1.0.3, ruby/2.3.1, HTTPI/2.4.4, httpclient)</userAgent><developerToken>[REDACTED]</developerToken><clientCustomerId>921-215-7481</clientCustomerId><partialFailure>true</partialFailure></wsdl:RequestHeader></env:Header><env:Body><mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809"><operations><operator>ADD</operator><operand><adGroupId>76855780059</adGroupId><ad xsi:type="TemplateAd"><displayUrl>http://lvh.me:3000</displayUrl><finalUrls>http://lvh.me:3000/1-2?utm_source=apisync&amp;utm_medium=cpc&amp;utm_campaign=1&amp;utm_content=ad-2</finalUrls><templateId>419</templateId><templateElements><uniqueName>adData</uniqueName><fields><name>Custom_layout</name><type>MEDIA_BUNDLE</type><fieldMedia xsi:type="MediaBundle"><type>MEDIA_BUNDLE</type><data>[REDACTED]</data><entryPoint>carousel/index.html</entryPoint></fieldMedia></fields><fields><name>layout</name><type>ENUM</type><fieldText>Custom</fieldText></fields></templateElements><dimensions><width>300</width><height>250</height></dimensions><name>Template Ad: 300x250</name></ad></operand></operations></mutate></env:Body></env:Envelope>


Response body:
<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Header><ResponseHeader xmlns=\"https://adwords.google.com/api/adwords/cm/v201809\"><requestId>00058e20ac4cedb002ab42bb580a4a95</requestId><serviceName>AdGroupAdService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>436</responseTime></ResponseHeader></soap:Header>
<soap:Body>
<mutateResponse xmlns=\"https://adwords.google.com/api/adwords/cm/v201809\">
<rval>
<ListReturnValue.Type>AdGroupAdReturnValue</ListReturnValue.Type>
<value></value>
<partialFailureErrors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"AdError\"><fieldPath>operations[0].operand.ad.templateId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>templateId</field></fieldPathElements><trigger>419</trigger><errorString>AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</errorString><ApiError.Type>AdError</ApiError.Type><reason>USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</reason></partialFailureErrors></rval></mutateResponse></soap:Body></soap:Envelope>

Thanks.

Google Ads API Forum Advisor Prod

unread,
Jul 22, 2019, 3:58:20 AM7/22/19
to adwor...@googlegroups.com
Hi Alex,

Thank you for reaching out and sharing the logs from your test account request. Do note, however, that we do not recommend sharing complete SOAP logs generated from your production accounts so as to avoid exposing private and sensitive information. For more details, you may check out our forum posting guidelines.

Moving forward to your issue, this error occurs due to the account not being whitelisted to create the HTML 5 (template 419) ads. You can request to be whitelisted by filling up and submitting this application form. You may also note that I cannot guarantee if test accounts would be approved as the approval of the whitelist request is outside of our scope.

If you wish to learn more about the whitelist request and if you have any additional clarifications regarding the approval, you can reach out to the product experts via the Google Ads Community Forum. I hope this helps.

Best regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UEFyCG:ref

Alex Oliveira

unread,
Jul 22, 2019, 9:16:00 AM7/22/19
to adsapifor...@gmail.com, adwor...@googlegroups.com
Hi Peter,

Thanks for the reply. Fortunately, this is to my test account and all keys are redacted :)

As for the issue, I understand there's a whitelisting process, however, it was working on my test account until 3 or 4 days ago so I was able to develop it. I can even send screenshots of the ad created on my Dashboard.

I'll fill in the whitelist form, but I don't think that's the problem. It's probably something technical that was deployed in the meantime.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/CYfAzYAGHQU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/bfXA9000000000000000000000000000000000000000000000PV1A4X00R1_5eBBLTVWldYsFkmUEPg%40sfdc.net.

Google Ads API Forum Advisor Prod

unread,
Jul 22, 2019, 10:28:09 PM7/22/19
to adwor...@googlegroups.com
Hi Alex,

There had been no recent announcements from our blog, apart from this blog post from 2018. Also, since then, there had been no issues that I am aware of that is related to the error you encountered. However, should the issue persist, please let me know immediately and send to me your updated SOAP request and response logs so I can further investigate.

Thanks and regards,

Alex Oliveira

unread,
Jul 23, 2019, 11:24:52 AM7/23/19
to adsapifor...@gmail.com, adwor...@googlegroups.com
Thanks Peter 😄 I'll outline below everything I did.

Context

For context, and to recap: I have got a client that will spend a lot of money over the next 12 months with HTML5 ads, and so I need to build the integration (with my test account).

I started developing in the beginning of july, and was creating HTML5 ads via API on my test account just fine. Here's a screenshot proving it:

Screen Shot 2019-07-23 at 12.12.50.png

(it's in portuguese, so I added a few red labels to help understanding that it's a test account)

The Problem

Suddenly, the API stopped working alleging I don't have access to the API. I have an automated test that creates an HTML5 ad (TemplateAd, id 419) and it worked fine until the 17th. On the 20th, without any changes on my end, it's returning errors.

Below is the request I'm doing and the response I'm getting. I redacted credentials and critical data. It's a base64 of a sample zipfile that I copied from Google, and it was working fine previously, including I could get its preview URL.

Request header:
{'Accept'=>'*/*', 'Authorization'=>'Bearer [redacted]', 'Content-Length'=>'74863', 'Content-Type'=>'text/xml;charset=UTF-8', 'Date'=>'Sat, 20 Jul 2019 18:04:22 GMT', 'Soapaction'=>'"mutate"', 'User-Agent'=>'Ruby AdHoc (AwApi-Ruby/1.4.0, Common-Ruby/1.0.2, GoogleAdsSavon/1.0.3, ruby/2.3.1, HTTPI/2.4.4, httpclient)'}


Request body:

<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://adwords.google.com/api/adwords/cm/v201809" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header
><wsdl:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><userAgent>Ruby AdHoc (AwApi-Ruby/1.4.0, Common-Ruby/1.0.2, GoogleAdsSavon/1.0.3, ruby/2.3.1, HTTPI/2.4.4, httpclient)</userAgent><developerToken>[REDACTED]</developerToken><clientCustomerId>921-215-7481</clientCustomerId><partialFailure>true</partialFailure></wsdl:RequestHeader></env:Header><env:Body><mutate xmlns="https://adwords.google.com/api/adwords/cm/v201809"><operations><operator>ADD</operator><operand><adGroupId>76855780059</adGroupId><ad xsi:type="TemplateAd"><displayUrl>http://lvh.me:3000</displayUrl><finalUrls>http://lvh.me:3000/1-2?utm_source=apisync&amp;utm_medium=cpc&amp;utm_campaign=1&amp;utm_content=ad-2</finalUrls><templateId>419</templateId><templateElements><uniqueName>adData</uniqueName><fields><name>Custom_layout</name><type>MEDIA_BUNDLE</type><fieldMedia xsi:type="MediaBundle"><type>MEDIA_BUNDLE</type><data>[REDACTED]</data><entryPoint>carousel/index.html</entryPoint></fieldMedia></fields><fields><name>layout</name><type>ENUM</type><fieldText>Custom</fieldText></fields></templateElements><dimensions><width>300</width><height>250</height></dimensions><name>Template Ad: 300x250</name></ad></operand></operations></mutate></env:Body></env:Envelope>


Response body:
<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Header><ResponseHeader xmlns=\"https://adwords.google.com/api/adwords/cm/v201809\"><requestId>00058e20ac4cedb002ab42bb580a4a95</requestId><serviceName>AdGroupAdService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>436</responseTime></ResponseHeader></soap:Header>
<soap:Body>
<mutateResponse xmlns=\"https://adwords.google.com/api/adwords/cm/v201809\">
<rval>
<ListReturnValue.Type>AdGroupAdReturnValue</ListReturnValue.Type>
<value></value>
<partialFailureErrors xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"AdError\"><fieldPath>operations[0].operand.ad.templateId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>templateId</field></fieldPathElements><trigger>419</trigger><errorString>AdError.USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</errorString><ApiError.Type>AdError</ApiError.Type><reason>USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE</reason></partialFailureErrors></rval></mutateResponse></soap:Body></soap:Envelope>


Attempts To Fix It

As per your link above, I sent a request to the application form mentioned asking permission to be able to create HTML5 on my test account, to which I was declined because I need more than $1,000 spent. It's a test account, so obviously there won't be any expenditure.

I ran out of ideas on what to do. I cannot develop with my clients credentials in production. I need access to HTML5 on my test account 😔

Thanks a lot.


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/CYfAzYAGHQU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.

Google Ads API Forum Advisor Prod

unread,
Jul 25, 2019, 3:31:19 AM7/25/19
to adwor...@googlegroups.com
Hello Alex,

I'm confirming what else are the requirements for whitelisting the accounts for HTML5 ads.
In the meantime, as mentioned in our blog, please consider using AMP instead.

Best,
Thanet, Google Ads API Team

ref:_00D1U1174p._5001UEFyCG:ref

Google Ads API Forum Advisor Prod

unread,
Jul 29, 2019, 12:35:23 AM7/29/19
to adwor...@googlegroups.com
Hello Alex,

Your account should have been whitelisted already. Please try again and feel free to reach out to us if you can still face with the problem.

Alexandre de Oliveira

unread,
Jul 29, 2019, 12:45:52 PM7/29/19
to adsapifor...@gmail.com, adwor...@googlegroups.com
Yay it’s working again!

Thanks a lot

-AO
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/CYfAzYAGHQU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages