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
-~----------~----~----~----~------~----~------~--~---