Hi

I am trying to send a link invite from our test MCC to a test customer 
account. 

I figured out a way to list all pending invitations with that test MCC, so 
my code is at least partially functional. 

But when I try to add a link invitation I get the following error:

*[RangeError.TOO_LOW @ operations[0].operand.clientCustomerId.id, 
RangeError.TOO_LOW @ operations[0].operand.managerCustomerId.id]*

This is the code:

        $mcs = $this->adWordsService->getService(ManagedCustomerService::
class, $mccId);


        $link = new ManagedCustomerLink();
        $link->setManagerCustomerId($mccId);
        $link->setClientCustomerId($clientId);
        $link->setLinkStatus(LinkStatus::PENDING);


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


        $operations = array($linkop);

        print_r($operations);
        
        $result = $mcs->mutateLink($operations);

        print_r($result);

The operations array looks like this: 

Array
(
    [0] => Google\AdsApi\AdWords\v201809\mcm\LinkOperation Object
        (
            [operand:protected] => Google\AdsApi\AdWords\v201809\mcm\
ManagedCustomerLink Object
                (
                    [managerCustomerId:protected] => 897-646-0211
                    [clientCustomerId:protected] => 279-235-3443
                    [linkStatus:protected] => PENDING
                    [pendingDescriptiveName:protected] =>
                    [isHidden:protected] =>
                )


            [operator:protected] => ADD
            [OperationType:protected] =>
            [parameterMap:Google\AdsApi\AdWords\v201809\cm\Operation:private
] => Array
                (
                    [Operation.Type] => OperationType
                )


        )


)

It looks correct to me, so what is wrong here?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/3e55f1dd-1943-4757-aff4-7a8981f05654%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • I get a... Aleksandar
    • RE... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
      • ... Aleksandar

Reply via email to