Last week I noticed that there was a change to the php Adwords API library.

Previously when we authenticated a user I would use:

$customerService = $this->user->GetService("CustomerService");
$customer = $customerService->get();

To get the customer associated with the user who granted us the oauth 
token.  According to the link below that has changed.

https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/AdWords/v201702/mcm/CustomerService.php#L83-L85

I looked around and found the GetClientCustomerId object on the AdwordsUser 
object.  However when I try to run it it returns as empty.  My only thought 
is that if I list out all the customers I only have one, which is correct, 
so I am wonder if this returns empty if there is only one customer 
associated with the account.

Any help on what I am doing wrong would be appreciated.









-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/5bbb56a7-2b53-40ae-b1f4-f35b3c69a8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ClientCustomerI... James Andrews
    • Re: Client... James Andrews
      • Re: Cl... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
        • Re... James Andrews
          • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
            • ... James Andrews
              • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to