This morning a proses which was working fine started to error on it's 
second call (I am iterating through a csv file) with 
[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]
 

it is happening by the get command "page = adGroupService.get(selector);".

...
            // Create the selector.
            Selector selector = new Selector();
            selector.fields = new string[] { "Id", "Name", "Status" };

            // Create the filters.
            selector.predicates = new Predicate[3];
            selector.predicates[0] = new Predicate();
            selector.predicates[0].field = "Name";
            selector.predicates[0].@operator = PredicateOperator.EQUALS;
            selector.predicates[0].values = new String[] { adGroupName };

            // Set the selector paging.
            selector.paging = new Paging();

            int offset = 0;
            int pageSize = 500;
            //selector.paging.startIndex = 0;
            //selector.paging.numberResults = 1;

            AdGroupPage page = new AdGroupPage();

            try
            {
                selector.paging.startIndex = offset;
                selector.paging.numberResults = pageSize;
                // Get the ad groups.
                page = adGroupService.get(selector);

                // Display the results.
                if (page != null && page.entries != null)
                {
                    foreach (AdGroup adGroup in page.entries)
                    {
                        this.notify_UI(string.Format("Ad group Name: '{0}', 
ID: {1}, Status: {2}.\n", adGroup.name, adGroup.id, adGroup.status));
                        adGroupIdList.Add(adGroup.id);
                    }
                }
                else
                    return null;
            }
            catch (Exception ex)
            {
                this.notify_UI(ex.ToString() + "\n", true);
                return null;
            }
...

I put in a sleep command for 10 seconds after which the error can on 
approximately the 14 time.

Thanks,
Sam

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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