Hi group, i am using .net client library v201109. i try to execute the AddCampaignTargetingCriteria.cs example with sandbox settings but service returned Invalid_Criterion_Id error. Response and request details are below. i tried the example with different country,province criterion id but result was the same. Can somebody help me how to add location target criteria (Country,province etc) to the campaign using v201109 version of client library? What is wrong in the example?
Request ------- <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><!--POST /api/adwords/cm/ v201109/CampaignCriterionService User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.5448) VsDebuggerCausalityData: uIDPo6S0/HZ5qC5FlM/ l6mBUMBQAAAAApggbRcoVxUazd0KK8v2NvGZZ1nYsXM9Esc21ceVTjGoACQAA Content-Type: text/xml; charset=utf-8 SOAPAction: "" Host: adwords-sandbox.google.com Content-Length: 1421 TimeStamp: Wed, 02 Nov 2011 18:45:24 GMT --><soap:Header><RequestHeader xmlns="https://adwords.google.com/api/ adwords/cm/v201109"><authToken xmlns="https://adwords.google.com/api/ adwords/cm/v201109">******</authToken><developerToken xmlns="https:// adwords.google.com/api/adwords/cm/v201109">******</ developerToken><clientCustomerId xmlns="https://adwords.google.com/api/ adwords/cm/v201109">9502046938</clientCustomerId><userAgent xmlns="https://adwords.google.com/api/adwords/cm/v201109">AwApi- DotNet-13.0.0|VisilabsAdManager</userAgent></RequestHeader></ soap:Header><soap:Body><mutate xmlns="https://adwords.google.com/api/ adwords/cm/v201109"><operations><operator>ADD</ operator><operand><campaignId>433463</campaignId><criterion xsi:type="Location"><id>2840</id></criterion></operand></ operations><operations><operator>ADD</ operator><operand><campaignId>433463</campaignId><criterion xsi:type="Location"><id>2392</id></criterion></operand></operations></ mutate></soap:Body></soap:Envelope> Response -------- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/ envelope/"><!--X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Transfer-Encoding: chunked Cache-Control: private, max-age=0 Content-Type: text/xml; charset=UTF-8 Date: Wed, 02 Nov 2011 16:45:27 GMT Expires: Wed, 02 Nov 2011 16:45:27 GMT Server: GSE TimeStamp: Wed, 02 Nov 2011 18:45:24 GMT --><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/ adwords/cm/v201109"><requestId>0004b0c332fa8db80a0ce9120000732c</ requestId><serviceName>CampaignCriterionService</ serviceName><methodName>mutate</methodName><operations>2</ operations><responseTime>197</responseTime><units>2</units></ ResponseHeader></ soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</ faultcode><faultstring>[CriterionError.INVALID_CRITERION_ID @ operations[0].operand.criterion; trigger:'2840', CriterionError.INVALID_CRITERION_ID @ operations[1].operand.criterion; trigger:'2392']</faultstring><detail><ApiExceptionFault xmlns="https:// adwords.google.com/api/adwords/cm/ v201109"><message>[CriterionError.INVALID_CRITERION_ID @ operations[0].operand.criterion; trigger:'2840', CriterionError.INVALID_CRITERION_ID @ operations[1].operand.criterion; trigger:'2392']</message><ApplicationException.Type>ApiException</ ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/ XMLSchema-instance" xsi:type="CriterionError"><fieldPath>operations[0].operand.criterion</ fieldPath><trigger>2840</ trigger><errorString>CriterionError.INVALID_CRITERION_ID</ errorString><ApiError.Type>CriterionError</ ApiError.Type><reason>INVALID_CRITERION_ID</reason></errors><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CriterionError"><fieldPath>operations[1].operand.criterion</ fieldPath><trigger>2392</ trigger><errorString>CriterionError.INVALID_CRITERION_ID</ errorString><ApiError.Type>CriterionError</ ApiError.Type><reason>INVALID_CRITERION_ID</reason></errors></ ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope> -----------------END API CALL----------------------- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en