Couldn't find MIME boundary on createCreative

323 views
Skip to first unread message

Pedro Protec

unread,
Apr 4, 2017, 1:40:41 PM4/4/17
to Google's DoubleClick for Publishers API Forum
I'm trying to create a Creative sending a binary data via soap and I received the next message:
<<
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Tue, 04 Apr 2017 17:22:27 GMT
Expires: Tue, 04 Apr 2017 17:22:27 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="37,36,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Couldn't find MIME boundary: --==lwRlKdF0FBp31P94i6Fxwh4MP7Uv3PGM02YpOi1rPSsofc2GT88JIAWYuI9z==</faultstring></soap:Fault></soap:Body></soap:Envelope>
>>


The post I had sent is:
<<
POST /apis/ads/publisher/v201702/CreativeService HTTP/1.1
User-Agent: gSOAP/2.8
Content-Type: multipart/related; charset=utf-8; boundary="==lwRlKdF0FBp31P94i6Fxwh4MP7Uv3PGM02YpOi1rPSsofc2GT88JIAWYuI9z=="; type="application/xop+xml"; start="35K6XYCC"; start-info="text/xml"
Content-Length: 4661
Connection: close
Authorization: ---
SOAPAction: "createCreatives"

--==lwRlKdF0FBp31P94i6Fxwh4MP7Uv3PGM02YpOi1rPSsofc2GT88JIAWYuI9z==
Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: 35K6XYCC

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xop="http://www.w3.org/2003/12/xop/include" xmlns:ns1="https://www.google.com/apis/ads/publisher/v201702"><SOAP-ENV:Header><ns1:RequestHeader><ns1:networkCode>---</ns1:networkCode><ns1:applicationName>---</ns1:applicationName></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:createCreatives><ns1:creatives xsi:type="ns1:ImageCreative"><ns1:advertiserId>---</ns1:advertiserId><ns1:name>Test</ns1:name><ns1:size><ns1:width>239</ns1:width><ns1:height>48</ns1:height><ns1:isAspectRatio>true</ns1:isAspectRatio></ns1:size><ns1:destinationUrlType>UNKNOWN</ns1:destinationUrlType><ns1:overrideSize>false</ns1:overrideSize><ns1:primaryImageAsset><ns1:assetByteArray><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:id9"/></ns1:assetByteArray><ns1:fileName>Prueba_avanzada</ns1:fileName><ns1:size><ns1:width>239</ns1:width><ns1:height>48</ns1:height><ns1:isAspectRatio>true</ns1:isAspectRatio></ns1:size><ns1:imageDensity>ONE_TO_ONE</ns1:imageDensity></ns1:primaryImageAsset><ns1:lockedOrientation>FREE_ORIENTATION</ns1:lockedOrientation></ns1:creatives></ns1:createCreatives></SOAP-ENV:Body></SOAP-ENV:Envelope>

--==lwRlKdF0FBp31P94i6Fxwh4MP7Uv3PGM02YpOi1rPSsofc2GT88JIAWYuI9z==
Content-Type: image/png
Content-Transfer-Encoding: binary
Content-ID: <id9>

[BINARY DATA]
>>

I have been looking to resolve this, but now I have no more ideas. Coluld anyone help me?
Thanks in advance.
Pedro

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Apr 4, 2017, 3:06:07 PM4/4/17
to Google's DoubleClick for Publishers API Forum
Hi Pedro,

To clarify, if you're trying to create an image creative, we have sample codes in different languages and the Java version is here. Note also that you will have to set the isAspectRatio to false.

Let me know how this goes or if you have any further question on this.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team

Pedro Protec

unread,
Apr 5, 2017, 4:07:16 AM4/5/17
to Google's DoubleClick for Publishers API Forum
Hi,

My project is a C++ application so it is quite different from the examples.
However, I have read them and try to follow the process, but is doesn't work.
I have changed the value for isAspectRatio as you wrote.
This is the new answer, equal to the last one:

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Wed, 05 Apr 2017 08:03:39 GMT
Expires: Wed, 05 Apr 2017 08:03:39 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="37,36,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Couldn't find MIME boundary: --==vy1T0PWNyEDbDAZLng4qxQFOkLk7hIwM83N1j+cFAQhHk3qzOF3TZ568Cj93==</faultstring></soap:Fault></soap:Body></soap:Envelope>

Could you give me any idea?
Thanks in advance
Pedro

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Apr 5, 2017, 2:00:35 PM4/5/17
to Google's DoubleClick for Publishers API Forum
Hi Pedro,

Thanks for your reply.

So, you are getting a 500 internal server error according to the response, is this correct? Also, can you try to run the C# sample code from our client library without any changes and see if you get the same error or not?

If you are still running into this issue, please send your latest request/response SOAP logs so we can get to the bottom of this ASAP.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team

Pedro Protec

unread,
Apr 5, 2017, 3:34:30 PM4/5/17
to Google's DoubleClick for Publishers API Forum
Hi

I have already generated the log files. Because they contain private data, how can I send them?

Thanks
Pedro

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Apr 5, 2017, 4:02:01 PM4/5/17
to Google's DoubleClick for Publishers API Forum
Hey Pedro,

Use the 'Reply privately to author' option under the 'Post reply' button so that the information is shared only with me.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team
Reply all
Reply to author
Forward
0 new messages