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.
Em quinta-feira, 6 de março de 2014 20h04min13s UTC-3, Ray Tsang (AdWords API Team) escreveu: > > 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, > > On Thursday, March 6, 2014 2:57:16 PM UTC-5, Rodrigo Ferreira wrote: >> >> I use my own PHP library based on SoapClient component and the specs. >> >> Em quarta-feira, 5 de março de 2014 19h19min38s UTC-3, Ray Tsang (AdWords >> API Team) escreveu: >>> >>> Rodrigo, >>> >>> Could I trouble you to confirm what client library are you using? >>> >>> Thanks, >>> >>> On Monday, March 3, 2014 5:55:43 PM UTC-5, Ray Tsang (AdWords API Team) >>> wrote: >>>> >>>> Rodrigo, >>>> >>>> Could I trouble you to send me the full request using the "Reply to >>>> Author" function? (with sensitive information stripped out). >>>> >>>> Thanks, >>>> >>>> Ray >>>> >>>> On Wednesday, February 26, 2014 5:12:12 PM UTC-5, Rodrigo Ferreira >>>> wrote: >>>>> >>>>> 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> >>>>> <ResponseHeader xmlns=" >>>>> https://adwords.google.com/api/adwords/cm/v201309"> >>>>> <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> >>>>> <ApiExceptionFault xmlns=" >>>>> https://adwords.google.com/api/adwords/cm/v201309"> >>>>> <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> >>>>> >>>>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/d/optout.
