RE: Non-approved developer tokens

2021-08-02 Thread Google Ads API Forum Advisor
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\u0016",

"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\u0016",

"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,

Mark Kevin Albios
Google Ads API Team
ref:_00D1U1174p._5004Q2JFIAz:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/tMl8j0QX8UGQ007LU0EMB2RqOoMGyGOUe6wg%40sfdc.net.


Re: Non-approved developer tokens

2021-08-02 Thread 'Miloš Jedlinský' via AdWords API and Google Ads API Forum
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\u0016Yd5yQ7YMsCivMGduMPrQYQ",*
*  "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\u0016Yd5yQ7YMsCivMGduMPrQYQ",*
*  "request-id": "Yd5yQ7YMsCivMGduMPrQYQ"*
*}*
*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: "Yd5yQ7YMsCivMGduMPrQYQ"*
*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: Yd5yQ7YMsCivMGduMPrQYQ, 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
Dne pátek 30. července 2021 v 15:12:10 UTC+2 uživatel adsapi napsal:

> 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,
> [image: Google Logo] 
> Lakshmi Prathipati 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2JFIAz:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6c340ef6-3900-4623-97ff-632302557295n%40googlegroups.com.


RE: Non-approved developer tokens

2021-07-30 Thread Google Ads API Forum Advisor
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:

Complete API request and error response
Account id

https://developers.google.com/google-ads/api/rest/reference/rest/Shared.Types/AuthorizationError?hl=en

Thanks,

Lakshmi Prathipati
Google Ads API Team
ref:_00D1U1174p._5004Q2JFIAz:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2b4dg0QX27BX00kooFv0hGTjK6_ykuIeF9hA%40sfdc.net.