ImageError.SERVER_ERROR when creating ads

126 views
Skip to first unread message

Rodrigo Ferreira

unread,
Feb 26, 2014, 5:12:12 PM2/26/14
to adwor...@googlegroups.com
Hi there,

I am experience the following error when I perform calls to "mutate ADD" image ads.

It seems random and not dependent on input.

How should I go about it?

Thanks in advance!

Best,
Rodrigo

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<requestId>0004f2f24d7d1c980ae0644300002285</requestId>
<serviceName>AdGroupAdService</serviceName>
<methodName>mutate</methodName>
<operations>0</operations>
<responseTime>10183</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>[ImageError.SERVER_ERROR @ operations[0].operand.ad.image.data]
</faultstring>
<detail>
<message>[ImageError.SERVER_ERROR @ operations[0].operand.ad.image.data]</message>
<ApplicationException.Type>ApiException</ApplicationException.Type>
<errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ImageError">
<fieldPath>operations[0].operand.ad.image.data</fieldPath>
<trigger></trigger>
<errorString>ImageError.SERVER_ERROR</errorString>
<ApiError.Type>ImageError</ApiError.Type>
<reason>SERVER_ERROR</reason>
</errors>
</ApiExceptionFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>

Ray Tsang (AdWords API Team)

unread,
Mar 3, 2014, 5:55:43 PM3/3/14
to adwor...@googlegroups.com
Rodrigo,

Could I trouble you to send me the full request using the "Reply to Author" function?  (with sensitive information stripped out).

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
Mar 5, 2014, 5:19:38 PM3/5/14
to adwor...@googlegroups.com
Rodrigo,

Could I trouble you to confirm what client library are you using?

Thanks,

Rodrigo Ferreira

unread,
Mar 6, 2014, 2:57:16 PM3/6/14
to adwor...@googlegroups.com
I use my own PHP library based on SoapClient component and the specs.

Ray Tsang (AdWords API Team)

unread,
Mar 6, 2014, 6:04:13 PM3/6/14
to adwor...@googlegroups.com
Rodrigo,

First thing I'd like to make sure how you are setting the file content into the data field.  Did you do:
1.  ...->data = base64_encode(file_get_content(...)) or
2. ...->data = file_get_content(...)

Thanks,

Rodrigo Ferreira

unread,
Mar 6, 2014, 9:36:34 PM3/6/14
to adwor...@googlegroups.com
Hi Ray, I do 2 and let SoapClient take care of encoding.

I remember trying 1 and always getting an error, whilst 2 works most of the time except for the relatively rare occasions where I run into the issue. 

Ray Tsang (AdWords API Team)

unread,
Mar 7, 2014, 10:29:46 AM3/7/14
to adwor...@googlegroups.com
Rodrigo,

Thanks!  Just wanted to make sure because it was a common issue.  Could I trouble you to run the request again and send me the latest response (with the requestId).

Appreciate the help,

Ray

Ray Tsang (AdWords API Team)

unread,
Mar 19, 2014, 4:30:37 PM3/19/14
to adwor...@googlegroups.com
Rodrigo,

Thanks for the log.  I'll be investigating this.

Cheers!

Ray

Ray Tsang (AdWords API Team)

unread,
Mar 25, 2014, 6:04:01 PM3/25/14
to adwor...@googlegroups.com
Rodrigo,

FYI we are looking into this issue but will need your help to generate one more request.  Please also confirm if this is a persistent issue for you.

Thanks,

Ray

Ray Tsang (AdWords API Team)

unread,
Apr 3, 2014, 3:39:47 PM4/3/14
to adwor...@googlegroups.com
Rodrigo,

I've received your log.  I'll continue to work on this.

Thanks!

Ray

Ray Tsang (AdWords API Team)

unread,
May 6, 2014, 11:49:31 AM5/6/14
to adwor...@googlegroups.com
Rodrigo,

It seems like there is something weird about the image you used that's causing errors in the system.  Our engineers were able to reproduce the issue - however they were also able to resolve it by re-saving the image with default settings.  Essentially it also reduced resolution, etc.  Could I trouble you to reproduce the asset and uploading it w/ a slightly different resolution setting?

