Customers API error

47 views
Skip to first unread message

Pratik Karmankar

unread,
May 2, 2022, 12:53:17 AM5/2/22
to Google Ads API and AdWords API Forum
I am trying the customers API call from the playground but getting an error cam you please look into it and help ?

Customers API.png

Google Ads API Forum Advisor

unread,
May 3, 2022, 12:36:56 AM5/3/22
to pratik.k...@21kschool.com, adwor...@googlegroups.com
Hi Pratik, 

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

Moving forward to your concern, it seems that you've got UNEXPECTED_END_OF_QUERY which means that the query is incomplete and cannot be parsed. That said, upon checking your attached image, I noticed that the request body is empty and that is the cause of this error.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aPTKb:ref

Pratik Karmankar

unread,
May 3, 2022, 1:03:33 AM5/3/22
to Google Ads API and AdWords API Forum
Thank you for the response.

I have changed my request end point. Now i am getting the below. Where can i find the mentioned project ?

Project Error.png

Google Ads API Forum Advisor

unread,
May 4, 2022, 7:08:37 AM5/4/22
to pratik.k...@21kschool.com, adwor...@googlegroups.com

Hi Pratik,


Thanks for your response. I am also a member of the Google Ads API team and let me provide support to your concern.
 

Moving forward to your concern, it seems that you've encountered the DEVELOPER_TOKEN_PROHIBITED error. The developer token is not allowed with the project sent in the request.

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 do not use a new Google API Console project, you'll get a DEVELOPER_TOKEN_PROHIBITED error when making a request.
 

The solution is to create a new Google Cloud Project ID and generate new OAuth2 credentials under the new Project.Then you could make API calls with the new OAuth2 credentials and the Developer Token.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2aPTKb:ref
Reply all
Reply to author
Forward
0 new messages