So I'm actually having this same issue. Here is how I'm set up:

--MCC
  -- test manager account
    -- test adwords account
      -- test campaign

I'm using the MCC developer token (does not have production access) and the 
clientCustomerId for the test adwords account. I'm not getting any auth 
errors, only an empty result. Any ideas? 



On Wednesday, August 27, 2014 at 7:12:16 AM UTC-7, Josh Radcliff (AdWords 
API Team) wrote:
>
> Hi,
>
> Also, is the *clientCustomerId* in your header the customer ID of your 
> test *MCC* or your test *AdWords account* (child of your test MCC)? If 
> it's set to your MCC, please change it to your AdWords account -- an MCC 
> doesn't have any campaigns, so an empty response is expected if that's the 
> *clientCustomerId* specified.
>
> It sounds like your OAuth credentials at least match the 
> *clientCustomerId* in your header, else you would be getting an auth 
> error instead of an empty response. However, as Stacie recommended, if you 
> change the *clientCustomerId* to a different account you'll want to make 
> sure you're using OAuth credentials obtained while logged in as a user with 
> access to that account.
>
> Cheers,
> Josh, AdWords API Team
>
> On Wednesday, August 27, 2014 9:46:33 AM UTC-4, Stacie Waleyko wrote:
>>
>> Maybe the OAuth credentials are incorrect? Did you remember to update 
>> them when you started using the test account? 
>>
>> On Tuesday, August 26, 2014 9:43:58 AM UTC-7, ma...@clickedon.it wrote:
>>>
>>> I am having some issues with no campaigns coming back.
>>> I am requesting from my sandbox account. However, it won't return any 
>>> campaigns from either my main account or my test.
>>> I have campaigns in both. Here is what I am doing. 
>>>
>>> clientCustomerId - My test account
>>> developerToken - My main account
>>>
>>> Sadly, this all worked about 6 weeks ago. Any advice would be 
>>> appreciated.
>>> Thanks
>>>
>>>
>>> Account account = mutationRequest.getAccount();
>>> // Get the CampaignService.
>>> CampaignServiceInterface campaignService = 
>>> getAdWordsService(account.getId(), CampaignServiceInterface.class);
>>>
>>> int offset = 0;
>>>
>>> String query = "SELECT Id, Name, Status";
>>>
>>> CampaignPage page = null;
>>> do {
>>>
>>> String pageQuery = query + String.format(" LIMIT %d, %d", offset, 
>>> PAGE_SIZE);
>>> // Get all campaigns.
>>> page = campaignService.query(pageQuery);
>>>
>>> // Display campaigns.
>>> if (page.getEntries() != null) {
>>> for (Campaign googleCampaign : page.getEntries()) {
>>> resolveConflicts(campaigns, account, googleCampaign);
>>> }
>>> }
>>>
>>> offset += PAGE_SIZE;
>>> } while (offset < page.getTotalNumEntries());
>>>
>>>
>>> REQUEST:
>>> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="
>>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="
>>> http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance";>
>>>     <soapenv:Header>
>>>         <ns1:RequestHeader xmlns:ns1="
>>> https://adwords.google.com/api/adwords/cm/v201402"; 
>>> soapenv:mustUnderstand="0">
>>>             <ns1:clientCustomerId>434-xx-xx24</ns1:clientCustomerId>
>>>             
>>> <ns1:developerToken>W8Rmxxxxx-xxxxxxxxRqn5A</ns1:developerToken>
>>>             <ns1:userAgent>Cxxxxxxxt (AwApi-Java, AdWords-Axis/1.32.0, 
>>> Common-Java/1.32.0, Axis/1.4, Java/1.8.0_11, maven)</ns1:userAgent>
>>>             <ns1:validateOnly>false</ns1:validateOnly>
>>>             <ns1:partialFailure>false</ns1:partialFailure>
>>>         </ns1:RequestHeader>
>>>     </soapenv:Header>
>>>     <soapenv:Body>
>>>         <query xmlns="https://adwords.google.com/api/adwords/cm/v201402
>>> ">
>>>             <query>SELECT Id, Name, Status LIMIT 0, 100</query>
>>>         </query>
>>>     </soapenv:Body>
>>> </soapenv:Envelope>
>>>
>>> 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/v201402";>
>>>             <requestId>0005018aeb6ad1100abf81d794009ffa</requestId>
>>>             <serviceName>CampaignService</serviceName>
>>>             <methodName>query</methodName>
>>>             <operations>1</operations>
>>>             <responseTime>365</responseTime>
>>>         </ResponseHeader>
>>>     </soap:Header>
>>>     <soap:Body>
>>>         <queryResponse xmlns="
>>> https://adwords.google.com/api/adwords/cm/v201402";>
>>>             <rval>
>>>                 <totalNumEntries>0</totalNumEntries>
>>>                 <Page.Type>CampaignPage</Page.Type>
>>>             </rval>
>>>         </queryResponse>
>>>     </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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/76fe6953-459d-4e06-b9f7-d4aa717034ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to