UNEXPECTED_INTERNAL_API_ERROR when creating html5 template ad

94 views
Skip to first unread message

Adam Marshall

unread,
Mar 2, 2017, 5:26:11 PM3/2/17
to AdWords API Forum
Hello, I have been receiving the following error when attempting to create an html5 template for the last 36 hours:

This is the only error information received:
(Error: InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, FieldPath: , Trigger: )


This has been working unchanged for over 8 months, yesterday it started throwing these errors.

I am using v201609 ( I also tested on 201702, but same issue)

The campaign and adgroup are created successfully, just uploading the html5 ads is failing.

Here is my c# code:

 AdWordsApiVersion.AdGroupAdService adGroupAdService = (AdWordsApiVersion.AdGroupAdService)User.GetService(AdWordsServiceVersion.AdGroupAdService);
            AdWordsApiVersion.TemplateAd html5Ad = new AdWordsApiVersion.TemplateAd()
            {
                name = adName,
                templateId = 419,
                finalUrls = new string[] { finalUrl },
                displayUrl = displayUrl,
                dimensions = new AdWordsApiVersion.Dimensions()
                {
                    width = width,
                    height = height
                }
            };
            AdWordsApiVersion.MediaBundle mediaBundle = new AdWordsApiVersion.MediaBundle()
            {
                data = html5ZipBytes,
                entryPoint = GaTemplateManager.GoogleAdEntryPointHtml,
                type = AdWordsApiVersion.MediaMediaType.MEDIA_BUNDLE
            };
            html5Ad.templateElements = new AdWordsApiVersion.TemplateElement[] {
                new AdWordsApiVersion.TemplateElement() {
                    uniqueName = "adData",
                    fields = new AdWordsApiVersion.TemplateElementField[] {
                        new AdWordsApiVersion.TemplateElementField() {
                        name = "Custom_layout",
                        fieldMedia = mediaBundle,
                        type = AdWordsApiVersion.TemplateElementFieldType.MEDIA_BUNDLE
                    },
                    new AdWordsApiVersion.TemplateElementField() {
                        name = "layout",
                        fieldText = "Custom",
                        type = AdWordsApiVersion.TemplateElementFieldType.ENUM
                        },
                    },
                }
            };
            // Create the AdGroupAd.
            AdWordsApiVersion.AdGroupAd html5AdGroupAd = new AdWordsApiVersion.AdGroupAd()
            {
                adGroupId = adGroupId,
                ad = html5Ad,
                // Additional properties (non-required).
                status = AdWordsApiVersion.AdGroupAdStatus.ENABLED
            };
            AdWordsApiVersion.AdGroupAdOperation adGroupAdOperation = new AdWordsApiVersion.AdGroupAdOperation()
            {
                @operator = AdWordsApiVersion.Operator.ADD,
                operand = html5AdGroupAd
            };

// Error is thrown on this line:

            AdWordsApiVersion.AdGroupAdReturnValue result = adGroupAdService.mutate(new AdWordsApiVersion.AdGroupAdOperation[] { adGroupAdOperation });
            if (result != null && result.value != null)
            {
                return result.value[0];
            }
            else
            {
                throw new Exception("HTML5 ad " + adName + " could not be added.");
            }


Adam Marshall

unread,
Mar 2, 2017, 7:44:05 PM3/2/17
to AdWords API Forum
I have now downloaded the .Net adwords_dotnet_lib_src_v19.1.0 solution and ran the AddHtml5ad.cs, and this example also crashes.



So it is reproducible in the examples.

Can someone help me please?

Thanks,

Adam

Justin Masters

unread,
Mar 3, 2017, 1:36:57 AM3/3/17
to AdWords API Forum
We're also getting this error in code that was working recently. Keen to know what's happened

Justin

Dorian Kind

unread,
Mar 3, 2017, 4:12:24 AM3/3/17
to AdWords API Forum
Hi there,

the same seems to happen when using BatchJobs. Any job that contains creation operations for HTML5 template ads reproducibly fails with BatchJobProcessingError.INTERNAL_ERROR.
Any workarounds would be greatly appreciated.

Best regards,
Dorian

Nadine Sundquist (AdWords API Team)

unread,
Mar 3, 2017, 9:34:08 AM3/3/17
to AdWords API Forum
Greetings AdWordsians!

Thank you to everyone who spoke up here. I'm looking into it. When something like this happens, it doesn't tend to be a coincidence. I'll get back to you as soon as I finish investigating.

Best,
Nadine, AdWords API Team

Nadine Sundquist (AdWords API Team)

unread,
Mar 3, 2017, 9:55:31 AM3/3/17
to AdWords API Forum
Hello Adam,

Would you happen to have request IDs for some of the failures on AdGroupAdService? The requestId would be in your SOAP XML response. That would help me narrow this down a little faster.

Thanks,
Nadine, AdWords API Team

Nadine Sundquist (AdWords API Team)

unread,
Mar 3, 2017, 10:36:40 AM3/3/17
to AdWords API Forum
Hello Everyone!

I no longer need the request IDs. I found the root cause by surfing our logging servers. I've made this the top priority around here. I'll post an update here when I have more news.

Best,
Nadine, AdWords API Team

Nadine Sundquist (AdWords API Team)

unread,
Mar 3, 2017, 1:19:36 PM3/3/17
to AdWords API Forum
Hello AdWordsians,

I just got the all clear that code has been pushed to our servers that should make this issue disappear. Please get in contact with me if you see this error happening with HTML5 ads. Based on my analysis, it looks like the issue first started late Wednesday night and continued into today. At this point, you should no longer see this error.

Thanks,
Nadine, AdWords API Team

Inessa M

unread,
Nov 6, 2018, 7:23:21 PM11/6/18
to AdWords API and Google Ads API Forum
Hi all,

I try to add some HTML5 ads using BatchJobs (I didn't try to send it without BatchJobs; API version is 201802) and I get the same error. 
Can anyone help me please? Thanks in advance.

суббота, 4 марта 2017 г., 4:19:36 UTC+10 пользователь Nadine Sundquist (AdWords API Team) написал:

Nadine Sundquist (AdWords API Team)

unread,
Nov 7, 2018, 4:08:21 PM11/7/18
to AdWords API and Google Ads API Forum
Hello,

This is quite an old thread. Can you do me a HUGE favor? Could you please start a new thread with this question as I believe this may be a new issue?

Thanks,
Nadine, AdWords API Team

Inessa M

unread,
Nov 7, 2018, 5:09:15 PM11/7/18
to AdWords API and Google Ads API Forum
Hello Nadine,


Regards,
Inessa M.

четверг, 8 ноября 2018 г., 7:08:21 UTC+10 пользователь Nadine Sundquist (AdWords API Team) написал:
Reply all
Reply to author
Forward
0 new messages