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.