Hi David, If things started working for you, then one possibility is that your OAuth2 headers now resolve to that of an advertiser account instead of an MCC account. I recommend setting the clientCustomerId all the time, so you know for sure what account you are making calls against.
Cheers, Anash On Sunday, August 24, 2014 9:41:20 AM UTC-4, David WM Lin wrote: > > Hi Anash, > > Yes, you are right, I did not set the "ClientCustomerId" header. However, > I just do some testing today, the program works fine again with or without > the "clientCustomerid" header. Very strange indeed. > > I will include ClientCustomerid header from now and hope this will fix the > problem. > > Many thanks for you. > > David > > > > > On Saturday, August 23, 2014 4:36:13 AM UTC+10, Anash P. Oommen (AdWords > API Team) wrote: >> >> Hi David, >> >> Looks like you are not setting ClientCustomerId header any longer, so all >> the requests to fetch specific entries are returning zero results. Could >> you please check your code and confirm if this is the case? >> >> Cheers, >> Anash P. Oommen, >> AdWords API Advisor. >> >> On Friday, August 22, 2014 7:07:20 AM UTC-4, Dave L wrote: >>> >>> Hi, >>> >>> My code has been working fine until recently (about 2 weeks ago), I have >>> experienced a very strange error. >>> >>> I have always got a fresh AccessToken before calling the API. However, I >>> always get "<totalNumEntries>0</totalNumEntries>" for every service I >>> called. There is not error message, but simply "<totalNumEntries>0</ >>> totalNumEntries>". >>> >>> Here is a sample of the response for "AdGroupCriterionService": >>> >>> <soap:Envelope >>> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader >>> >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402"><requestId>00050108ac19b7b00a42662191005c81</requestId><serviceName>AdGroupCriterionService</serviceName><methodName>get</methodName><operations>0</operations><responseTime>216</responseTime></ResponseHeader></soap:Header><soap:Body><getResponse >>> >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> "><rval><totalNumEntries>0</totalNumEntries><Page.Type>AdGroupCriterionPage</Page.Type></rval></getResponse></soap:Body></soap:Envelope> >>> >>> After many hours testing, by accident, I changed the AccessToken to a >>> fake AccessToken such as "ddddddddddddddddddddddddddddddddddddd" to try, >>> then I can get the correct response data from the server. >>> >>> I just cannot believe this, it completely does not make any sense. I am >>> not sure if this is my problem, or an error from Google. >>> >>> However, by using a fake AccessToken only works for some accounts, but >>> some accounts still did not work no matter what I do. >>> >>> I really need your help on this. >>> >>> Many thanks. >>> David >>> >>> >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/3393b18b-8f1d-455c-8995-47985f46cd46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.