Hi, 

You need to provide just the LinkOperation 
<https://developers.google.com/adwords/api/docs/reference/v201705/ManagedCustomerService.LinkOperation.html>
 when 
you use the ManagedCustomerService.mutateLink() 
<https://developers.google.com/adwords/api/docs/reference/v201705/ManagedCustomerService#mutatelink>
 method 
as shown here 
<https://developers.google.com/adwords/api/docs/guides/accounts-overview#extending_invitations>.
 
In your case, it looks like the LinkOperation is encapsulated in a 
ManagedCustomerOperation 
<https://developers.google.com/adwords/api/docs/reference/v201705/ManagedCustomerService.ManagedCustomerOperation.html>.
 
Could you try using the below code snippet? 

    // Create link.
    $link = new ManagedCustomerLink();
    $link->SetLinkStatus = 'PENDING';
    $link->SetManagerCustomerId = 'xxxxxxxxxxx';
    $link->SetClientCustomerId = 'xxxxxxxxxxx';

    $linkop = new LinkOperation();
    $linkop->setOperator(Operator::ADD);
    $linkop->setOperand($link);

    $operations[] = $operation;
    $result = $managedCustomerService->mutateLink($operations); 

Regards,
Shwetha, 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/4117f258-f49c-46a8-aa73-f64f9186e768%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Trying to send ... Mihai Iliescu
    • Re: Trying... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to