Remove image through API (Python)

100 views
Skip to first unread message

Olof Grund

unread,
Sep 14, 2018, 4:18:43 AM9/14/18
to AdWords API and Google Ads API Forum
Hi there,

I'm struggling with removing an image asset. Does anyone have a code example or could help me out with the syntax? 

I was able to upload it so I've the mediaId but I can't get my head around how to remove it with operators.

Thank you!

//Olof

Luis Xander Talag (AdWords API Team)

unread,
Sep 14, 2018, 5:46:03 AM9/14/18
to AdWords API and Google Ads API Forum
Hi Olof,

I'm afraid REMOVED operations for media is currently not supported via the AdWords API specifically in MediaService.

Thanks and regards,
Luis
AdWords API Team

Olof Grund

unread,
Sep 14, 2018, 6:07:32 AM9/14/18
to AdWords API and Google Ads API Forum
Hi Luis,

Thank you for your reply! 

Why does it say this under type Image (link below)?
Encapsulates an Image media. For SET,REMOVE operations in MediaService, use mediaId.


Kind regards,
Olof

Luis Xander Talag (AdWords API Team)

unread,
Sep 16, 2018, 11:02:20 PM9/16/18
to AdWords API and Google Ads API Forum
Hi Olof,

My apologies for the confusion in the documentation. Since MediaService does not have REMOVE operation, removing of media is currently not possible through the API.

Thanks and regards,
Luis
AdWords API Team

Reply all
Reply to author
Forward
0 new messages