Sha256: 38d1963b1633ace7feea43e07f4fc6a54305a11f55807f91ccd4b147cc05b007
Contents?: true
Size: 812 Bytes
Versions: 1
Compression:
Stored size: 812 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) AdAccount.post( "/#{id}/share_with_objects", query: { share_with_object_id: account_id, share_with_object_type: 'Account' } ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facebook_ads-0.7.0 | lib/facebook_ads/ad_audience.rb |