Traffic Estimator Service INVALID_ID error

55 views
Skip to first unread message

Anh Huynh

unread,
Mar 27, 2015, 12:09:13 PM3/27/15
to adwor...@googlegroups.com
Hello,

I'm having problem using Traffic Estimator Service for existing campaigns. This is the request I sent:

<?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Header>
      <tns:RequestHeader>
         <tns:clientCustomerId xmlns:tns="https://adwords.google.com/api/adwords/cm/v201502">___</tns:clientCustomerId>
         <tns:developerToken xmlns:tns="https://adwords.google.com/api/adwords/cm/v201502">___</tns:developerToken>
         <tns:userAgent xmlns:tns="https://adwords.google.com/api/adwords/cm/v201502">ADH_OAuth2_Client/1.0 (AwApi-Python, googleads/3.2.0, Python/2.7)</tns:userAgent>
         <tns:validateOnly xmlns:tns="https://adwords.google.com/api/adwords/cm/v201502">false</tns:validateOnly>
         <tns:partialFailure xmlns:tns="https://adwords.google.com/api/adwords/cm/v201502">false</tns:partialFailure>
      </tns:RequestHeader>
   </SOAP-ENV:Header>
   <ns1:Body>
      <ns0:get>
         <ns0:selector>
            <ns0:campaignEstimateRequests>
               <ns0:EstimateRequest.Type>CampaignEstimateRequest</ns0:EstimateRequest.Type>
               <ns0:campaignId>115604380</ns0:campaignId>
               <ns0:adGroupEstimateRequests>
                  <ns0:EstimateRequest.Type>AdGroupEstimateRequest</ns0:EstimateRequest.Type>
                  <ns0:adGroupId>5455234780</ns0:adGroupId>
                  <ns0:keywordEstimateRequests>
                     <ns0:EstimateRequest.Type>KeywordEstimateRequest</ns0:EstimateRequest.Type>
                     <ns0:keyword>
                        <ns2:id>12166361</ns2:id>
                        <ns2:Criterion.Type>Keyword</ns2:Criterion.Type>
                        <ns2:text>cheap auto insurance</ns2:text>
                        <ns2:matchType>EXACT</ns2:matchType>
                     </ns0:keyword>
                     <ns0:maxCpc>
                        <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                        <ns2:microAmount>10000</ns2:microAmount>
                     </ns0:maxCpc>
                  </ns0:keywordEstimateRequests>
               </ns0:adGroupEstimateRequests>
            </ns0:campaignEstimateRequests>
         </ns0:selector>
      </ns0:get>
   </ns1:Body>
</SOAP-ENV:Envelope>

And I'm getting the following error:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201502" xmlns="https://adwords.google.com/api/adwords/o/v201502"><ns2:requestId>0005121edc008e010ac41727da004648</ns2:requestId><ns2:serviceName>AdGroupService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>648</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[EntityNotFound.INVALID_ID @ ]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/o/v201502" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201502"><ns2:message>[EntityNotFound.INVALID_ID @ ]</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:EntityNotFound"><ns2:fieldPath></ns2:fieldPath><ns2:trigger></ns2:trigger><ns2:errorString>EntityNotFound.INVALID_ID</ns2:errorString><ns2:ApiError.Type>EntityNotFound</ns2:ApiError.Type><ns2:reason>INVALID_ID</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>

The message doesn't say which Id was the problem. Any help is greatly appreciated.

Kind regards,

Anh

Josh Radcliff (AdWords API Team)

unread,
Mar 27, 2015, 5:01:35 PM3/27/15
to adwor...@googlegroups.com
Hi Anh,

If the IDs in the request look correct, please make sure that the clientCustomerId you are passing in the SOAP header is for the correct account. It must be set to the AdWords account that contains the campaign/adgroup/keyword in your request. You cannot set it to an MCC account linked to that account, for example.

Thanks,
Josh, AdWords API Team

Anh Huynh

unread,
Mar 30, 2015, 11:59:26 AM3/30/15
to adwor...@googlegroups.com
Hi Josh,

It is as you said. When I look up and use the correct clientCustomerId instead of the default one in the yaml file, it works! Thanks a lot for your help.

Anh
Reply all
Reply to author
Forward
0 new messages