Thanks for your reply

I tried with new project credentials in API but the response 

Google Ads failure details: authorization_error: User doesn't have 
permission to access customer. Note: If you're accessing a client customer, 
the manager's customer id must be set in the 'login-customer-id' header

How to give permission for access the customer account?

On Friday, August 23, 2024 at 11:20:22 PM UTC+5:30 Google Ads API Forum 
Advisor wrote:

> Hi, 
>
> Based on the provided information, we noticed that you're encountering an "
> invalid_grant 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#invalid_grant>
>  
> " error. According to the Google Ads API documentation 
> <https://developers.google.com/google-ads/api/docs/common-errors#google.auth.exceptions.refresherror>,
>  
> Google Cloud Platform project with an OAuth consent screen configured for 
> an external user type and a publishing status of "Testing" is issued a 
> refresh 
> token <https://developers.google.com/identity/protocols/oauth2#expiration> 
> expiring 
> in 7 days. Your Google project's publishing status is Testing so the 
> refresh token expires every 7 days and receives an invalid_grant error.
>
> You can follow the following steps to avoid this issue:
>
>    - Go to the Google API Console and navigate to the OAuth consent screen 
>    - Change the publishing status to “In production” 
>
> Also, note that the invalid_grant 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#invalid_grant>
>  error 
> usually indicates an issue with the refresh token. That said, you’ll need 
> to regenerate credentials and refresh tokens. Alternatively, you may use 
> the OAuth Playground 
> <https://developers.google.com/google-ads/api/docs/oauth/playground> to 
> generate refresh and access tokens. Once you have a valid refresh token, 
> the error should disappear.
>
> Hope this clarifies. 
> This message is in relation to case 
> "ref:!00D1U01174p.!5004Q02vFHM5:ref" (ADR-00264631)
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/d2e6db91-2d88-4f05-b208-8bf1f6dad950n%40googlegroups.com.
  • Cu... tkraja mdu
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... tkraja mdu
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
          • ... tkraja mdu
            • ... tkraja mdu
              • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to