Hello,

Yes, you can use CustomerService to find out the effective clientCustomerId 
and then ManagedCustomerService to retrieve the accounts list.

Please note this will pull data for the authenticated user, no the 
developer token MCC. You can't target an account with a dev token.


-Danial, AdWords API Team.


On Thursday, April 9, 2015 at 6:57:51 PM UTC+3, sa...@nmodal.com wrote:
>
> I just wanted to clarify. Is it possible to get a list of accounts without 
> including a customer ID..? Or rather get a list of customer IDs linked to a 
> developer token? 
>
> On Wednesday, April 23, 2014 at 2:23:05 AM UTC-4, Oliver wrote:
>>
>> It's not possible to do it how you want it. You need to iterate through 
>> each account. Here is a similar discussion (check last few posts):
>>
>> https://groups.google.com/forum/#!topic/adwords-api/6_se0m7g1v8
>>
>> Oliver
>>
>> On Tuesday, April 22, 2014 7:27:12 PM UTC+1, Jake Wilson wrote:
>>>
>>> We have multiple accounts in our MMC.  Right now, in order to fetch a 
>>> list of campaigns, it's on a per-account basis.  That is, we have to 
>>> specify which account we want to fetch campaigns for:
>>>
>>> $user = new AdWordsUser();
>>> $user->setClientCustomerId($accountId);
>>>
>>> $campaignService = $user->GetService('CampaignService', ADWORDS_VERSION);
>>>
>>> $selector = new Selector();
>>> $selector->fields = array(
>>> 'Id',
>>> 'Name',
>>> 'Status',
>>> etc...
>>>
>>> So this means, that if we want to get a list of ALL campaigns for our 
>>> MMC, we have to iterate through each account, and get the campaigns for 
>>> each account, thus requiring multiple calls to the API.
>>>
>>> Is it possible to fetch all campaigns at once?
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/bcd56297-3b3f-49f4-b524-c03fe547c882%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to