Hi Sreeram,
You can set the DraftStatus
<https://developers.google.com/adwords/api/docs/reference/v201809/DraftService.Draft#draftstatus>
to
ARCHIVED instead, by using the DraftService.mutate()
<https://developers.google.com/adwords/api/docs/reference/v201809/DraftService#mutate>
method
and the SET operator. Setting the status to ARCHIVED will automatically
mark the draft campaign as REMOVED as stated in this guide
<https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments#promotion_graduation_and_archiving>.
Let me know if this helps.
Thanks and regards,
Peter
Google Ads API Team
On 05/13/19 22:00:38 [email protected] wrote:
Hello,
I am getting an OPERATOR_NOT_SUPPORTED error when trying to delete a draft
from API (see the screenshot).
*draft = draft_service.get(selector)['entries']*
*draft_operation = {'operator': 'REMOVE', 'operand': draft}*
*draft_delete = draft_service.mutate(draft_operation)['value'][0]*
I was able to verify the contents of the draft and draft_operation. It
looks fine.
Could somebody please guide me through this.
Thanks,
Sreeram
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/d1fec4e4-acd5-49a9-b52f-07907d82e81a%40googlegroups.com
<https://groups.google.com/d/msgid/adwords-api/d1fec4e4-acd5-49a9-b52f-07907d82e81a%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/18i2c10000000000grghvk000gagr2y6omj4dpj6so30c1g68r3ccpn%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.