In v201705, I'm trying to use the CampaignCriterionService to bid modify a
LocationGroups object, but I'm getting an INVALID_OPERAND_TYPE error.
I can bid modify Location and Proximity objects no problem, just not
LocationGroups.
Here is the log for the failed attempt to bid modify a LocationGroups:
[2017-06-27 17:04:09] local.WARNING: clientCustomerId=************
operations=1 service=CampaignCriterionService method=mutate
responseTime=220 requestId=000552f9ec5620780a37dd1d7405b002
server=adwords.google.com isFault=1
faultMessage=[FunctionError.INVALID_OPERAND_TYPE @
operations[0].operand.criterion.matchingFunction.lhsOperand;
trigger:'[IncomeOperand{tier=TIER_6_TO_10}]']
[2017-06-27 17:04:09] local.NOTICE: POST
/api/adwords/cm/v201705/CampaignCriterionService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.0.18-0ubuntu0.16.04.1
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 957
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/v201705"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>
************</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown
(AwApi-PHP, googleads-php-lib/27.1.0,
PHP/7.0.18-0ubuntu0.16.04.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>SET</ns1:operator><ns1:operand><ns1:campaignId>856494422</ns1:campaignId><ns1:criterion
xsi:type="ns1:LocationGroups"><ns1:id>75227837396</ns1:id></ns1:criterion><ns1:bidModifier>2.69</ns1:bidModifier></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, 28 Jun 2017 00:04:09 GMT
Expires: Wed, 28 Jun 2017 00:04:09 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: quic=":443"; ma=2592000; v="38,37,36,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/v201705"><requestId>000552f9ec5620780a37dd1d7405b002</requestId><serviceName>CampaignCriterionService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>220</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[FunctionError.INVALID_OPERAND_TYPE
@ operations[0].operand.criterion.matchingFunction.lhsOperand;
trigger:'[IncomeOperand{tier=TIER_6_TO_10}]']</faultstring><detail><ApiExceptionFault
xmlns="https://adwords.google.com/api/adwords/cm/v201705"><message>[FunctionError.INVALID_OPERAND_TYPE
@ operations[0].operand.criterion.matchingFunction.lhsOperand;
trigger:'[IncomeOperand{tier=TIER_6_TO_10}]']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="FunctionError"><fieldPath>operations[0].operand.criterion.matchingFunction.lhsOperand</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>criterion</field></fieldPathElements><fieldPathElements><field>matchingFunction</field></fieldPathElements><fieldPathElements><field>lhsOperand</field></fieldPathElements><trigger>[IncomeOperand{tier=TIER_6_TO_10}]</trigger><errorString>FunctionError.INVALID_OPERAND_TYPE</errorString><ApiError.Type>FunctionError</ApiError.Type><reason>INVALID_OPERAND_TYPE</reason></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/8ac13b89-0cb6-4992-be26-681ddde0bd2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.