Hello,

 I see that you're not including any information about the icon to use
with the ad--I wonder if the SOAP service is, by default, trying to
read the <customIcon><data> element but not finding it. In my request
I do specify a customIcon element, but you should be able to provide a
value for stockIcon instead:

  http://www.google.com/apis/adwords/developer/LocalBusinessAd.html#stockIcon

Do you get different results when you do that? If specifying an icon
doesn't make any difference, could you please provide the value of the
requestId SOAP response header for the associated SOAP fault and I'll
open up a bug with the engineering team to investigate why your
request is being rejected.

Cheers,
-Jeff Posnick, AdWords API Team


On Aug 27, 7:49 am, veseo <[EMAIL PROTECTED]> wrote:
> Hello,
>
> thanks for the answer. Here's what my SOAP request:
>
> <SOAP-ENV:Body><checkAds><ads><adGroupId>74734</
> adGroupId><adType>LocalBusinessAd</adType><businessName>A Business
> Corp.</businessName><businessImage><data>/9j/4AAQSkZJRgABAQEASABIAAD/
> 4QAWRXhpZgAATU0AKgAAAAgAAAAAAAD//
> gAXQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q9sAQwAFAwQEBAMFBAQEBQUFBgcMCAcHBwcPCwsJDBEPEhIRDxERExYcFxMUGhURERghGBodHR8fHxMXIiQiHiQcHh8e9sAQwEFBQUHBgcOCAgOHhQRFB4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4e8AAEQgAYABgAwEiAAIRAQMRAfEABsAAQADAQEBAQAAAAAAAAAAAAAGBwgFAgkE8QANRAAAQIFAwIFAQQLAAAAAAAAAQIDAAQFBhEHEiEIMRMUIkFRYQkjMlIVF0JTVnFzgYKRlPEABQBAQAAAAAAAAAAAAAAAAAAAADxAAUEQEAAAAAAAAAAAAAAAAAAAAA9oADAMBAAIRAxEAPwDZcIQgEIQgEIQgEIQgEIQgEIQgEIQgEIQgECcCEV1GU2q1fRC66bQ5SZm6jMSJRLsy6SXFq3J4SBzmAsDIxAHMfLL9Uetv8D3dzOxO7E6ptV7ISzQq4xL1piRyy4zU2lomk4z6S4CFbh29QJ4xAfRKEUdod1L2Xq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BKUgH3yoGQ2DCEIBCEIBCEIBHEvy2Kdedn1K16suYRI1FnwX1MLCXAnIPpJBAPHwY7ceXXENNKdcWlCEDKlKOAB8kwFS2J04aR2kyQza7FYmCFBUxV8TSiD7bVDYMexCQfrEK160j6dbQth
> +67mt5NLS36WWabNLZXNOYO1pDYVtyfkAYAyTgR
> +zXDqnsqy5ebplrPt3JcKMoSlnmUYX8uOA4Vj8qMBKe8UHathav9TF1SN0XrNPylsJUQmbUgNNIaz6kSzX7RJGN
> +COOScYgOX0iaYy+o+r7lemKGWbQpD6plTD2XWlLzlmWKlD14yFKyOQnkDcI
> +ibLbbLSGmkJQ2hISlKRgJA7AD2EceybWodm21J27bsg1JU6URtbbQOSfdSj3Uonkk8kx2oBCEIBCEIBCEIBER1mtefvXS64LVpkxLy85UpQsNOPlQbSSQfUUgnGB7AxLoQGddHOk6x7PdTUbpWm7KmkpUhMwzslWjjnDWSF8+68jtwI0PLstS7CGGG0NNNpCUIQkBKQOwAHYR7hAIQhAIQhAf2Q==</
> data><type>image</type></businessImage><businessKey>pdvQA/
> [EMAIL PROTECTED]@A Business Corp.!d@(650) 250-0000!
> [EMAIL PROTECTED] Amphitheatre [EMAIL PROTECTED] [EMAIL PROTECTED]@[EMAIL 
> PROTECTED]
> [EMAIL PROTECTED]@[EMAIL PROTECTED]@</
> businessKey><countryCode>US</countryCode><description1>Choose from our
> delicious range now</description1><description2>Pre-order or delivered
> to your door</description2><destinationUrl>http://www.dominos.co.uk/</
> destinationUrl><displayUrl>www.dominos.co.uk</displayUrl></
> ads><languageTarget><languages>en</languages></
> languageTarget><geoTarget><countryTargets><countries>US</countries></
> countryTargets></geoTarget></checkAds></SOAP-ENV:Body>
>
> And here's the response I get:
>
>  <soapenv:Body>
>   <checkAdsResponse xmlns="">
>    <ns1:checkAdsReturn xmlns:ns1="https://adwords.google.com/api/
> adwords/v12">
>     <ns1:code>59</ns1:code>
>     <ns1:detail>This image is not of legal dimensions.</ns1:detail>
>     <ns1:field>image.data</ns1:field>
>     <ns1:index>0</ns1:index>
>
>     <ns1:isExemptable>false</ns1:isExemptable>
>     <ns1:textIndex xsi:nil="true"/>
>     <ns1:textLength xsi:nil="true"/>
>     <ns1:trigger xsi:nil="true"/>
>    </ns1:checkAdsReturn>
>   </checkAdsResponse>
>  </soapenv:Body>
>
> This is using exactly the base64 encoded string you provided. The
> problem is not with the headers, I use the same throughout the sandbox
> with no problems. Probably I'm missing some field or something? Can I
> use A Business Corp. in the sandbox or should I register my own
> business there? I don't think it would put out a image dimensions
> error message when the problem lies in the business key, but who
> knows?
>
> Thanks for the help!
>
> On Aug 26, 7:22 pm, AdWords API Advisor <[EMAIL PROTECTED]>
> wrote:
>
> > Hello,
>
> >  Well, here's what my SOAP request looks like. (This particular
> > request will end up failing because Domino's Pizza is a trademark I
> > don't have permission to use, but I don't have my own business
> > registered in the Local Business Center.)
>
> >  http://sites.google.com/site/awapistuff/Home/soap.txt
>
> > Does your base-64 encoded text look identical?
>
> > Cheers,
> > -Jeff Posnick, AdWords API Team
>
> > On Aug 26, 2:44 am, veseo <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > thanks for the answer. I still had no luck with those pictures, how do
> > > you encode them? After getting their contents with file_get_contents()
> > > I base64_encode() them and send that result to the sandbox:
>
> > > $business_image = file_get_contents('/home/vis/Pictures/
> > > lba_image.jpg');
> > > $business_key = "pdvQA/[EMAIL PROTECTED]@A Business
> > > Corp.!d@(650) [EMAIL PROTECTED] Amphitheatre [EMAIL PROTECTED] [EMAIL 
> > > PROTECTED]
> > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@";
>
> > > $local_business_ad =
> > >     '<adGroupId>' . $ad_group_id . '</adGroupId>' .
> > >     '<adType>LocalBusinessAd</adType>
> > >     <businessName>A Business Corp.</businessName>' .
> > >     '<businessImage>' .
> > >     '   <data>' . base64_encode($business_image) . '</data>
> > >         <type>image</type>' .
> > >     '</businessImage>'.
> > >     '<businessKey>' . $business_key . '</businessKey>
> > >     <countryCode>US</countryCode>' .
> > >     '<stockIcon>Standard_1</stockIcon>' .
> > >     '<description1>Choose from our delicious range now</
> > > description1>' .
> > >     '<description2>Pre-order or delivered to your door</
> > > description2>' .
> > >     '<destinationUrl>http://www.dominos.co.uk/</destinationUrl>' .
> > >     '<displayUrl>www.dominos.co.uk</displayUrl>';
>
> > > Am I doing something wrong? I guess it's some small mistake but I
> > > really would like to found out why does that happen. Thanks for your
> > > help so far!
>
> > > On Aug 25, 6:53 pm, AdWords API Advisor <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hello,
>
> > > >  I've used the following images:
>
> > > >  http://sites.google.com/site/awapistuff/Home/lba_icon.jpg
> > > >  http://sites.google.com/site/awapistuff/Home/lba_image.jpg
>
> > > > (Compliments re: my l33t skillz with GIMP's paintbrush tool can be
> > > > directed to /dev/null).
>
> > > >  Any luck with those? I'm not exactly sure what the difference in the
> > > > image files that leads to acceptance or rejection would be, but on my
> > > > to-do list is to simulate some failures and ping the engineering team
> > > > about them to figure out exactly why the AdWords API service is
> > > > rejecting them.
>
> > > > Cheers,
> > > > -Jeff Posnick, AdWords API Team
>
> > > > On Aug 25, 3:55 am, veseo <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I had no luck with the same code and just using a jpg picture. Could
> > > > > you please point me an image you have tested to work? Here are my
> > > > > variables, all the rest is the sample code:
>
> > > > >   $ad_group_id = '74734';
> > > > >   $business_image = file_get_contents('/home/vis/Pictures/asd.jpg');
> > > > >   $business_key = "pdvQA/[EMAIL PROTECTED]@A
> > > > > Business Corp.!d@(650) [EMAIL PROTECTED] Amphitheatre [EMAIL 
> > > > > PROTECTED]
> > > > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
> > > > > PROTECTED]@1219393672000!d@";
>
> > > > > Also, here's the image I'm 
> > > > > using:http://img81.imageshack.us/my.php?image=asdov5.jpg
--~--~---------~--~----~------------~-------~--~----~
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