Sha256: 60f6087b9c40ed6505937230251b0485bba016a2df265954cb9cd47c4414714c
Contents?: true
Size: 618 Bytes
Versions: 5
Compression:
Stored size: 618 Bytes
Contents
module FacebookAds # An ad image belongs to an ad account. # An image will always produce the same hash. # https://developers.facebook.com/docs/marketing-api/reference/ad-image class AdImage < Base FIELDS = %w(id hash account_id name permalink_url original_width original_height).freeze class << self def find(_id) raise Exception, 'NOT IMPLEMENTED' end end def hash self[:hash] end def update(_data) raise Exception, 'NOT IMPLEMENTED' end def destroy super(path: "/act_#{account_id}/adimages", query: { hash: hash }) end end end
Version data entries
5 entries across 5 versions & 1 rubygems