EntityNotFound.INVALID_ID error when add block ip

32 views
Skip to first unread message

Hoang Van

unread,
May 29, 2018, 10:36:18 PM5/29/18
to AdWords API and Google Ads API Forum

Here is detail soap log.
[2018-05-27 19:56:40] AW_SOAP.WARNING: Disabling SSL verification is not recommended.  
[2018-05-27 19:56:44] AW_SOAP.WARNING: clientCustomerId=xxx-xxx-xxxx operations=1 service=CampaignCriterionService method=mutate responseTime=165 requestId=00056d632461e2d00a62dc494a0c2026 server=adwords.google.com isFault=1 faultMessage=[EntityNotFound.INVALID_ID @ operations[0].operand.campaignId; trigger:'CampaignId: 1023996613']  
[2018-05-27 19:56:44] AW_SOAP.NOTICE: POST /api/adwords/cm/v201710/CampaignCriterionService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.0.27-1+ubuntu14.04.1+deb.sury.org+1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 985
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201710" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>xxx-xxx-xxxx</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown (AwApi-PHP, googleads-php-lib/32.1.0, PHP/7.0.25-1+ubuntu14.04.1+deb.sury.org+1)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand xsi:type="ns1:NegativeCampaignCriterion"><ns1:campaignId>1023996613</ns1:campaignId><ns1:criterion xsi:type="ns1:IpBlock"><ns1:ipAddress>100.91.32.108</ns1:ipAddress></ns1:criterion></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Wed, 30 May 2018 02:31:03 GMT
Expires: Wed, 30 May 2018 02:31:03 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: hq=":443"; ma=2592000; quic=51303433; quic=51303432; quic=51303431; quic=51303339; quic=51303335,quic=":443"; ma=2592000; v="43,42,41,39,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201710"><requestId>00056d632461e2d00a62dc494a0c2026</requestId><serviceName>CampaignCriterionService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>165</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[EntityNotFound.INVALID_ID @ operations[0].operand.campaignId; trigger:'CampaignId: 1023996613']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201710"><message>[EntityNotFound.INVALID_ID @ operations[0].operand.campaignId; trigger:'CampaignId: 1023996613']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="EntityNotFound"><fieldPath>operations[0].operand.campaignId</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>campaignId</field></fieldPathElements><trigger>CampaignId: 1023996613</trigger><errorString>EntityNotFound.INVALID_ID</errorString><ApiError.Type>EntityNotFound</ApiError.Type><reason>INVALID_ID</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>


  

Dannison Yao (AdWords API Team)

unread,
May 30, 2018, 2:35:58 AM5/30/18
to AdWords API and Google Ads API Forum
Hi,

The EntityNotFound.INVALID_ID error indicates that the ID of the entity you are operating is not recognized by the account. Upon investigation, the campaign id you entered appears to be valid. Could you confirm if the campaign Id is associated with the client id you entered in your properties file? You could use the getCampaigns sample code available in your client library to see if your campaign id is returned in the list of available campaigns in your account. 

Let me know if you have further clarifications.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages