Refresh token | Permission Denied | Ads api

41 views
Skip to first unread message

Aaryan Sinha

unread,
Nov 4, 2024, 2:35:17 AM11/4/24
to Google Ads API and AdWords API Forum
Hello Google Ads API Support,

So I have an app in my google console, where I have the standard access. 
I am using its client-id and secret to complete the oAuth flow and generate the refresh token, using the following scopes: 

scope: [
]
Next I am fetching the `listAccessableCustomers`. The issues is that: Earlier I was using the refresh token provided by my collegue where I was getting the list of the customers which were our actuaol customers (they have ads running) Now, when I changed the refresh token and used the one which I generated throw oauth flow on my own, the above api gave me a completely different set of customers. Note: I did not change the client id/secret during my own oauth flow. Thank you for your help!
Best regards

Google Ads API Forum Advisor

unread,
Nov 4, 2024, 11:49:00 PM11/4/24
to aaryan...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I want to let you know that every refresh token is linked to a particular Google Ads account or group of accounts. The refresh token that your college generated might be associated with their own Google Ads accounts, and if you generated your own using the OAuth flow, it might be associated with a different Google Ads account.

Additionally, it's possible that the OAuth token's permissions differ from those of the one your colleague created. Therefore, be sure to request the appropriate OAuth scopes (https://www.googleapis.com/auth/adwords), as insufficient scopes could result in limited access or visibility of different customer accounts.

I hope this helps! Feel free to get back to us in case of any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGhvq:ref" (ADR-00274210)

Thanks,
 
Google Logo Google Ads API Team
​​​​​​​
 

Reply all
Reply to author
Forward
0 new messages