ForecastingError.NOT_ENOUGH_INVENTORY when updating LineItem

1,019 views
Skip to first unread message

ke...@weatheralpha.com

unread,
Nov 2, 2016, 11:33:44 PM11/2/16
to Google's DoubleClick for Publishers API Forum
While utilizing the DFP API to update the geotargets on one of my line items, I am encountering the exception: ForecastingError.NOT_ENOUGH_INVENTORY

I've seen other similar posts with this issue and the common resolution has been to make sure that lineItem.allowOverbook and lineItem.skipInventoryCheck. Both of these properties have already been set to true.  
Network ID: 51024290
Line Item ID: 108223090

Any ideas of what else must be done to avoid the exception?  Any help would be greatly appreciated.  Thank you in advance. 

Exception full response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://www.google.com/apis/ads/publisher/v201608"><ns2:requestId>f69d7493a43eee6d462579f334a6bf7d</ns2:requestId><ns2:responseTime>3489</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[ForecastingError.NOT_ENOUGH_INVENTORY @ lineItem[0].id; trigger:\'108223090\']</faultstring><detail><ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v201608"><message>[ForecastingError.NOT_ENOUGH_INVENTORY @ lineItem[0].id; trigger:\'108223090\']</message><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ForecastError"><fieldPath>lineItem[0].id</fieldPath><trigger>108223090</trigger><errorString>ForecastingError.NOT_ENOUGH_INVENTORY</errorString><reason>NOT_ENOUGH_INVENTORY</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>' },
  body: '<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://www.google.com/apis/ads/publisher/v201608"><ns2:requestId>f69d7493a43eee6d462579f334a6bf7d</ns2:requestId><ns2:responseTime>3489</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[ForecastingError.NOT_ENOUGH_INVENTORY @ lineItem[0].id; trigger:\'108223090\']</faultstring><detail><ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v201608"><message>[ForecastingError.NOT_ENOUGH_INVENTORY @ lineItem[0].id; trigger:\'108223090\']</message><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ForecastError"><fieldPath>lineItem[0].id</fieldPath><trigger>108223090</trigger><errorString>ForecastingError.NOT_ENOUGH_INVENTORY</errorString><reason>NOT_ENOUGH_INVENTORY</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Thank you
Keath 

Vincent Racaza (DFP API Team)

unread,
Nov 3, 2016, 1:05:24 AM11/3/16
to Google's DoubleClick for Publishers API Forum
Hi Keath,

Thanks for providing the SOAP response logs.

You are correct, for this type of error, you just need to set the allowOverbook and skipInventoryCheck properties of the line item to true. Upon checking this line item (id = 108223090) in your network (51024290), the allowOverbook and skipInventoryCheck properties are set to false:

<allowOverbook>false</allowOverbook>
<skipInventoryCheck>false</skipInventoryCheck>

Could you also provide the SOAP request logs so I can check if these properties are set correctly? Also, could you provide the API user (email address) who is having this issue?

Thanks,
Vincent Racaza, DFP API Team

ke...@weatheralpha.com

unread,
Nov 3, 2016, 7:01:47 AM11/3/16
to Google's DoubleClick for Publishers API Forum
Hi Vincent

Thank you for the prompt response.  You advice helped greatly.  It turned out that because I was setting the allowOverbook and skipInventoryCheck as a separate call, when updating the targets, they were absent and must have defaulted back to false.  When I explicitly pass the 2 fields during the geotarget update, it worked perfectly.

Thank you so much
Keath
Reply all
Reply to author
Forward
0 new messages