Developer token

83 views
Skip to first unread message

edward

unread,
Dec 14, 2022, 9:27:53 AM12/14/22
to Google Ads API and AdWords API Forum
hello, I'm having a problem with token/authentication/authorization, the following happens: I created a google ads test account called "Company 1",
[image1]

As I understand it, a developer token can be used on any account, I created another admin account and created a developer token
[image2]

From what I understand too, the refresh token can be from another user who has access to the google ads account that will receive the requests,
so I generated this data and sent an invitation to that user.

Below is the image of how the users with access to the google ads account that will receive the requests.
[image3]
the first email is the admin account that created the developer token
the second is the email that created the google ads account that will receive the requests
the third is the user who will run the task using the refresh token

knowing that, I want to create an offlineUserDataJobs and I do the following steps:
Step 1: Generate the third user's access token
Step 2: Having create job by sending a POST request to https://googleads.googleapis.com/v11/customers/id_acc_ads/offlineUserDataJobs:create
But it returns the following error:
{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "authorizationError": "DEVELOPER_TOKEN_PROHIBITED"
                        },
                        "message": "Developer token is not allowed with project '344961598665'."
                    }
                ],
                "requestId": "53Md0hBEQ1E0MB65v1U3ig"
            }
        ]
    }
}

Explain to me what am i doing wrong.
image2.png
image3.png
image1.png

Google Ads API Forum Advisor

unread,
Dec 14, 2022, 12:13:35 PM12/14/22
to luizedb...@gmail.com, adwor...@googlegroups.com
Hi Luiz, 

The DEVELOPER_TOKEN_PROHIBITED error may be due to the Google Cloud project, 344961598665, having prior association with another developer token. The documentation expands on this error:
  • Warning: 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 switching to a developer token under a new manager account, you'll need to create a new Google API Console project for Google Ads API requests that use the new manager's token. If you do not use a new Google API Console project, you'll get a DEVELOPER_TOKEN_PROHIBITED error when making a request.
Can you confirm if this is a possible scenario? If you suspect this is not the case, can you please provide your complete request and response logs?

Thanks,

Google Logo
Matt
Google Ads API Team
 


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