Skip to content

Meta Instagram Ads Input

Daily Instagram placement insights from the Meta Marketing API.

Connect

Set ad_account_id and access_token (or OAuth refresh fields) in skippr.yml. Credentials belong in the environment, not in git.

Configuration

yaml
data_sources:
  meta_instagram:
    MetaInstagramAds:
      ad_account_id: "act_123456789"
      start_date: "2024-01-01"
      stream_profile: full
      lookback_days: 3
      processing_lag_days: 1
      access_token: ${META_ADS_ACCESS_TOKEN}
FieldDefaultDescription
ad_account_id(required)Meta ad account ID
start_date(required)First report date (YYYY-MM-DD)
end_dateLast report date
lookback_days3Mature days to re-fetch
processing_lag_days1Skip trailing immature days
stream_profilefullminimal, standard, or full
streamsprofile setExplicit namespace list
api_versionGraph API version override
access_tokenLong-lived access token
oauth_*OAuth refresh credentials

Pipeline wiring

yaml
pipelines:
  instagram:
    data_source: data_sources.meta_instagram
    data_sink: data_sinks.landing

Authentication

Provide either:

  • access_token / META_INSTAGRAM_ADS_ACCESS_TOKEN — long-lived Marketing API token with ads_read (and related) permissions, or
  • OAuth refreshoauth_token_url, oauth_client_id, oauth_client_secret, and oauth_refresh_token (defaults to Meta’s token endpoint when configured in skippr.yml).

Required env vars (typical):

  • META_AD_ACCOUNT_ID
  • META_INSTAGRAM_ADS_ACCESS_TOKEN

Troubleshooting

SymptomFix
Token / 401 errorsRegenerate a long-lived token; confirm ads_read on the ad account
Empty streamsVerify campaigns ran on Instagram; check instagram_filter
Rate limits (429)Plugin retries with backoff; reduce parallel jobs if needed
Slow discoverExpected — discover only samples 3 days of account_daily; use skipprd sync for full history
Stale metricsConfirm replace_partition; increase lookback_days

Offline dev: set SKIPPR_META_INSTAGRAM_ADS_FIXTURE_DIR to JSON fixtures (account_insights.json, campaign_insights.json, etc.).

This site is source-available under PolyForm Shield 1.0.0