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:'<null>']</faultstring> >> <detail> >> <ApiExceptionFault xmlns=" >> https://adwords.google.com/api/adwords/cm/v201309"> >> <message>[AuthenticationError.NOT_ADS_USER @ ; >> trigger:'<null>']</message> >> >> <ApplicationException.Type>ApiException</ApplicationException.Type> >> <errors xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" >> xsi:type="AuthenticationError"> >> <fieldPath/> >> <trigger><null></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/groups/opt_out.