operations[0].operand.id RequiredError

581 views
Skip to first unread message

Mauro

unread,
Aug 19, 2009, 11:33:08 AM8/19/09
to AdWords API Forum
Hi there,

Finally passed by the internal error (really don't know if it my fault
or yours :P), I'm now getting what follows:

Following the example XML in
http://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/src/v200906/add_campaign_target.xml
it looks pretty much the same.

Faultstring: [RequiredError.REQUIRED @ operations[0].operand.id,
RequiredError.REQUIRED @ operations[1].operand.id,
RequiredError.REQUIRED @ operations[2].operand.id]

Request (auth stuff hidden):

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1318="http://
tempuri.org">
<SOAP-ENV:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
v200906">
<authToken>[[[authToken]]]</authToken>
<userAgent>Mauro</userAgent>
<developerToken>jo...@doe.com++USD</developerToken>
<applicationToken/>
<clientEmail>client...@doe.com</clientEmail>
</RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906">
<operations>
<operator>SET</operator>
<operand xsi:type="GeoTargetList">
<campaignId>82343</campaignId>
<targets xsi:type="CountryTarget">
<countryCode>US</countryCode>
<excluded>false</excluded>
</targets>
</operand>
</operations>
<operations>
<operator>SET</operator>
<operand xsi:type="LanguageTargetList">
<campaignId>82343</campaignId>
<targets>
<languageCode>en</languageCode>
</targets>
</operand>
</operations>
<operations>
<operator>SET</operator>
<operand xsi:type="NetworkTargetList">
<campaignId>82343</campaignId>
<targets>
<networkCoverageType>GOOGLE_SEARCH</networkCoverageType>
</targets>
</operand>
</operations>
</mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

AdWords API Advisor

unread,
Aug 20, 2009, 11:49:41 AM8/20/09
to AdWords API Forum
Hi Mauro,

The example you referenced was for the CampaignTargetService, but from
looking in the logs it seems that you were making requests against the
CampaignService. Change the endpoint URL in your code to
https://adwords-sandbox.google.com/api/adwords/cm/v200906/CampaignTargetService
to make requests against the correct service.

Best,
- Eric Koleda, AdWords API Team

On Aug 19, 11:33 am, Mauro <mau...@gmail.com> wrote:
> Hi there,
>
> Finally passed by the internal error (really don't know if it my fault
> or yours :P), I'm now getting what follows:
>
> Following the example XML inhttp://code.google.com/p/adwords-api-xml-samples/source/browse/trunk/...
> it looks pretty much the same.
>
> Faultstring: [RequiredError.REQUIRED @ operations[0].operand.id,
> RequiredError.REQUIRED @ operations[1].operand.id,
> RequiredError.REQUIRED @ operations[2].operand.id]
>
> Request (auth stuff hidden):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
> ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1318="http://
> tempuri.org">
>         <SOAP-ENV:Header>
>                 <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/
> v200906">
>                         <authToken>[[[authToken]]]</authToken>
>                         <userAgent>Mauro</userAgent>
>                         <developerToken>j...@doe.com++USD</developerToken>
>                         <applicationToken/>
>                         <clientEmail>client_1+j...@doe.com</clientEmail>
Reply all
Reply to author
Forward
0 new messages