Hi Ben,

The CampaignTargetOperation only supports the SET operator.  This
means that if you want to remove a target you must get the current
targets, remove the desired one from the list, and then set the
targets again with the modified list.  The documentation isn't very
clear around this, and I will look into getting it updated.

Best,
- Eric Koleda, AdWords API Team

On Aug 23, 11:51 am, "[email protected]" <[email protected]> wrote:
> Greetings!
>
> Before we push Target changes, we delete all of the existing targets
> on the engine  (after we send all targets back up).  With the new 2009
> API, I am getting errors when I try to  remove them.
>
> Here is the  request/response:
> soap:Body>
>     <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906";>
>       <operations>
>         <operator>REMOVE</operator>
>         <operand xsi:type="DemographicTargetList">
>           <campaignId>XXXXXXXXXX</campaignId>
>         </operand>
>       </operations>
>     </mutate>
>   </soap:Body>
> </soap:Envelope>
>
> <soap:Fault>
>       <faultcode>soap:Server</faultcode>
>       <faultstring>[OperatorError.OPERATOR_NOT_SUPPORTED @ operations
> [0]]</faultstring>
>       <detail>
>         <ApiExceptionFault xmlns="https://adwords.google.com/api/
> adwords/cm/v200906">
>           <message>[OperatorError.OPERATOR_NOT_SUPPORTED @ operations
> [0]]</message>
>           <ApplicationException.Type>ApiException</
> ApplicationException.Type>
>           <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" xsi:type="OperatorError">
>             <fieldPath>operations[0]</fieldPath>
>             <trigger>
>             </trigger>
>             <ApiError.Type>OperatorError</ApiError.Type>
>             <reason>OPERATOR_NOT_SUPPORTED</reason>
>           </errors>
>         </ApiExceptionFault>
>       </detail>
>     </soap:Fault>
>
> What am I missing?
> thanks,
> Ben.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to