Hi Kartikeya,

A manager account can invite a client account or another manager account to 
be managed via AdWords API. You can use managedCustomerService.mutateLink() 
<https://developers.google.com/adwords/api/docs/reference/v201802/ManagedCustomerService#mutatelink>
 API 
call to send an invitation. Please refer below code sample to send an 
invitation.

$managedCustomerService = $adWordsServices->get($session, 
ManagedCustomerService::class);
$operations = [ ];
$linkOp = new LinkOperation();
$link = new ManagedCustomerLink();
$link->setManagerCustomerId(MANAGER_CID);
$link->setClientCustomerId(CLIENT_CID); 
$link->setLinkStatus("PENDING");
$linkOp->setOperand($link);
$linkOp->setOperator(Operator::ADD);
$operations[] = $linkOp;

$result = $managedCustomerService->mutateLink($operations);

For more information please refer this guide 
<https://developers.google.com/adwords/api/docs/guides/accounts-overview#managedcustomerservice>.
 
If you are facing an issue to send invitation via API, please enable logging 
<https://github.com/googleads/googleads-php-lib#logging> and share the SOAP 
request and response logs so I can take a look. Please use *Reply privately 
to author* when responding.

Thanks,
Milind, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/1f81e421-a18e-42ce-9011-77ee45cd1ef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Invite adWor... Kartikeya Gaur
    • Re: Inv... 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum
    • Re: Inv... 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum

Reply via email to