Hi Josh,

Thank you for  clarifying that for me, what i am trying to do with it is 
get the customerId to display for the user, so they can see which adword 
account has been connected, can you maybe point me in the right direction 
for which API function to use for that, so it works for all accounts?

I verify that the credentials i am using in the request produce an empty 
response for accounts that are not linked to MCCs. :)

Thanks,
Daniel

On Thursday, March 5, 2015 at 8:29:34 PM UTC+1, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Danial,
>
> Thanks for sending over the samples. I was finally able to reproduce this 
> behavior by using OAuth credentials for an account *without an associated 
> MCC*. Could you verify that the credentials you are using in the request 
> that produces an empty response are for an account that is not linked to 
> any MCCs?
>
> Although this isn't totally intuitive, it is expected behavior. 
> ManagedCustomerService 
> <https://developers.google.com/adwords/api/docs/reference/v201409/ManagedCustomerService>
>  
> is meant for working with accounts in an MCC hierarchy, so it won't return 
> any information for a standalone account that's not under any MCCs.
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, March 5, 2015 at 4:44:53 AM UTC-5, d...@adservice.com wrote:
>>
>> Here are the logs for a request which doesn't return anything, and a 
>> request which returns the expected.
>>
>> aw_api_lib.log
>> [04 Mar 2015 14:53:07,766 - INFO ] auth=OAuth client_id= 
>> service=ManagedCustomerService method=get response_time=287 
>> request_id=00051076c55f2a980adb476ad3005763 operations=1 is_fault=no
>> [04 Mar 2015 15:04:48,601 - INFO ] auth=OAuth client_id= 
>> service=ManagedCustomerService method=get response_time=265 
>> request_id=00051076ef21ac210adb476ad3005763 operations=1 is_fault=no
>>
>> soap_xml.log
>> [04 Mar 2015 14:53:07,022 - INFO ] Outgoing Request:
>> <?xml version="1.0" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; 
>> ><SOAP-ENV:Header><RequestHeader xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201406";><developerToken 
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>REDACTED</developerToken><userAgent
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>./
>> get_account_hierarchy.pl (AwApi-Perl/3.1.1, Common-Perl/3.1.1, 
>> SOAP-WSDL/v3.002, libwww-perl/6.06, perl/5.018002)</userAgent><validateOnly 
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>false</validateOnly><partialFailure
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>false</partialFailure></RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><get
>>  
>> xmlns="https://adwords.google.com/api/adwords/mcm/v201406";><serviceSelector><fields
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>Name</fields><fields
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406
>> ">CustomerId</fields></serviceSelector></get></SOAP-ENV:Body></SOAP-ENV:Envelope>
>> [04 Mar 2015 14:53:07,717 - INFO ] Incoming response:
>> <soap:Envelope 
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
>>  
>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406"; xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201406";><ns2:requestId>00051076c55f2a980adb476ad3005763</ns2:requestId><ns2:serviceName>ManagedCustomerService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>287</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse
>>  
>> xmlns="https://adwords.google.com/api/adwords/mcm/v201406"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/cm/v201406
>> "><rval><ns2:totalNumEntries>0</ns2:totalNumEntries><ns2:Page.Type>ManagedCustomerPage</ns2:Page.Type></rval></getResponse></soap:Body></soap:Envelope>
>> [04 Mar 2015 15:04:46,735 - INFO ] Outgoing Request:
>> <?xml version="1.0" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance"; 
>> ><SOAP-ENV:Header><RequestHeader xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201406";><developerToken 
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>REDACTED</developerToken><userAgent
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>./
>> get_account_hierarchy.pl (AwApi-Perl/3.1.1, Common-Perl/3.1.1, 
>> SOAP-WSDL/v3.002, libwww-perl/6.06, perl/5.018002)</userAgent><validateOnly 
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>false</validateOnly><partialFailure
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>false</partialFailure></RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><get
>>  
>> xmlns="https://adwords.google.com/api/adwords/mcm/v201406";><serviceSelector><fields
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406";>Name</fields><fields
>>  
>> xmlns="https://adwords.google.com/api/adwords/cm/v201406
>> ">CustomerId</fields></serviceSelector></get></SOAP-ENV:Body></SOAP-ENV:Envelope>
>> [04 Mar 2015 15:04:48,420 - INFO ] Incoming response:
>> <soap:Envelope 
>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
>>  
>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406"; xmlns="
>> https://adwords.google.com/api/adwords/mcm/v201406";><ns2:requestId>00051076ef21ac210adb476ad3005763</ns2:requestId><ns2:serviceName>ManagedCustomerService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>265</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse
>>  
>> xmlns="https://adwords.google.com/api/adwords/mcm/v201406"; xmlns:ns2="
>> https://adwords.google.com/api/adwords/cm/v201406
>> "><rval><ns2:totalNumEntries>1</ns2:totalNumEntries><ns2:Page.Type>ManagedCustomerPage</ns2:Page.Type><entries><name>x</name><customerId>6153306165</customerId></entries></rval></getResponse></soap:Body></soap:Envelope>
>>
>> Thanks,
>> Daniel
>>
>> On Wednesday, March 4, 2015 at 6:17:06 PM UTC+1, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi,
>>>
>>> Are you specifying any additional predicates in your request? I ask 
>>> because both of those accounts are regular (non-MCC) AdWords accounts, so 
>>> if you have a predicate on *CanManageClients = true*, then the request 
>>> will not return any *ManagedCustomer*s.
>>>
>>> Could you post your SOAP request (with sensitive information removed)? 
>>> The Perl library logs requests to the *logs* directory under your home 
>>> directory.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Wednesday, March 4, 2015 at 9:07:22 AM UTC-5, d...@adservice.com 
>>> wrote:
>>>>
>>>> Hi Josh,
>>>>
>>>> No, when i execute the script i just get the message, i've tried to 
>>>> execute the script with data from a client where it works, and i get this 
>>>> message:
>>>> CustomerId, Name
>>>>  6153306165, x
>>>>
>>>> i was sent another customerId which is having problems receiving data 
>>>> to adwords: 891-111-8334
>>>> is there anything special with those accounts?
>>>>
>>>> On Monday, March 2, 2015 at 3:23:31 PM UTC+1, Josh Radcliff (AdWords 
>>>> API Team) wrote:
>>>>>
>>>>> Hi Daniel,
>>>>>
>>>>> Do you see any errors in your logs before the "No serviced accounts 
>>>>> were found" message?
>>>>>
>>>>> Thanks,
>>>>> Josh, AdWords API Team
>>>>>
>>>>> On Monday, March 2, 2015 at 6:46:11 AM UTC-5, d...@adservice.com 
>>>>> wrote:
>>>>>>
>>>>>> sorry, the correct id is 542-285-9389
>>>>>>
>>>>>> On Thursday, February 26, 2015 at 11:45:23 PM UTC+1, Josh Radcliff 
>>>>>> (AdWords API Team) wrote:
>>>>>>>
>>>>>>> Hi Daniel,
>>>>>>>
>>>>>>> I do not see any AdWords account with customer ID 542-288-9389. 
>>>>>>> Please confirm through the AdWords UI (or with your customer) that you 
>>>>>>> have 
>>>>>>> the correct customer ID.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Josh, AdWords API Team
>>>>>>>
>>>>>>> On Thursday, February 26, 2015 at 8:40:38 AM UTC-5, 
>>>>>>> d...@adservice.com wrote:
>>>>>>>>
>>>>>>>> We are unable to access some of our clients who authorize us to 
>>>>>>>> manage their account using the API, while others work perfectly well.
>>>>>>>> We are mostly using the OfflineConversion API, but for testing a 
>>>>>>>> specific client we are having troubles with I am executing 
>>>>>>>> get_account_hierarchy.pl which returns "No serviced accounts were 
>>>>>>>> found.". We do have the required tokens. What does this error mean, 
>>>>>>>> and how 
>>>>>>>> do we fix it?
>>>>>>>> The customerId of the example client we are having challenges with 
>>>>>>>> getting to work is 5422889389.
>>>>>>>> Our API clientId is 185707205179
>>>>>>>>
>>>>>>>> Kind regards,
>>>>>>>> Daniel
>>>>>>>>
>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/da4059cf-b9b8-4930-9798-533c0cdfff06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to