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):
https://adwords.google.com/api/adwords/reportdownload/v201809

Google Ads technical support provided a link to this source 
<https://ads-developers.googleblog.com/2021/04/upgrade-to-google-ads-api-from-adwords.html>,
 
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 
<https://developers.google.com/adwords/api/docs/guides/first-api-call?hl=ru>. 
(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.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/58357913-2b43-4a96-a545-e9a1db197574n%40googlegroups.com.

Reply via email to