Non-approved developer tokens

302 views
Skip to first unread message

Miloš Jedlinský

unread,
Jul 30, 2021, 5:20:25 AM7/30/21
to AdWords API and Google Ads API Forum
Hello,

we are trying to create new Ads account through Ads API and we are getting this error message: The developer token is not approved. Non-approved developer tokens can only be used with test accounts.

Can you help us?


Thank you and have a nice day.

Google Ads API Forum Advisor

unread,
Jul 30, 2021, 9:12:10 AM7/30/21
to adwor...@googlegroups.com
Hi,

Is it an approved developer token? Is this request against a production account? Please send the following details using 'Reply privately to author' option:
  1. Complete API request and error response
  2. Account id
https://developers.google.com/google-ads/api/rest/reference/rest/Shared.Types/AuthorizationError?hl=en

Thanks,
Google Logo
Lakshmi Prathipati
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JFIAz:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Aug 2, 2021, 11:17:28 PM8/2/21
to adwor...@googlegroups.com

Hello,

Thanks for getting back to us and for sharing those logs.

As per checking on the CID (4230269174), this is a Production MCC account and not a test MCC account. You should create a test MCC account by following this guide. Once a test MCC account has been created, use this in the login-customer-id field (if your OAuth2 credentials were created by a user / email that has access to the said test MCC) then you can now create a test client account.

As an aside, I will be removing the thread that contains the logs. Moving forward, avoid sharing logs in forum and only send those privately. Below is a copy of your post with the redacted details.

No, the developer token is not approved, but the request is against a testing account, so it should be ok, shouldn't it?

1. Response/request details:

2021-08-02 12:18:02,159 [INFO] google.ads.googleads.client: Request

-------

Method: /google.ads.googleads.v7.services.CustomerService/CreateCustomerClient

Host: googleads.googleapis.com

Headers: {

 "developer-token": "REDACTED",

 "login-customer-id": "4230269174",

 "x-goog-api-client": "gl-python/3.8.4 grpc/1.39.0 gax/1.31.1 gapic/13.0.0",

 "x-goog-request-params": "customer_id=4230269174"

}

Request: customer_id: "4230269174"

customer_client {

 descriptive_name: "Test

 currency_code: "CZK"

 time_zone: "Europe/Prague"

}

Response

-------

Headers: {

 "google.ads.googleads.v7.errors.googleadsfailure-bin": "\nm\n\u0002H\n\u0012gThe developer token is not approved. Non-approved developer tokens can only be used with test accounts.\u0012\u0016xxxx",

 "grpc-status-details-bin": "\b\u0007\u0012#The caller does not have permission\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v7.errors.GoogleAdsFailure\u0012\u0001\nm\n\u0002H\n\u0012gThe developer token is not approved. Non-approved developer tokens can only be used with test accounts.\u0012\u0016xxxx",

 "request-id": "REDACTED"

}

Fault: errors {

 error_code {

  authorization_error: DEVELOPER_TOKEN_NOT_APPROVED

 }

 message: "The developer token is not approved. Non-approved developer tokens can only be used with test accounts."

}

request_id: "REDACTED"

2021-08-02 12:18:02,159 [WARNING] google.ads.googleads.client: Request made: ClientCustomerId: 4230269174, Host: googleads.googleapis.com, Method: /google.ads.googleads.v7.services.CustomerService/CreateCustomerClient, RequestId: REDACTED, IsFault: True, FaultMessage: The developer token is not approved. Non-approved developer tokens can only be used with test accounts.

2. Accoun id:

423-026-9174
 

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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