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

On Friday, March 27, 2015 at 12:09:13 PM UTC-4, Anh Huynh wrote:
>
> 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:Envelope xmlns:tns="
> https://adwords.google.com/api/adwords/o/v201502"; xmlns:ns0="
> https://adwords.google.com/api/adwords/o/v201502"; xmlns:ns1="
> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns2="
> https://adwords.google.com/api/adwords/cm/v201502"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/";>
>    <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
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/30df4050-6cdf-4ff5-8aae-46de16c10e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to