Hi Alejandro,

Sorry, my mistake. :) What I was thinking was that there's not much point 
to setting *numberResults = 0 *in most cases, but I completely forgot about 
the use case of simply getting the count of objects that match the 
predicate you specified (e.g., from totalNumEntries 
<https://developers.google.com/adwords/api/docs/reference/latest/AdGroupService.AdGroupPage#totalnumentries>),
 
where *numberResults=0* makes sense.

The underlying error on those requests are timeouts while reading data from 
your account. This can happen for a variety of reasons, including if there 
is a particularly high volume of requests against a particular account 
within a short time window. For example, on Nov 16, I see that anywhere 
from 200 to 9,000 requests per hour were issued against that account 
between 13:00 and 18:00 Pacific time.

In this situation, your best bet is to simply retry the request using some 
sort of retry policy (e.g., exponential backoff).

Thanks,
Josh, AdWords API Team

On Thursday, November 16, 2017 at 4:31:20 PM UTC-5, 
alejandro.grinb...@quanticmind.com wrote:
>
> Hi,
>
> According to the link you sent, the field (numberResults) must be greater 
> than* or equal *to 0. 
> Beyond that, i changed the value to use 100 (instead of 0) and i still get 
> the same error.
>
> Thanks,
> Alejandro
>
> On Thursday, November 16, 2017 at 11:49:12 AM UTC-3, Josh Radcliff 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> I noticed that in your request, you are specifying the following in the 
>> *paging* element:
>>
>>                     <ns2:startIndex xsi:type="xsd:int">0</ns2:startIndex>
>>                     <ns2:numberResults 
>> xsi:type="xsd:int">0</ns2:numberResults>
>>
>> The numberResults 
>> <https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService.Paging#numberresults>
>>  should 
>> be a value > 0, as it indicates how many results you want returned in each 
>> response (page). Could you try changing that value and let me know if you 
>> still encounter the error?
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Thursday, November 9, 2017 at 1:21:18 PM UTC-5, Shwetha Vastrad 
>> (AdWords API Team) wrote:
>>>
>>> Hi,
>>>
>>> Do you consistently encounter the InternalApiError 
>>> <https://developers.google.com/adwords/api/docs/common-errors#InternalApiError.UNEXPECTED_INTERNAL_API_ERROR>?
>>>  
>>> Could you tell me if this error is seen with just this service or other 
>>> services as well? This error is usually related to temporary resource 
>>> related issues in the AdWords API server and retrying the request should 
>>> help in getting a successful response. Could you also send over the 
>>> clientCustomerIds for which you encountered this error? Please use the 
>>> *Reply 
>>> privately to author* option when responding.
>>>
>>> Thanks,
>>> Shwetha, AdWords API Team.
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/06c13f4a-7529-494d-bc6f-2541fc2159bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • UNEXPECTED_I... alejandro . grinberg
    • Re: UNE... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
      • Re:... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
        • ... alejandro . grinberg
          • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
    • UNEXPEC... 宋肖肖
      • Re:... 'Milind Sankeshware (AdWords API Team)' via AdWords API Forum

Reply via email to