class FacebookAds::AdAudience

developers.facebook.com/docs/marketing-api/reference/custom-audience

Constants

FIELDS

Public Instance Methods

ad_account() click to toggle source

belongs_to ad_account

# File lib/facebook_ads/ad_audience.rb, line 10
def ad_account
  @ad_account ||= AdAccount.find("act_#{account_id}")
end
share(account_id) click to toggle source

actions

# File lib/facebook_ads/ad_audience.rb, line 16
def share(account_id)
  AdAccount.post(
    "/#{id}/share_with_objects",
    query: {
      share_with_object_id: account_id,
      share_with_object_type: 'Account'
    }
  )
end