How can I test linking on test manager account?

80 views
Skip to first unread message

chai.a...@gmail.com

unread,
Nov 14, 2018, 3:06:14 AM11/14/18
to AdWords API and Google Ads API Forum
Hello

I'm trying to invite a new test account to my test manager account(2996882927) but I got the error like this: ManagedCustomerServiceError.TEST_ACCOUNT_LINK_ERROR.
I have only 4 accounts under my test manager account.

I know that the test manager account can't invite the production account , but the new account is definitely production account, and it changes to test account after I add on my test manager account by using the UI.
How can I test the linking process that add my test account to my test manager account?

Peter Oliquino (AdWords API Team)

unread,
Nov 14, 2018, 3:50:59 AM11/14/18
to AdWords API and Google Ads API Forum
Hi,

You should be able to link a test client account to a test manager account using the ManagedCustomerService.mutateLink() as stated in this guide. So I can further investigate, you may send to me the complete SOAP request and response logs generated when you encountered the error.

You may send the logs via the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team

chai.a...@gmail.com

unread,
Nov 14, 2018, 4:34:56 AM11/14/18
to AdWords API and Google Ads API Forum
Hi Peter,

I send the private message to you and
here is some of my code.

        $managedCustomerService = $adWordsServices->get(
            $session,
            ManagedCustomerService::class
        );

        $linkOp = new LinkOperation();
        $link = new ManagedCustomerLink();

        $link->setClientCustomerId('6063385846');
        $link->setLinkStatus(LinkStatus::PENDING);
        $link->setManagerCustomerId('2996882927');

        $linkOp->setOperand($link);
        $linkOp->setOperator(Operator::ADD);

        // print_r($linkOp);
        $result = $managedCustomerService->mutateLink([$linkOp]);
        print_r($result);

2018년 11월 14일 수요일 오후 5시 50분 59초 UTC+9, Peter Oliquino (AdWords API Team) 님의 말:

chai.a...@gmail.com

unread,
Nov 15, 2018, 8:14:17 PM11/15/18
to AdWords API and Google Ads API Forum
Hi
I'm waiting for your answer:)


2018년 11월 14일 수요일 오후 5시 50분 59초 UTC+9, Peter Oliquino (AdWords API Team) 님의 말:
Hi,

Peter Oliquino (AdWords API Team)

unread,
Nov 15, 2018, 10:58:17 PM11/15/18
to AdWords API and Google Ads API Forum
Hi,

My apologies as I replied to you privately. The contents of my response can be seen below :

"Thank you for sending the logs. Upon checking, the client account (606-338-5846) appears to be a production client account and not a test client account. That said, you would not be able to link the production client account to your test manager account.

You can create a test client account via the CreateAccount example in the client library and while using your test manager account ID (299-688-2927) as the value for the clientCustomerId property in your properties file. I hope this helps."

Best regards,
Peter
AdWords API Team

chai.a...@gmail.com

unread,
Nov 18, 2018, 8:24:23 PM11/18/18
to AdWords API and Google Ads API Forum
Thanks.
Then, can not I send an email to invite my test account?
And how do I grant the permissions to the test account after invites?

2018년 11월 16일 금요일 오후 12시 58분 17초 UTC+9, Peter Oliquino (AdWords API Team) 님의 말:
Reply all
Reply to author
Forward
0 new messages