what should I do?

568 views
Skip to first unread message

王琪

unread,
May 31, 2021, 8:51:05 PM5/31/21
to AdWords API and Google Ads API Forum
Request
-------
MethodName: google.ads.googleads.v7.services.GoogleAdsService/SearchStream
Headers: {developer-token=REDACTED, login-customer-id=9840466286, x-goog-api-client=gl-java/1.8.0_91 gapic/ gax/1.63.0 grpc/1.36.0}
Body: customer_id: "6515267890"
query: "SELECT campaign.id, campaign.name FROM campaign ORDER BY campaign.id"


Response
--------
Headers: null
Body: null
Failure message: null
Status: Status{code=UNAVAILABLE, description=Credentials failed to obtain metadata, cause=com.google.api.client.http.HttpResponseException: 400 Bad Request
{
  "error": "invalid_grant",
  "error_description": "Bad Request"

王琪

unread,
Jun 3, 2021, 6:40:13 AM6/3/21
to AdWords API and Google Ads API Forum
Message has been deleted
Message has been deleted

AdWords API and Google Ads API Forum

unread,
Jun 3, 2021, 2:31:05 PM6/3/21
to AdWords API and Google Ads API Forum

Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/4Uqr5dqAy8s/m/rLvbgo55BwAJ) from the forum as it wasn't routed to our support queue.


Cheers,

Aryeh Baker

Google Ads API Team

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2021, 4:39:13 AM6/4/21
to adwor...@googlegroups.com
Hi,

The invalid_grant usually indicates an issue with your refresh token. That said, you can try and refer here to this guide for the steps on how you can regenerate your credentials and refresh token.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I01dU:ref

王琪

unread,
Jun 5, 2021, 3:49:32 AM6/5/21
to AdWords API and Google Ads API Forum
IsFault: True, FaultMessage: The developer token
 is not approved. Non-approved developer tokens can only be used with test accounts.
Request with ID "aM0o96CgZv_gye7T8ZVLBA" failed with status "PERMISSION_DENIED" and includes the following errors:
        Error with message "The developer token is not approved. Non-approved developer tokens can only be used with test accounts.".

王琪

unread,
Jun 6, 2021, 8:44:47 PM6/6/21
to AdWords API and Google Ads API Forum
?

Google Ads API Forum Advisor Prod

unread,
Jun 7, 2021, 12:04:10 PM6/7/21
to wq245...@gmail.com, adwor...@googlegroups.com

Hi Qi,

Thank you for reaching out. The error shows that you have developer token with Test access. However, in order to query on production accounts you have to upgrade your developer token to Basic access. Please submit the application via this form.

Thanks and regards,
Xiaoming, Google Ads API Team

 
Google Logo
Xiaoming
Google Ads API Team
 


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