Hi, Most objects in an AdWords are not fully removed from the account, but rather continue to exist with a status of deleted. You can "un- delete" these objects by changing the status from DELETED to ENABLED using the SET operator.
The only exception to this rule are criteria, such as Keywords and Placements, which are completely removed. To "un-delete" these, simply add them back to the AdGroup or Campaign using the ADD operator. Best, - Eric Koleda, AdWords API Team On Oct 19, 3:47 pm, "[email protected]" <[email protected]> wrote: > Hello, > I am trying to re-add an AdGroup after deletion in the sandbox and I > everytime I try I get an error that says: > AdGroupServiceError.DUPLICATE_ADGROUP_NAME > Is there no way to remove and put back AdGroups? > Is this the same for Ads and keywords as well? > Thanks > I am using the java API, but here are my soap requests: > > REQUEST: > <soapenv:Body> > <mutate xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > <operations> > <operator>ADD</operator> > <operand> > <campaignId>75660</campaignId> > <name>cell phones - EXACT</name> > <status>ENABLED</status> > <bids xsi:type="ns2:ManualCPCAdGroupBids" xmlns:ns2="https:// > adwords.google.com/api/adwords/cm/v200906"> > <keywordMaxCpc> > <amount> > <microAmount>2000000</microAmount> > </amount> > </keywordMaxCpc> > </bids> > </operand> > </operations> > </mutate> > </soapenv:Body> > > RESPONSE: > <soap:Body> > <soap:Fault> > <faultcode>soap:Server > </faultcode> > <faultstring>[AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations > [0].operand.name]</faultstring> > <detail> > <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/ > v200906"> > <me > ssage>[AdGroupServiceError.DUPLICATE_ADGROUP_NAME @ operations > [0].operand.name]</message> > <ApplicationException.Type>ApiException</ApplicationException.Type> > <errors xsi:type="AdGroupServiceError" xmlns > :xsi="http://www.w3.org/2001/XMLSchema-instance"> > <fieldPath>operations[0].operand.name</fieldPath> > <trigger/> > <ApiError.Type>AdGroupServiceError</ApiError.Type> > <reason>DUPLICATE_ADGROUP_NAME</reason> > </e > rrors> > </ApiExceptionFault> > </detail> > </soap:Fault> > </soap:Body> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
