Sha256: 14a7b3ce99a3eb9cbdd5d35173beee50a3c0048451a4e060a97874748058f362
Contents?: true
Size: 759 Bytes
Versions: 7
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true module FacebookAds # 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 # @FIXME: You are setting a key that conflicts with a built-in method # FacebookAds::AdImage#hash defined in Hash. disable_warnings def hash self[:hash] end def update(_data) raise Exception, 'NOT IMPLEMENTED' end def destroy super(path: "/act_#{account_id}/adimages", query: { hash: self[:hash] }) end end end
Version data entries
7 entries across 7 versions & 1 rubygems