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 guess this issue is well known since it appears in the documentation.
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.