Empty linkStatus value in ManagedCustomerLink when calling ManagedCustomerService

50 views
Skip to first unread message

Florio

unread,
Mar 18, 2016, 5:38:16 AM3/18/16
to AdWords API Forum
Hi all,

I would like to get the linkStatus of my accounts.
I am using the "ManagedCustomerService" and I can get the $graph->entries and $graph->links but if I var_dump($graph->links) I can only see the "managerCustomerId" and "clientCustomerId" values, anything else is empty.

What am I doing wrong? How can I see the othe values?

Thank you in advance

Nadine Sundquist (AdWords API Team)

unread,
Mar 18, 2016, 5:41:16 PM3/18/16
to AdWords API Forum
Greetings!

The linkStatus will probably not be very helpful to you. On the back-end, it's always ACTIVE, which is probably why we don't return it anymore. I'll have to make sure we update our documentation there. That field is meant to only be used for setting and not getting.

The three states that you're probably interesting in are if there are pending invitees, pending initers, or active customers. In order to get pending client customer ID invitees and the managed customer ID inviters, you'll want to use ManagedCustomerService.getPendingInvitations(). If the manager or client customer is coming back in the get() call, this means that the link status is active. 

If you're trying to do something different than that, then feel free to write back. I would be glad to help you find a solution.

Best,
Nadine, AdWords API Team
Reply all
Reply to author
Forward
0 new messages