I am facing very abnormal behaviour. Sample Auth
https://accounts.google.com/o/oauth2/v2/auth/oauthchooseaccount?response_type=code&client_id=XXXXXX.apps.googleusercontent.com&prompt=consent&access_type=offline&redirect_uri=https%3A%2F%2Fauth-dev.example.com%2Fapi%2Fauth%2Fcallback%2Fgoogle&scope=profile%20email%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fanalytics.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&state=5fa33d90d50ca11199b5&service=lso&o2v=2&flowName=GeneralOAuthFlow Successfully generated refresh_token. When we use the same eccess_token from the web app we are not facing any issues. Everything working as expected. When we are using the same access token from the postman or backend server facing below error. Here you go sample request curl --location 'https://googleads.googleapis.com/v12/customers:listAccessibleCustomers' \ --header 'developer-token: YYY' \ --header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxx' Error { "error": { "code": 401, "message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v12.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "authenticationError": "OAUTH_TOKEN_HEADER_INVALID" }, "message": "Oauth token HTTP header is malformed." } ], "requestId": "OGRTDzHHETRpQwJQDqFcnQ" } ] } } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "Google Ads API and AdWords 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/6dbdc0be-cbb0-4db2-a03d-190206576a36n%40googlegroups.com.
