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.");
}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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/0700aecd-4a79-4ae7-9e07-23af0d1a173b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.