Accepting manager invites through APIs

25 views
Skip to first unread message

Dhruv Jagetiya

unread,
May 12, 2020, 9:28:32 AM5/12/20
to AdWords API and Google Ads API Forum
Hi,

Our use case is that an external manager will send a invite to one of our accounts. I have access to our client accounts via API, but not the manager accounts. I want to accept the invitation programatically. But looking at the examples, it seems that I need to get a managerLinkId from manager and then use it to accept invitation(https://github.com/googleads/google-ads-php/blob/master/examples/AccountManagement/LinkManagerToClient.php#L198). 

But I don't have access to manager account APIs. I don't understand why do I need access to manager account just to accept the request as a client?

Google Ads API Forum Advisor Prod

unread,
May 12, 2020, 12:20:27 PM5/12/20
to adwor...@googlegroups.com
Hi Dhruv,

Thank you for reaching out. That value comes from this line where the link IDs are queried. If you don't know the ID beforehand, just remove the filter on that query and all of the pending invitations for the account will be returned. Assuming you only have 1 pending invitation at the time, you can just select that linkID to perform the operation on.

Regards,
Mitchell
Google Ads API Team

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