Dear Josh,

Thank you very much for you answer, it takes on its full meaning for me now 
! I really appreciate.

Cheers,

Martin

Le jeudi 15 janvier 2015 16:17:27 UTC+1, Josh Radcliff (AdWords API Team) a 
écrit :
>
> Hi Martin,
>
> The difference between CustomerService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201409/CustomerService#get>
>  and ManagedCustomerService.get 
> <https://developers.google.com/adwords/api/docs/reference/v201409/ManagedCustomerService#get>
>  is 
> as follows:
>
>    - The *Customer* object you get back from *CustomerService.get* depends 
>    on the presence or absence of the clientCustomerId SOAP header 
>    
> <https://developers.google.com/adwords/api/docs/guides/soap#clientCustomerId> 
> in 
>    your request.
>       - If *clientCustomerId* is set, then you will get back the 
>       *Customer* object for that customer (Customer.customerId 
>       
> <https://developers.google.com/adwords/api/docs/reference/v201409/CustomerService.Customer#customerId>
>  will 
>       be equal to *clientCustomerId*)
>       - If *clientCustomerId* is *not* set, then you will get back the 
>       *Customer* object for the customer associated with your OAuth 
>       credential's account. If your OAuth credentials are for your MCC, 
> you'll 
>       get back the *Customer* object for your MCC. If your OAuth 
>       credentials are for a specific client account, you'll get back the 
>       *Customer* object for that client account.
>    - The ManagedCustomer 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201409/ManagedCustomerService.ManagedCustomer>
>  objects 
>    you get back from *ManagedCustomerService.get* will be the set of 
>    customers managed by the account specified in the *clientCustomerId* SOAP 
>    header.
>
> Hopefully that clears things up, but let me know if I missed anything.
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, January 15, 2015 at 7:48:03 AM UTC-5, Martin Geubelle wrote:
>>
>> Hi there,
>>
>> I was wondering about the proper way of getting the CustomerId of an 
>> account in all cases using the API. First, I was using the service 
>> "ManagedCustomerService" and that worked well for my accounts, until I 
>> noticed that I couldn't get accounts that were not managed by MCC (if I 
>> understood well). I then used ''CustomerService'' if nothing was returned 
>> by the first service. Is this the correct way to do that ?
>>
>> Cheers,
>>
>>
>> Martin
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/64fb478b-8109-48aa-8534-c91a7fc9c3fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to