I am using php but had to replace the '£' with '£' -Peter
On Tuesday, 2 October 2012 17:18:17 UTC+1, Sandbox wrote: > > I am trying to update parameters embedded in my adverts using the > AdParamService mutate method with the SET operator as per the examples. I > can't get it to work despite several days effort :( > > I am sure that the AdGroupIds and KeywordIds I am using exist, but I get > an invalid ID error when I try and set the param values. This is for one > AdGroup that has 10 keywords in it as a simple test... > > Help please! What am I doing wrong? > > SOAP request details below: > > -----------------BEGIN API CALL--------------------- > > 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/v201206/AdParamService > User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 4.0.30319.269) > VsDebuggerCausalityData: > uIDPoyjbHEWGgulFi3nt4u9RRvQAAAAA6DeQvyzlgUGEi8scc877F2hEyJH+cKxBi99l0fxtHRIACQAA > Content-Type: text/xml; charset=utf-8 > SOAPAction: "" > Host: adwords.google.com > Content-Length: 3174 > Accept-Encoding: gzip > Connection: Keep-Alive > TimeStamp: Tue, 02 Oct 2012 17:08:41 GMT > --><soap:Header><RequestHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201206"><authToken xmlns=" > https://adwords.google.com/api/adwords/cm/v201206">******</authToken><developerToken > > xmlns="https://adwords.google.com/api/adwords/cm/v201206">******</developerToken><clientCustomerId > > xmlns="https://adwords.google.com/api/adwords/cm/v201206">******</clientCustomerId><userAgent > > xmlns="https://adwords.google.com/api/adwords/cm/v201206">****** > (AwApi-DotNet/14.7.0, Common-Dotnet/1.2.0, .NET CLR/4.0.30319.269, > gzip)</userAgent></RequestHeader></soap:Header><soap:Body><mutate xmlns=" > https://adwords.google.com/api/adwords/cm/v201206 > "><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292553177</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292552697</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292552937</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>2546953044</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>32465316981</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>4492810386</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292553057</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292552577</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292552817</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations><operations><operator>SET</operator><operand><adGroupId>4432048697</adGroupId><criterionId>39292553297</criterionId><insertionText>£20</insertionText><paramIndex>1</paramIndex></operand></operations></mutate></soap:Body></soap:Envelope> > > Response > -------- > > > <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><!--Content-Encoding: > > X-Content-Type-Options: nosniff > X-Frame-Options: SAMEORIGIN > X-XSS-Protection: 1; mode=block > Content-Length: 658 > Cache-Control: private, max-age=0 > Content-Type: text/xml; charset=UTF-8 > Date: Tue, 02 Oct 2012 16:08:41 GMT > Expires: Tue, 02 Oct 2012 16:08:41 GMT > Server: GSE > TimeStamp: Tue, 02 Oct 2012 17:08:41 GMT > --><soap:Header><ResponseHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201206"><requestId>0004cb15bc549c400a96f31500003e73</requestId><serviceName>AdParamService</serviceName><methodName>mutate</methodName><operations>10</operations><responseTime>54</responseTime><units>1</units></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED > > @ operations[0].operand; trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[1].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[2].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[3].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[4].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[5].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[6].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[7].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[8].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[9].operand; > trigger:'AdGroupId = 4432048697']</faultstring><detail><ApiExceptionFault > xmlns="https://adwords.google.com/api/adwords/cm/v201206"><message>[AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED > > @ operations[0].operand; trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[1].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[2].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[3].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[4].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[5].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[6].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[7].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[8].operand; > trigger:'AdGroupId = 4432048697', > AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED @ operations[9].operand; > trigger:'AdGroupId = > 4432048697']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[0].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[1].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[2].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[3].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[4].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[5].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[6].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[7].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[8].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</reason></errors><errors > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:type="AdParamError"><fieldPath>operations[9].operand</fieldPath><trigger>AdGroupId > > = > 4432048697</trigger><errorString>AdParamError.INVALID_ADGROUP_CRITERION_SPECIFIED</errorString><ApiError.Type>AdParamError</ApiError.Type><reason>INVALID_ADGROUP_CRITERION_SPECIFIED</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 [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
