Link existing account to MCC account via API?

120 views
Skip to first unread message

LoCurto

unread,
Jul 6, 2016, 11:25:38 AM7/6/16
to AdWords API Forum
I couldn't find any relevant questions in the last 2 or so years regarding this question.

I have an account that I want to be able to link other accounts to, using just the customer ID, through the API. At the end of this, I am writing a Hipchat bot where I can say

!link <customerID> 

And my code (in Python) will automatically link the client's customer ID to my Manager account. Is that possible to do in the API, and if so, where can I find examples of how one would set this up?

Thank you!

Shwetha Vastrad (AdWords API Team)

unread,
Jul 6, 2016, 4:49:57 PM7/6/16
to AdWords API Forum
Hi,

You can use ManagedCustomerService to link client accounts to a manager account. You can use the ManagedCustomerService.mutateLink method to invite a client account and accept an invitation as a client account. This guide provides more details on linking accounts along with code sample in Java. You can use this as a reference and construct a similar program using the Python client library. 

Regards,
Shwetha, AdWords API Team.

LoCurto

unread,
Jul 14, 2016, 1:04:16 PM7/14/16
to AdWords API Forum
The documentation doesn't make a lot of sense to me, and I'm trying to write it in Python, not in Java, so the Java info doesn't really help. What other resources are there for explaining precisely how to link accounts?

Thanks!

Anthony Madrigal

unread,
Jul 14, 2016, 2:19:23 PM7/14/16
to AdWords API Forum
Hi,

Unfortunately, we do not have a Python example of how to use the mutateLink method. However, here are some examples on how to use the ManagedCustomerService for Python.

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages