Request failure for basic example (Developer token not approved)

265 views
Skip to first unread message

Vladi Iancu

unread,
Jul 8, 2022, 10:28:33 AM7/8/22
to Google Ads API and AdWords API Forum
Hello

So I was trying out some of the basic examples provided here https://developers.google.com/google-ads/api/rest/examples

I have previously made a call, successfully to https://googleads.googleapis.com/v11/customers:listAccessibleCustomers

However, when trying out the googleAds:searchStream and pushing a query I get this error:

{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "@type": "type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
                "errors": [
                    {
                        "errorCode": {
                            "authorizationError": "DEVELOPER_TOKEN_NOT_APPROVED"
                        },
                        "message": "The developer token is not approved. Non-approved developer tokens can only be used with test accounts."
                    }
                ],
                "requestId": "DEjgGZhte1lRi94I__iogA"
            }
        ]
    }
}

Since the first call worked, it's clear that I have a test account and I'm using it to make requests but it won't work

Can you please provide assistance on this?

Google Ads API Forum Advisor

unread,
Jul 8, 2022, 11:53:05 AM7/8/22
to vladi...@omniconvert.com, adwor...@googlegroups.com

Hi Vladi,

Thanks for reaching out to the Google Ads API support. I understand that you have encountered the DEVELOPER_TOKEN_NOT_APPROVED error. Please note that non-approved developer tokens can only be used with test accounts as you mentioned as well. The solution is to either upgrade your access level to Basic access via this form or make API calls to test accounts.

Hope that helps clarify things. Let me know if you have any remaining questions.


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cTyj5:ref
Message has been deleted

Vladi Iancu

unread,
Jul 11, 2022, 10:13:52 AM7/11/22
to Google Ads API and AdWords API Forum
Hi All

It seems I confused the access type of the MCC account with the test account

So, to recap for anybody possibly reading this you need:
1. Production MCC account which will provide develop-token. Initially, this developer token can be used against test-accounts.
2. Then you can create A manager Test account
3. Then you can add a test client under that manager test account. 
4. Then you can make requests with the developer token on those client ids. 

I also had another error regarding DEVELOPER TOKEN access not granted for project X.
Once you make requests under a certain project (Google Cloud I think) you cannot make using a different one. 
Reply all
Reply to author
Forward
0 new messages