Sha256: 3cbec6572857ce81b99b2e52e3634fc14e9e73e0e98c3623baf670f0e641ef97
Contents?: true
Size: 860 Bytes
Versions: 3
Compression:
Stored size: 860 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
facebook_ads-0.1.11 | lib/facebook_ads/ad_audience.rb |
facebook_ads-0.1.10 | lib/facebook_ads/ad_audience.rb |
facebook_ads-0.1.9 | lib/facebook_ads/ad_audience.rb |