Sha256: 351145ec6ba36a2e5492a116a7298610fb124850af0567e56be24e17d924a04e
Contents?: true
Size: 891 Bytes
Versions: 7
Compression:
Stored size: 891 Bytes
Contents
# frozen_string_literal: true module FacebookAds # https://developers.facebook.com/docs/marketing-api/reference/custom-audience class AdAudience < Base FIELDS = %w[id account_id subtype name description approximate_count data_source delivery_status external_event_source lookalike_audience_ids lookalike_spec operation_status opt_out_link permission_for_actions pixel_id retention_days rule time_content_updated time_created time_updated].freeze # belongs_to ad_account def ad_account @ad_account ||= AdAccount.find("act_#{account_id}") end # actions def share(account_id) query = { share_with_object_id: account_id, share_with_object_type: 'Account' } result = AdAccount.post("/#{id}/share_with_objects", query: query) # result['success'] result # No idea what this response looks like. end end end
Version data entries
7 entries across 7 versions & 1 rubygems