Frank,

Jake is right - there is a way to specify the CID.  It sounds like you are 
using Java client library - what you can do is using 
AdWordsSession.setClientCustomerId()<http://googleads.github.io/googleads-java-lib/1.26.0/com/google/api/ads/adwords/lib/client/AdWordsSession.html#setClientCustomerId(java.lang.String)>
 method.

You can use the 
ManagedCustomerService<https://developers.google.com/adwords/api/docs/reference/v201402/ManagedCustomerService>to
 get all of your descendant AdWords accounts under the MCC.

Thanks,

Ray

On Thursday, March 6, 2014 4:37:16 PM UTC-5, Jake Wilson wrote:
>
> I'm not sure exactly which library you are using but for example, when I'm 
> using the PHP library, you have to specify which Account ID you want to 
> fetch campaigns for like this:
>
> $user = new AdWordsUser();
> $user->setClientCustomerId(39495930303);  <--- Account ID
>
> You have to get the account IDs via the API.  They don't show up in the 
> web interface that I have seen.
>
> Jake
>
>
> On Thursday, March 6, 2014 10:12:10 AM UTC-7, Frank Tolsma wrote:
>>
>> Ray,
>>
>> So the MCC info should be in the ads.properties file and then I should be 
>> able to iterate through the accounts managed by the MCC account (and get 
>> reports from those regular accounts) ?
>>
>> Is the GetAccountHierarchy example an example of how this iterating could 
>> be done?
>> When I run that example, I also get a AuthenticationError.NOT_ADS_USER 
>> error.
>>
>> That then probably means that my MCC account info is wrong?
>>
>> thanks,
>> Frank
>>
>> Op woensdag 5 maart 2014 20:06:45 UTC+1 schreef Ray Tsang (AdWords API 
>> Team):
>>>
>>> Frank,
>>>
>>> You can only pull campaign data when you have specified a regular 
>>> AdWords (non-MCC) account.  You'll need to iterate through different CIDs 
>>> to pull data for each account.
>>>
>>> Thanks,
>>>
>>> Ray
>>>
>>> On Wednesday, March 5, 2014 9:30:36 AM UTC-5, Frank Tolsma wrote:
>>>>
>>>> Going through the OAuth2 steps, I generated a refreshToken and put that 
>>>> in ads.properties.
>>>> That was for a 'normal' account, one that is managed by/from the MCC 
>>>> account.
>>>> Running GetCampaigns worked.
>>>>
>>>> Then I did the same for the MCC account, because I need all campaigns, 
>>>> for all customers.
>>>> But that resulted in an autentication error: 
>>>> AuthenticationError.NOT_ADS_USER
>>>> I don't know why though...
>>>>
>>>> I put the response I got below. The requestId is of no use to me, but 
>>>> maybe it can be to you?
>>>>
>>>>
>>>> [05 mrt 2014 15:19:40,736-soapXmlLogger:WARN:main] SOAP Response:
>>>> <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="
>>>> http://schemas.xmlsoap.org/soap/envelope/";>
>>>>     <soap:Header>
>>>>         <ResponseHeader xmlns="
>>>> https://adwords.google.com/api/adwords/cm/v201309";>
>>>>             <requestId>*0004f3dcb8be13f00ae0d00300003947*</requestId>
>>>>             <serviceName>CampaignService</serviceName>
>>>>             <methodName>get</methodName>
>>>>             <operations>0</operations>
>>>>             <responseTime>118</responseTime>
>>>>         </ResponseHeader>
>>>>     </soap:Header>
>>>>     <soap:Body>
>>>>         <soap:Fault>
>>>>             <faultcode>soap:Server</faultcode>
>>>>             <faultstring>[AuthenticationError.NOT_ADS_USER @ ; 
>>>> trigger:'&lt;null&gt;']</faultstring>
>>>>             <detail>
>>>>                 <ApiExceptionFault xmlns="
>>>> https://adwords.google.com/api/adwords/cm/v201309";>
>>>>                     <message>[AuthenticationError.NOT_ADS_USER @ ; 
>>>> trigger:'&lt;null&gt;']</message>
>>>>                     
>>>> <ApplicationException.Type>ApiException</ApplicationException.Type>
>>>>                     <errors xmlns:xsi="
>>>> http://www.w3.org/2001/XMLSchema-instance"; 
>>>> xsi:type="AuthenticationError">
>>>>                         <fieldPath/>
>>>>                         <trigger>&lt;null&gt;</trigger>
>>>>                         
>>>> <errorString>AuthenticationError.NOT_ADS_USER</errorString>
>>>>                         
>>>> <ApiError.Type>AuthenticationError</ApiError.Type>
>>>>                         <reason>NOT_ADS_USER</reason>
>>>>                     </errors>
>>>>                 </ApiExceptionFault>
>>>>             </detail>
>>>>         </soap:Fault>
>>>>     </soap:Body>
>>>> </soap:Envelope>
>>>>
>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to