Re: externalorderid error - would not accept any value

7 views
Skip to first unread message

Eyal Gershon

unread,
2:13 AM (2 hours ago) 2:13 AM
to Ad Manager API Forum Advisor, google-doubleclick...@googlegroups.com
Thank you for your response however,
I did go through the documentation thoroughly before posting here and there is no issue with the order of the fields as this is exactly as documented.
image.png
When I remove the externalOrderId it works just fine.

Client libraries do not help me because I have developed an app for Google Ad Manager on an IPAAS platform.

Can you please take a second look at my xml and let me know if you can see anything wrong ?


On Mon, Jul 15, 2024 at 2:30 PM Ad Manager API Forum Advisor <admana...@forumsupport.google> wrote:

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,
 
Google Logo 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.ilfacebook icon  linkedin icon  


Reply all
Reply to author
Forward
0 new messages