Issue in linking the a client acount with my Manager account

49 views
Skip to first unread message

Bratin Kundu

unread,
Jun 22, 2022, 7:34:23 AM6/22/22
to Google Ads API and AdWords API Forum
Hello

I have a manager account (say this is A) and i have a customer/client account (say this is B). Now i am trying to link the account B to A using the python client library (using the code of link_manager_to_client.py) but it fails at last step where it is using CustomerManagerLinkService. The error I am getting is below:

FaultMessage: Invalid customer ID 'xxxxxxxxx'.
Request with ID "iAAcqgGO6kIIFjsgv1CbOQ" failed with status "INVALID_ARGUMENT" and includes the following errors:
        Error with message "Invalid customer ID 'xxxxxxxxxxx'.".
                On field: operations
                On field: update
                On field: resource_name

I am getting the invite link to the manager account but getting error while I am trying to change the status to ACCEPT. 

Thanks

Google Ads API Forum Advisor

unread,
Jun 22, 2022, 10:48:36 AM6/22/22
to adwor...@googlegroups.com
Hi Bratin,

Thank you for reaching out to our API support team.

The error indicates that there is an issue with the customer ID : "Invalid customer ID 'xxxxxxxxxxx'.". That said, could you confirm whether the customer IDs you provided are without the "-"? For example the customer ID should be specified as 1234567890 and you may check out this guide as well.

Should the issue persist and so our team can take a closer look, could you provide our team with the complete request and response logs and the request-id? If you haven't yet, you can enable logging in Python by referring to this guide, and use the DEBUG level or option.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bz1M5:ref

Bratin Kundu

unread,
Jun 23, 2022, 7:33:11 AM6/23/22
to Google Ads API and AdWords API Forum
Hello Peter

Yes we used the customerID without '-'. I will share the request and response privately.
We tried to implement the same with REST API but it fails when we are using the flow to ACCEPT the request as customer using this api. But it returns the following error:

{"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED","details":[{"@type":"type.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure","errors":[{"errorCode":{"authorizationError":"USER_PERMISSION_DENIED"},"message":"User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid"}],"requestId":"IxxxxxxxxxxxxxCGA"}]}}

Just to add the client test account is created using another email id than of the manager. So the email of manager and customer are different. Not sure if this is causing the issue.
Reply all
Reply to author
Forward
0 new messages