Hi,
Thank you for contacting the Ad Manager API support team.
I have reviewed your query and understand that while creating an Order, you are getting the error i.e, ‘Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element’. In SOAP XML, the order of the fields matters. I recommend using the documentation to ensure the correct order followed while creating the order. Also, please refer to the provided logs, which follow the correct insertion order of fields or parameters. You may refer to this link for the all available client libraries for the Ad Manager API.
SOAP Request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="https://www.google.com/apis/ads/publisher/v202311"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<RequestHeader>
<networkCode></networkCode>
<applicationName></applicationName>
</RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<createOrders>
<orders>
<name>קמפיין קרדן קרית שלום תל אביב - 68423</name>
<startDateTime>
<date>
<year>2024</year>
<month>7</month>
<day>14</day>
</date>
<hour>0</hour>
<minute>1</minute>
<second>0</second>
<timeZoneId>Asia/Jerusalem</timeZoneId>
</startDateTime>
<endDateTime>
<date>
<year>2024</year>
<month>8</month>
<day>12</day>
</date>
<hour>23</hour>
<minute>59</minute>
<second>59</second>
<timeZoneId>Asia/Jerusalem</timeZoneId>
</endDateTime>
<unlimitedEndDateTime>true</unlimitedEndDateTime>
<status>DRAFT</status>
<externalOrderId>68423</externalOrderId>
<poNumber>68423</poNumber>
<currencyCode>ILS</currencyCode>
<advertiserId></advertiserId>
<traffickerId></traffickerId>
<salespersonId></salespersonId>
<totalBudget>
<currencyCode>ILS</currencyCode>
<microAmount>21000</microAmount>
</totalBudget>
<isProgrammatic>false</isProgrammatic>
<appliedTeamIds>370038363</appliedTeamIds>
<customFieldValues
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomFieldValue">
<customFieldId></customFieldId>
<value xsi:type="NumberValue">
<value>21000</value>
</value>
</customFieldValues>
<customFieldValues
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CustomFieldValue">
<customFieldId></customFieldId>
<value xsi:type="TextValue">
<value>vamsh</value>
</value>
</customFieldValues>
</orders>
</createOrders>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This message is in relation to case "ref:!00D1U01174p.!5004Q02vDaco:ref" (ADR-00248926)
Thanks,
Ad Manager API Team
Eyal Gershon CTO | |
Mobile: +972-54-528-3882 | Phone: +972-9-3741111 ext 2 | |
7 Giborei Israel st., Netanya, Israel | |
www.callbox.co.il | ![]() ![]() |