Skip to content

Commit

Permalink
Merge branch 'adimage-delete' into all
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffis committed Mar 12, 2015
2 parents 419891f + 3aa70d6 commit c7ea742
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions facebookads/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,12 @@ def remote_create(
open_file.close()
return return_val

def remote_delete(self, **kwargs):
"""Deletes the remote image."""
params = dict(kwargs.pop('params', None) or {})
params['hash'] = self[self.Field.hash]
return super(AdImage, self).remote_delete(params=params, **kwargs)

def get_hash(self):
"""Returns the image hash to which AdCreative's can refer."""
return self[self.Field.hash]
Expand Down

0 comments on commit c7ea742

Please sign in to comment.