QuotaCheckError.INVALID_TOKEN_HEADER

203 views
Skip to first unread message

Алексей Чигинцев

unread,
May 23, 2021, 7:22:13 PM5/23/21
to AdWords API and Google Ads API Forum
Hi, and please accept our apologies in advance for the broken English.

Our developer token has been approved (basic access), but when I try to use the allowed methods (creating report's), the Google Ads server returns an error:
***error***
QuotaCheckError.INVALID_TOKEN_HEADER
New developers must use the Google Ads API.
***error***

Please note that the same requests before access approval (test requests) worked well.
Also I tried to reset the access token and get a new (after the developer's token is approved). Plus, tried to reset the developer token. No result.

I don't use libraries, in this case we send a POST request directly to the address (we use PHP-Yii2 - yiisoft/yii2-httpclient):

Google Ads technical support provided a link to this source, but in our case, we have just started using the Google Ads API and are are making all the requirements in accordance with the new documentation. (also the same queries for the test CustomerIDs worked. Unprotected authorized redirect URIs were also removed from the created web application in Google Cloud Platform Console for our project)

Request info:

Headers:
{
"Authorization": "Bearer {{last_token}}",
"skipReportHeader": true,
"skipColumnHeader": true,
"skipReportSummary": true,
"developerToken": "{{approved_token}}",
"clientCustomerId": "{{our_customer_id}}"
}

Data:
{
  "__fmt": "TSV",
  "__rdquery": "SELECT Date, CampaignName, CampaignGroupId, CampaignId, Impressions, Clicks, Ctr, Cost, AverageCpc, Conversions FROM CAMPAIGN_PERFORMANCE_REPORT DURING LAST_7_DAYS"
}

Please help me solve the problem, maybe I missed something in the documentation?
Thank you in advance.

Google Ads API Forum Advisor Prod

unread,
May 24, 2021, 2:32:56 PM5/24/21
to zneny...@gmail.com, adwor...@googlegroups.com
Hello,

I'll take a look and see if this error message is intended or not. I will provide an update as soon as I hear any updates.

Regards,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HD5KB:ref

Алексей Чигинцев

unread,
May 24, 2021, 9:41:20 PM5/24/21
to AdWords API and Google Ads API Forum
Hello, tried again - the error persists.
We need this API, so we really look forward to your comments and recommendations.
 
The developer token was created very recently (a few days ago) and did not touch the updates (April 22), which are mentioned in neighboring similar topics.

понедельник, 24 мая 2021 г. в 23:32:56 UTC+5, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
May 25, 2021, 4:46:33 PM5/25/21
to zneny...@gmail.com, adwor...@googlegroups.com
Hello,

In April, we announced the sunset of the AdWords API (https://ads-developers.googleblog.com/2021/04/upgrade-to-google-ads-api-from-adwords.html). In that blog post, we say, "Any developers applying for a new developer token after today will only be given access to the Google Ads API. " You can take a look at the Google Ads API here (https://developers.google.com/google-ads/api/docs/start). You can use the same developer token and OAuth credentials.

Cheers,
Nadine Wang, Google Ads API Team

 

ref:_00D1U1174p._5004Q2HD5KB:ref

Алексей Чигинцев

unread,
May 31, 2021, 10:20:18 PM5/31/21
to AdWords API and Google Ads API Forum
>> In that blog post, we say, "Any developers applying for a new developer token after today will only be given access to the Google Ads API. "
Sorry I didn't answer right away. Thank you very much, we started working with the new documentation and now everything is fine. The two Google Ads API and AdWords API documentation are confusing, especially when they really look similar (I'm talking about design on sites), it's not immediately clear that they are different projects, and a small paragraph in the article can easily be skipped.
среда, 26 мая 2021 г. в 01:46:33 UTC+5, adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
Jun 1, 2021, 11:03:28 AM6/1/21
to zneny...@gmail.com, adwor...@googlegroups.com
Hello,

Based on what you said, I made a few changes to the documentation such as rewording the Sign Up page in the AdWords API (https://developers.google.com/adwords/api/docs/guides/signup) to make it more clear that new sign ups can only happen for the Google Ads API now. Thanks for taking the time to provide feedback.

Best,
Nadine, Google Ads API Team

ref:_00D1U1174p._5004Q2HD5KB:ref
Reply all
Reply to author
Forward
0 new messages