UNEXPECTED_INTERNAL_API_ERROR - Ad Customizers - mutate

57 views
Skip to first unread message

cha...@jvweb.fr

unread,
Apr 6, 2016, 9:02:31 AM4/6/16
to AdWords API Forum

Based on the v201509 of Adwords API with dotnet and C#, I'm having an UNEXPECTED_INTERNAL_API_ERROR exception when I'm calling the mutate method.

The mutate call executes (only) one operation which is supposed to edit the ad customizer feed name. The exception is thrown between 2 and 5 times, then the instruction is executed 'normally'.

The same problem happens when I'm trying to add a new column to the ad customizer feed.

I read the documentation about UNEXPECTED_INTERNAL_API_ERROR. I'm suprised google ask us to re-execute the operation with a delay but this is not an option for us...

I guess this issue is well known since it appears in the documentation.

Do you plan to fix it? Do you have a solution to prevent it before it happens?

My code (check the attachment for a pretty view of this code + the exception detail) :

            AdCustomizerFeedService adCustomizerFeedService = (AdCustomizerFeedService)user.GetService(AdWordsService.v201509.AdCustomizerFeedService);

            Selector selector = new Selector
            {
                fields = new string[] { AdCustomizerFeed.Fields.FeedAttributes, AdCustomizerFeed.Fields.FeedId, AdCustomizerFeed.Fields.FeedName, AdCustomizerFeed.Fields.FeedStatus },
                predicates = new Predicate[] {
                    Predicate.Contains( AdCustomizerFeed.FilterableFields.FeedName, "MegaPromo"),
                    Predicate.Equals( AdCustomizerFeed.FilterableFields.FeedStatus, FeedStatus.ENABLED.ToString())
                }
            };

            AdCustomizerFeedPage page = adCustomizerFeedService.get(selector);

            if (page != null && page.entries != null && page.entries.Count() > 0)
            {
                AdCustomizerFeed adCustomizerFeed = page.entries[0];

                adCustomizerFeed.feedName = adCustomizerFeed.feedName + "|Edited ";

                AdCustomizerFeedOperation operation = new AdCustomizerFeedOperation
                {
                    operand = adCustomizerFeed,
                    @operator = Operator.SET,
                };

                AdCustomizerFeedReturnValue mutateResult = adCustomizerFeedService.mutate(new AdCustomizerFeedOperation[] { operation });

            }

Thanks for your support.

Regards.


issue.png

Anthony Madrigal

unread,
Apr 6, 2016, 9:30:58 AM4/6/16
to AdWords API Forum
Hi Charles,

Could you please provide me with the SOAP request and response that caused this error? This will help us determine the cause of it.

If you do not know how to get the SOAP logs, follow these instructions.

Thanks,
Anthony
AdWords API Team

cha...@jvweb.fr

unread,
Apr 7, 2016, 4:37:49 AM4/7/16
to AdWords API Forum
Hi Anthony,

Thanks for your support. I can't use log4j since I'm in a dotnet environment. Do you know another lib? I have not find its equivalent.

Regards,

Charles.

Anthony Madrigal

unread,
Apr 7, 2016, 9:22:53 AM4/7/16
to AdWords API Forum
Hi Charles,

Here is our guide on how to enable logging for .Net.

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages