Issue with Creating Customer Client using Ads API

101 views
Skip to first unread message

Deepakraj S

unread,
Jan 8, 2024, 7:02:41 AM1/8/24
to Google Ads API and AdWords API Forum

Hi Google Ads API Support,

I hope this email finds you well. I am currently facing an issue while attempting to link the ads-account of my users under my manager account for effective ad and campaign management. Here's a breakdown of the problem:

1. I possess the developer-token for the root-manager-account named "Ads Api Account" with the email address sdeepak...@gmail.com, having "standard" access level.

2. I created a GCP project named "Ads Managing App" with the only scope of "adwords" and enabled "google-ads-api."

3. I established a Test-Manager account named (test-manager) and created an operating-customer (manager level) named "client-manager-1" under it.

4. My goal is to connect a Google Ads Account (created by another mail-id: dhanude...@gmail.com) with the "client-manager-1" account using the createCustomerClient REST API in the Web Interface.
Here are the relevant details: 

test-manager Customer ID: 8004830137
client-manager-1 Customer ID: 6526719162
Google Ads Account Customer ID: 6506040419
The API request I am using:

curl --request POST \
'https://googleads.googleapis.com/v15/customers/6526719162:createCustomerClient?key=[YOUR_API_KEY]' \
--header 'developer-token: **********************' \
--header 'login-customer-id: 8004830137' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"customerClient":{"currencyCode":"INR","timeZone":"Asia/Kolkata","descriptiveName":"test client from dhanudeepak","resourceName":"customers/6506040419"}}' \
--compressed

Issues I encountered:

  •  When attempting to sign in using sdeepak...@gmail.com, I received a 403 error with the message "The caller does not have permission" and details indicating an "AUTHORIZATION_ERROR."

    { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v15.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "authorizationError": "AUTHORIZATION_ERROR" }, "message": "Authorization of the client failed." } ], "requestId": "xfMFwpqpbUv0DmhBN8oCYA" } ] } }

  • When attempting to sign in using dhanude...@gmail.com, the consent screen displayed a 403 error, and after closing it, I received the response "Error authorizing: popup_closed_by_user."


I kindly request your assistance in resolving this matter. Your guidance will be highly appreciated.

Thank you for your attention.

Best regards,
Deepakraj

Google Ads API Forum Advisor

unread,
Jan 8, 2024, 9:13:22 AM1/8/24
to sdeepak...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

I see that you have already raised this concern on another thread with the subject “Issue with Creating Customer Client using REST API” and we have already responded there for this issue. To avoid multiple threads on the same issue, please take a look at that thread and continue the discussion on the same for further updates on the issue.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rVEdF:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages