Add and get invitations

30 views
Skip to first unread message

fedorin...@gmail.com

unread,
Apr 4, 2019, 10:17:13 AM4/4/19
to AdWords API and Google Ads API Forum
Hi.

I want to send an invite to the mail by api.

$operation = new ManagedCustomerOperation();
$operation->setOperator('SET');
$operation->setInviteeEmail('te...@test.com');
$operation->setInviteeRole('READ_ONLY');
$operation->setOperand($managedCustomer);  // my customer in mcc

But, I dont see
te...@test.com in adwords (look at screenshot)


And I done see pending invitations by api

$selector = new PendingInvitationSelector();
$managedCustomerService->getPendingInvitations($selector);

I getting NULL in response.

What's my mistake?
How to send an invitation to the mail by API?

Выделение_346.png

googleadsapi...@google.com

unread,
Apr 4, 2019, 4:11:38 PM4/4/19
to AdWords API and Google Ads API Forum
Hello, 

You will need to use ManagedCustomerService.mutateLink to invite a client account or manager account, accept or decline the invitation to be managed. The ManagedCustomerService.mutate() can be used to create/modify the client accounts under a manager account. If you have a Google Ads manager account, you will be able to create new client accounts under this manager account. The inviteeRole can be used to add a user in the created client account. Please refer to the code snippets from this guide as a reference. 

Let me know if you have any other questions.

Regards,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages