Exception without ognl message on mutate

11 views
Skip to first unread message
Message has been deleted
Message has been deleted

bluesman

unread,
Nov 20, 2009, 5:08:25 PM11/20/09
to AdWords API Forum
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
adwords/cm/v200909"><ns1:applicationToken>*****</
ns1:applicationToken><ns1:authToken xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v200909">******</
ns1:authToken><ns1:clientEmail>*******</
ns1:clientEmail><ns1:developerToken>******</
ns1:developerToken><ns1:userAgent>Java AdWords Report Service</
ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly></
ns1:RequestHeader></soapenv:Header><soapenv:Body><mutate
xmlns="https://adwords.google.com/api/adwords/cm/
v200909"><operations><operator>ADD</operator><operand
xsi:type="ns2:BiddableAdGroupCriterion" xmlns:ns2="https://
adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
adGroupId><criterion xsi:type="ns2:Keyword"><id>0</id><text>test
keyword 1</text><matchType>PHRASE</matchType></
criterion><userStatus>PAUSED</userStatus><destinationUrl>http://
cpcd.com/32/?100&amp;OVMTC={ifsearch:Phrase}{ifcontent:content}
&amp;site={placement}&amp;creative={creative}&amp;OVKEY={keyword}</
destinationUrl><bids
xsi:type="ns2:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>0</
microAmount></amount></maxCpc></bids></operand></
operations><operations><operator>ADD</operator><operand
xsi:type="ns3:BiddableAdGroupCriterion" xmlns:ns3="https://
adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
adGroupId><criterion xsi:type="ns3:Keyword"><id>0</id><text>test
keyword 2</text><matchType>EXACT</matchType></
criterion><userStatus>PAUSED</userStatus><destinationUrl>http://
cpcd.com/32/?110&amp;OVMTC={ifsearch:Exact}{ifcontent:content}
&amp;site={placement}&amp;creative={creative}&amp;OVKEY={keyword}</
destinationUrl><bids
xsi:type="ns3:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>210000</
microAmount></amount></maxCpc></bids></operand></
operations><operations><operator>ADD</operator><operand
xsi:type="ns4:BiddableAdGroupCriterion" xmlns:ns4="https://
adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
adGroupId><criterion xsi:type="ns4:Keyword"><id>0</id><text>test
keyword 3</text><matchType>BROAD</matchType></
criterion><userStatus>PAUSED</userStatus><destinationUrl>http://
cpcd.com/32/?120&amp;OVMTC={ifsearch:Broad}{ifcontent:content}
&amp;site={placement}&amp;creative={creative}&amp;OVKEY={keyword}</
destinationUrl><bids
xsi:type="ns4:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>0</
microAmount></amount></maxCpc></bids></operand></
operations><operations><operator>ADD</operator><operand
xsi:type="ns5:BiddableAdGroupCriterion" xmlns:ns5="https://
adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
adGroupId><criterion xsi:type="ns5:Keyword"><id>0</id><text/
><matchType>BROAD</matchType></criterion><userStatus>PAUSED</
userStatus><destinationUrl>http://cpcd.com/32/?130&amp;OVMTC=
{ifsearch:Broad}{ifcontent:content}&amp;site={placement}&amp;creative=
{creative}&amp;OVKEY={keyword}</destinationUrl><bids
xsi:type="ns5:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>0</
microAmount></amount></maxCpc></bids></operand></operations></
mutate></
soapenv:Body></soapenv:Envelope>
[20 Nov 2009 10:32:25,698 - DEBUG]
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
faultcode><faultstring>java.lang.reflect.InvocationTargetException
while invoking public abstract
com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.AdGroupCriterionReturnValue
com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.AdGroupCriterionService.mutate
(java.util.List) throws
com.google.ads.api.services.common.error.ApiException with params
[[com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909.jaxbgen.AdGroupCriterionOperation@14268df,
com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909.jaxbgen.AdGroupCriterionOperation@f31da2,
com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909.jaxbgen.AdGroupCriterionOperation@11e9b12,
com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909.jaxbgen.AdGroupCriterionOperation@56bc57]].</
faultstring></soap:Fault></soap:Body></soap:Envelope>

AdWords API Advisor

unread,
Nov 23, 2009, 2:40:11 PM11/23/09
to AdWords API Forum
Hi,

The cause of the problem appears to be that you are setting the "id"
field of the keyword criterion to "0". You shouldn't set the ID field
when adding a criterion, as it will be returned in the result.

Best,
- Eric Koleda, AdWords API Team

On Nov 20, 5:08 pm, bluesman <anoop.kulka...@gmail.com> wrote:
> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><ns1:RequestHeader
> xsi:type="ns3:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>2 10000</
> microAmount></amount></maxCpc></bids></operand></
> operations><operations><operator>ADD</operator><operand
> xsi:type="ns4:BiddableAdGroupCriterion" xmlns:ns4="https://
> adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
> adGroupId><criterion xsi:type="ns4:Keyword"><id>0</id><text>test
> keyword 3</text><matchType>BROAD</matchType></
> criterion><userStatus>PAUSED</userStatus><destinationUrl>http://
> cpcd.com/32/?120&amp;OVMTC={ifsearch:Broad}{ifcontent:content}
> &amp;site={placement}&amp;creative={creative}&amp;OVKEY={keyword}</
> destinationUrl><bids
> xsi:type="ns4:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>0 </
> microAmount></amount></maxCpc></bids></operand></
> operations><operations><operator>ADD</operator><operand
> xsi:type="ns5:BiddableAdGroupCriterion" xmlns:ns5="https://
> adwords.google.com/api/adwords/cm/v200909"><adGroupId>5000032557</
> adGroupId><criterion xsi:type="ns5:Keyword"><id>0</id><text/><matchType>BROAD</matchType></criterion><userStatus>PAUSED</
>
> userStatus><destinationUrl>http://cpcd.com/32/?130&OVMTC=
> {ifsearch:Broad}{ifcontent:content}&amp;site={placement}&amp;creative=
> {creative}&amp;OVKEY={keyword}</destinationUrl><bids
> xsi:type="ns5:ManualCPCAdGroupCriterionBids"><maxCpc><amount><microAmount>0 </
> microAmount></amount></maxCpc></bids></operand></operations></
> mutate></
> soapenv:Body></soapenv:Envelope>
> [20 Nov 2009 10:32:25,698 - DEBUG]
> <?xml version="1.0" encoding="UTF-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>java.lang.reflect.InvocationTargetException
> while invoking public abstract
> com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.AdGroup CriterionReturnValue
> com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.AdGroup CriterionService.mutate
> (java.util.List) throws
> com.google.ads.api.services.common.error.ApiException with params
> [[com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v2009 09.jaxbgen.AdGroupCriterionOperation@14268df,
> com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909 .jaxbgen.AdGroupCriterionOperation@f31da2,
> com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909 .jaxbgen.AdGroupCriterionOperation@11e9b12,
> com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200909 .jaxbgen.AdGroupCriterionOperation@56bc57]].</

bluesman

unread,
Nov 24, 2009, 4:05:38 PM11/24/09
to AdWords API Forum
Hi Eric,

Thanks for your response, that seems to have done the trick.

On Nov 23, 1:40 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
Reply all
Reply to author
Forward
0 new messages