Hi again,

We are using the same client credentials but still we got this error: 
AuthenticationError.OAUTH_TOKEN_INVALID
I dumped out the content of request and response where I replaced some 
confidential info with xxx

We are using this package `https://pkg.go.dev/golang.org/x/oauth2` to 
generate an accessToken and using it to generate an ad report.
Also we have no problems like this with other google accounts. This is the 
first time happening to us.

request

POST /api/adwords/reportdownload/v201809 HTTP/1.1
Host: adwords.google.com
User-Agent: curl, gzip
Content-Length: 117
Accept: */*
Authorization: Bearer
Clientcustomerid: XXX-XXX-XXXX
Content-Type: application/x-www-form-urlencoded
Developertoken: xxxxxxxx
Includezeroimpressions: false
Skipcolumnheader: false
Skipreportheader: true
Skipreportsummary: true
Userawenumvalues: true
Accept-Encoding: gzip

__fmt=GZIPPED_CSV&__rdquery=SELECT+AccountDescriptiveName+FROM+ACCOUNT_PERFORMANCE_REPORT+DURING+20210829%2C+20210829

response

HTTP/2.0 400 Bad Request
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; 
ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; 
ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Cache-Control: private, max-age=0
Content-Security-Policy: frame-ancestors 'self'
Content-Type: text/xml
Date: Wed, 18 Aug 2021 01:36:54 GMT
Expires: Wed, 18 Aug 2021 01:36:54 GMT
Server: GSE
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block

<?xml version="1.0" encoding="UTF-8" 
standalone="yes"?><reportDownloadError><ApiError><type>AuthenticationError.OAUTH_TOKEN_INVALID</type><trigger>&lt;null&gt;</trigger><fieldPath></fieldPath></ApiError></reportDownloadError>





2021年8月18日水曜日 10:10:17 UTC+9 Nobuyoshi Shimmen:

> Hi,
>
> I was wrong. We're not using the sale credentials.
> Sorry for taking your time.
>
> Thanks,
>
> 2021年8月18日水曜日 9:57:50 UTC+9 Nobuyoshi Shimmen:
>
>> Thanks for your response.
>>
>> Yes, we are using the same client credentials(clientId, clientSecret).
>>
>> Best,
>>
>> 2021年8月18日水曜日 2:59:59 UTC+9 adsapi:
>>
>>> Hi,
>>>
>>> Are you using the same client when authorizing in the application and 
>>> when updating the token on the server? I recommend double checking the 
>>> client credentials.
>>>
>>> Thanks,
>>> [image: Google Logo] 
>>> Lakshmi Prathipati 
>>> Google Ads API Team 
>>>   
>>>  
>>>
>>> ref:_00D1U1174p._5004Q2LnpzF:ref
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d3978aa4-5444-4514-b5e7-ecf882780be8n%40googlegroups.com.

Reply via email to