API - Get customers list

35 views
Skip to first unread message

Alber Abbas

unread,
Oct 1, 2024, 8:32:57 PM10/1/24
to Google Ads API and AdWords API Forum
Hello,

So, I am creating an app where user logins with their google account and their auth2.0 tokens are received, now I want to get access to their list of customers so they can pick one from the options to link with the app to show them analytics dashboards.

Issue is with developer token, I just want users to login and get their access token to get access to their customers list, this is a multi-tenancy app so there would be various users.

when I access listaccessiblecustomers endpoint, following error is returned, DEVELOPER_TOKEN_PROHIBITED I want users to only sign in and rest work is done for them, various apps are currently working like this so there must be a way. Please let me know, how to handle this. Thank you.

Google Ads API Forum Advisor

unread,
Oct 3, 2024, 8:48:25 AM10/3/24
to abbas...@gmail.com, adwor...@googlegroups.com
Hi,

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

From the provided information, I understand that you are getting the 'DEVELOPER_TOKEN_PROHIBITED' error when trying to get the List Accessible Customers. Please note that each Google API Console project can be associated with the developer token from only one manager account. Once you make a Google Ads API request, the developer token is permanently paired to the Google API Console project.  If you want to switch the account, you will need to create a new Google API Console project for Google Ads API requests that use the new manager's token. If you don't use a new Google API Console project, you'll get a DEVELOPER_TOKEN_PROHIBITED error when making a request. Also, Please check if you have the correct access level to the Google Ads account that you are accessing. If the issue persists after trying the provided suggestion, then you may provide us with the complete request and response logs with request ID and request header generated on your end and the user email is used for generating the OAuth credentials i.e, refresh token.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGblQ:ref" (ADR-00270321)

Thanks,
 
Google Logo Google Ads API Team

 

Reply all
Reply to author
Forward
0 new messages