Re-posting the last inquiry (
https://groups.google.com/g/adwords-api/c/ppmdz1ChPNI) from the forum as it 
wasn't routed to our support queue.

Regards,
Carmela
Google Ads API Team
On Wednesday, February 1, 2023 at 6:14:10 AM UTC+8 
[email protected] wrote:

> Hello, I am trying to hit the endpoint 
> *https://googleads.googleapis.com/v12/customers/{{customerId}}:uploadClickConversions
>  
> <https://googleads.googleapis.com/v12/customers/%7B%7BcustomerId%7D%7D:uploadClickConversions>*
>  to 
> upload some events.
>
> I use a JWT to hit the Google Authorization Server, which seems to format 
> correctly as I get an access token back. 
>
> This is my scope of my JWT after decoding and info. 
>
> *{*
>
>
>
>
>
>
> *  "iss": "[email protected]",  "scope": 
> "https://www.googleapis.com/auth/adwords 
> <https://www.googleapis.com/auth/adwords>",  "aud": 
> "https://oauth2.googleapis.com/token 
> <https://oauth2.googleapis.com/token>",  "exp": 1675204050,  "iat": 
> 1675200450,  "sub": "[email protected]"}*
>
> I send my JWT to the endpoint *https://oauth2.googleapis.com/token 
> <https://oauth2.googleapis.com/token> *with *grant-type: 
> urn:ietf:params:oauth:grant-type:jwt-bearer *and *assertion: 
> {{insertJWT}}.*
>
> *I get this response which I use the access_token in my Google Ads API 
> Call .*
>
> *{*
> *"access_token": 
> "ya29.c.b0Aaekm1Ktg5WmcpXyLcU0lFMJcaXg2t8BkANds3O7UeV2uadd-JSBOToMiEQhjsXXNk........................",*
> *"expires_in": 3599,*
> *"token_type": "Bearer"*
> *}*
>
> When I get the *access_token* back and try to use it in the *Authorization: 
> "Bearer {{access_token}}"* Request Header along with my 
> *Developer-Token:""{{developer-token}}.* I get this error: *User in the 
> cookie is not a valid Ads user*
>
> {
>   "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": "NOT_ADS_USER"
>             },
>             "message": "User in the cookie is not a valid Ads user."
>           }
>         ],
>         "requestId": "*DwvWVpR4cs3A9_RsKjhIlw*"
>       }
>     ]
>   }
> }
>
>
> What seems to be the error that I'm doing? 
>
> Thanks!
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1d086600-537c-4747-8a61-c2f688da56acn%40googlegroups.com.
  • Re... Google Ads API and AdWords API Forum
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to