Exception CommonError.NOT_APPLICABLE

140 views
Skip to first unread message

Mirosław Puczyński

unread,
Jun 29, 2021, 2:13:02 AM6/29/21
to Google Ad Manager API Forum
I'm using the Delivery Forecasts API for getting lineItemDeliveryForecasts.

In response I get this exception:

2021-06-25T07:49:10.199094+00:00] DFP_SOAP.WARNING: networkCode=129257696 service=ForecastService method=getDeliveryForecastByIds responseTime=322 requestId=4829d6ec4baee49504fdf42639ff64cc server=ads.google.com isFault=1 faultMessage=[CommonError.NOT_APPLICABLE @ ; trigger:'0']  
[2021-06-25T07:49:10.199157+00:00] DFP_SOAP.NOTICE: POST /apis/ads/publisher/v202105/ForecastService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/7.4.20
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 625
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://www.google.com/apis/ads/publisher/v202105"><SOAP-ENV:Header><ns1:RequestHeader><ns1:networkCode>xxx</ns1:networkCode><ns1:applicationName>apiprebid (DfpApi-PHP, googleads-php-lib/53.0.0, PHP/7.4.20)</ns1:applicationName></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:getDeliveryForecastByIds><ns1:lineItemIds>5706285813</ns1:lineItemIds><ns1:lineItemIds>5709190061</ns1:lineItemIds><ns1:forecastOptions/></ns1:getDeliveryForecastByIds></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Fri, 25 Jun 2021 07:49:10 GMT
Expires: Fri, 25 Jun 2021 07:49:10 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://www.google.com/apis/ads/publisher/v202105"><requestId>4829d6ec4baee49504fdf42639ff64cc</requestId><responseTime>322</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[CommonError.NOT_APPLICABLE @ ; trigger:'0']</faultstring><detail><ApiExceptionFault xmlns="https://www.google.com/apis/ads/publisher/v202105"><message>[CommonError.NOT_APPLICABLE @ ; trigger:'0']</message><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CommonError"><fieldPath></fieldPath><trigger>0</trigger><errorString>CommonError.NOT_APPLICABLE</errorString><reason>NOT_APPLICABLE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

Ad Manager API Forum Advisor

unread,
Jun 29, 2021, 3:26:57 AM6/29/21
to publi...@gmail.com, google-doubleclick...@googlegroups.com

Hi there,

 

Can you please provide your network code as well so I can better investigate the issue on my end? You can send this to me via Reply privately to author option.

 

Regards,

Google Logo
Kevin Gil Soriano
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2JX5y9:ref

Ad Manager API Forum Advisor

unread,
Jul 2, 2021, 4:38:53 AM7/2/21
to publi...@gmail.com, google-doubleclick...@googlegroups.com

Hi MP,

 

Thank you for providing your network code. It seem that you weren't able to receive my response to your private message. Please see my response below.

 

I believe you're encountering CommonError.NOT_APPLICABLE because you're trying to forecast on completed line items (end time has already passed).

 

Let me know if you have any additional questions.

Mirosław Puczyński

unread,
Jul 8, 2021, 5:17:09 AM7/8/21
to Google Ad Manager API Forum
Hi,

Your suggestion help to solve my problem. Thank you
Reply all
Reply to author
Forward
0 new messages