Thanks,

Ray

Rodrigo Ferreira

unread,
Jul 27, 2014, 4:57:46 PM7/27/14
to adwor...@googlegroups.com
Hi Ray,

sorry for the long delay in getting back to you.

I have tested uploading the ads using a lower PNG compression level (3, default was 6) and now it seems to work.

If I find any other case where this change in compression level does not solve the problem I will let you know.

Thanks for your help!

Best,
Rodrigo

Rodrigo Ferreira

unread,
Aug 19, 2014, 12:39:23 PM8/19/14
to adwor...@googlegroups.com
Hi Ray,

we are experiencing an unpleasant interplay between this compression level limitation and the size of ad files uploaded.

We have lowered the compression level of PNGs in order to accommodate the limitation, as you have described in this thread.

But now instead of InternalApiError.UNEXPECTED_INTERNAL_API_ERROR we are receiving ImageError.FILE_TOO_LARGE due to the fact that less compression implies a larger binary.

Right now we are "fighting" this situation by trial and error, probably we will have to guess the compression levels and submit the same file multiple times upon error.

Should not the API support proper compression at any level?

Or, at least, establish a standard compression level and support any file size (bound by the given ad dimensions) for that given setting?

Leaving API clients to deal with this issue makes the solution unnecessarily complicated and inefficient, just my opinion. :)

Thanks in advance!

Cheers,
Rodrigo

Ray Tsang (AdWords API Team)

unread,
Aug 19, 2014, 6:20:12 PM8/19/14
to adwor...@googlegroups.com
Rodrigo,

Could I trouble you to try w/ a different compression level and/or potentially a different file format?
What software are you using to produce the final image that is to be uploaded??

Thanks,

Ray

Rodrigo Ferreira

unread,
Aug 19, 2014, 7:52:55 PM8/19/14
to adwordsapi...@google.com, adwor...@googlegroups.com
Hi Ray,

we use for our images the PNG format. We create the ads from a template
system and generate the binary through the "imagepng" function that is
part of the PHP GD library (Version 2.0 w/ libPNG 1.2.46).

We had to lower the compression level to 3 so that all our ads were
uploaded without problems (as you have suggested, tweaking compression
level). But now we have encountered a new ad instance that, with
compression level 3, is too large.

From tests, it seems that no single compression level we choose is good
for uploading all our ads (which suffer minor changes from time to
time). I will try other formats and levels.

Cheers
Rodrigo
> --
> --
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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 adwor...@googlegroups.com
> To unsubscribe from this group, send email to
> adwords-api...@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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/Pu7R3VEA6mY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> adwords-api...@googlegroups.com
> <mailto:adwords-api...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/adwords-api/8cb8bdd8-f515-461a-a515-8ff7ade2825a%40googlegroups.com
> <https://groups.google.com/d/msgid/adwords-api/8cb8bdd8-f515-461a-a515-8ff7ade2825a%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Rodrigo Ferreira, Cofundador
Pousadinhas, encontre a sua!
http://www.pousadinhas.com.br/

Ray Tsang (AdWords API Team)

unread,
Aug 20, 2014, 9:48:34 AM8/20/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Rodrigo,

Thanks for the update.  I'll follow up on this.

Cheers,

Ray
> 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 a topic in the
> Google Groups "AdWords API Forum" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/adwords-api/Pu7R3VEA6mY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Ray Tsang (AdWords API Team)

unread,
Sep 2, 2014, 6:02:57 PM9/2/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Rodrigo,

Could I trouble you to send me a few more images that failed to upload (in private)?

Thanks!

Ray

Josh Radcliff (AdWords API Team)

unread,
Dec 9, 2014, 11:23:28 AM12/9/14
to adwor...@googlegroups.com, adwordsapi...@google.com
Hi Rodrigo,

I'm taking over this issue for Ray. Could you let me know if you're still encountering this problem, and if so, send over some more images that failed to upload? You can send them only to me by clicking Reply to Author on this message.

Thanks,
Josh, AdWords API Team

Reply all
Reply to author
Forward
0 new messages