Module: Facebook
- Defined in:
- app/services/facebook/advertiser_api_client.rb,
app/services/facebook/api_client.rb,
app/services/facebook/signed_request_verifier.rb
Overview
Faraday-backed client for the Facebook/Meta Marketing Graph API —
the campaign / ad-set / ads / insights surface, NOT the Conversions
API (ApiClient). Same graph.facebook.com host but
different paths and different access-token scope.
Used by FacebookCampaignSyncWorker to fetch the ad-account's
campaigns once a day and mirror them into the sources table —
the direct parallel to Pinterest::AdvertiserApiClient driving
PinterestCampaignSyncWorker and OpenaiAds::AdvertiserApiClient
driving OpenaiAdsCampaignSyncWorker.
Facebook scopes campaigns by act_<ad_account_id> in the URL path
(the act_ prefix is mandatory and distinguishes ad accounts from
user/page IDs in the same Graph API namespace).
Defined Under Namespace
Classes: AdvertiserApiClient, ApiClient, ConversionReporter, SignedRequestVerifier