Create lineitem customTargeting issue

41 views
Skip to first unread message

Mehul Panchal

unread,
May 3, 2024, 5:30:01 AMMay 3
to Google Ad Manager API Forum
Hi, 

i am unable to create lineitem with below payload. Please help me its critical issue so ..

{"orderId":"#########","name":"test_0.80$_lineitem","startDateTimeType":"IMMEDIATELY","unlimitedEndDateTime":true,"creativeRotationType":"EVEN","lineItemType":"PRICE_PRIORITY","costPerUnit":{"currencyCode":"INR","microAmount":800000},"costType":"CPM","creativePlaceholders":[{"size":{"width":"320","height":"50","isAspectRatio":false}},{"size":{"width":"300","height":"250","isAspectRatio":false}},{"size":{"width":"728","height":"90","isAspectRatio":false}}],"primaryGoal":{"goalType":"DAILY","unitType":"IMPRESSIONS","units":1000000},"targeting":{"inventoryTargeting":{"targetedAdUnits":[{"adUnitId":"23132117067"}]},"customTargeting":{"logicalOperator":"OR","children":{"logicalOperator":"AND","children":[{"logicalOperator":"AND","children":[{"keyId":"#####","operator":"IS","valueIds":["#########"]}]}]}}}}

EORROR: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element children. </faultstring></soap:Fault></soap:Body></soap:Envelope> 
Message has been deleted

Mehul Panchal

unread,
May 6, 2024, 1:07:04 AMMay 6
to Google Ad Manager API Forum
Hi 

Anybody can reply

Ad Manager API Forum Advisor

unread,
May 6, 2024, 4:29:30 AMMay 6
to mehul....@jambojar-tech.com, google-doubleclick...@googlegroups.com
Hi,

Thank you for contacting the Ad Manager API support team.
   
I have reviewed your query and understand that while trying to create LineIteams , you encounter an error  i.e, Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element children . Please ensure that you are using the same structure of customTrageting . If the issue still persists even after implementing below code snippet into the  logs  for customTrageting, please provide us with the following details to investigate the issue further.
  I would like to inform you that the Ad Manager API uses document/literal wrapped style SOAP, not JSON format where it does not support REST calls.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Code snippet
<customTargeting>
<logicalOperator>OR</logicalOperator>
 <ns0:children xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns0:CustomCriteria">
<logicalOperator>AND</logicalOperator>
<children xsi:type="CustomCriteria">
<keyId>ID</keyId>
<valueIds>ID</valueIds>
<operator>IS</operator>
</children>
<children xsi:type="CustomCriteria">
<keyId></keyId>
<valueIds></valueIds>
<operator>IS</operator>
</children>
<children xsi:type="CustomCriteria">
<keyId></keyId>
<valueIds></valueIds>
<operator>IS</operator>
</children>
</children>
</customTargeting


 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIs4L:ref" (ADR-00233562)

Thanks,
 
Google Logo Ad Manager API Team


Ad Manager API Forum Advisor

unread,
May 6, 2024, 4:34:55 AMMay 6
to mehul....@jambojar-tech.com, google-doubleclick...@googlegroups.com
Hi,

Thank you for contacting the Ad Manager API support team.

I notice that you've already raised this concern in another thread titled 'Create lineitem customTargeting issue'. We've already provided a response there regarding this issue. To streamline communication and avoid redundancy, please refer back to that thread for any updates or further discussions on this topic. ​ ​ ​ ​


 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIstn:ref" (ADR-00233721)


Thanks,
 
Google Logo Ad Manager API Team


Reply all
Reply to author
Forward
0 new messages