Hello,

 When testing the code samples for the local image ad addition, I used
a 16x16 "icon" image and a 96x96 "business" image successfully. Could
you try those dimensions? It may be that the developer's guide needs
to be updated due to changes in what the local business backend
supports.

Cheers,
-Jeff Posnick, AdWords API Team


On Aug 22, 8:16 am, veseo <[EMAIL PROTECTED]> wrote:
> As I'm almost sure the problem lies in validating images, I decided to
> try the sample code provided in the developers guide and I got some
> problems validating images. I get this error:
>
> New local business ad was not created due to the following policy
> violations: Error in field: image.data
> isExemptable: false
> Detail:This image is not of legal dimensions.
> Index:0
> Trigger:
> Code:59
>
> When I use these values for custom icon and business image variables:
>
> $business_image = file_get_contents('/home/vis/Pictures/asd.png'); //
> this one is exactly 125x125
> $custom_icon = file_get_contents('/home/vis/Pictures/cust.png'); //
> this one is exactly 16x16
>
> I also tried setting them to an online link with different sizes (all
> of them below the limits, 125x125 and 16x16) but still no luck. Is
> there some rules for the images I provide to the <businessImage> and
> <customIcon> fields, except that they need to be base64_encode()-ed?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to