Connect Meta Ads to Rig

    Sync campaigns, ad sets, ads and creative performance across Facebook and Instagram into your warehouse. This is the longest connector setup Rig has, because Meta makes you build an app and a system user before it will give you a token. Done once, it never expires.

    Requirements
    An account that can create apps and system users in Meta Business Manager
    Time required
    15 mins

    One token covers Meta Ads and Instagram Business
    Facebook Ads, Instagram Ads and Instagram Business all authenticate with the same system user access token. Do this setup once, then paste the same token into both connectors. If you want organic Instagram too, add the Instagram scopes listed below while you are here rather than generating a second token later, and follow the Instagram Business guide for the extra asset it needs.

    Create the app

    1. Go to business.facebook.com, then Settings → Apps.
    2. Click Create app, which takes you across to the developer site.
    3. Name it Rig data sync and add your own email, or your technical team's. If the email is already prefilled, leave it.
    4. Click Next, go to Use cases, scroll down and choose Other.
    5. Next, then choose Business.
    6. Next, confirm everything looks right, then Create app.
    7. In the app, go to Add products and add the Marketing API.

    Create the system user

    The app is the thing Meta issues a token for. The system user is the identity that token acts as, and it is what you will later assign your ad accounts and Pages to.

    1. Back in Business Manager, go to Settings → System users.
    2. Click Add user, name it Rig data sync, select Employee, and create it.
    3. Go to Apps, select the Rig app, click Assign access, choose the system user, tick Develop app, and click Assign.

    Generate the token

    1. Go back to System users and select the Rig system user.
    2. Click Generate token at the top, and select the app you created.
    3. Next, then set expiration to Never. A token that expires means the sync stops silently in sixty days.
    4. Select the permissions below, then Generate token and copy it.

    The permissions list is a search box rather than a menu you can scan, so work through it by typing each term and ticking what comes up:

    • Type ads, tick ads_read
    • Type insights, tick read_insights
    • Type business, tick business_management

    Those three are all Meta Ads needs. If you are also connecting Instagram Business on this token, add instagram_basic, instagram_manage_insights, pages_show_list and pages_read_engagement now. Every one of these is read-only.

    Assign your assets

    Scopes say what kind of thing the token may read. Assignment says which specific accounts it may read them from, and without it a perfectly valid token returns nothing. Work from the asset side, under Business settings → Accounts.

    For Meta Ads, one assignment is enough:

    • Ad accounts → your ad account → Assigned users → Add people → the Rig system user → toggle on View performance → Save

    If you added the Instagram scopes above because you are connecting Instagram Business too, assign these as well. Skip them otherwise, since assigning an asset you have no scope for achieves nothing:

    • Pages → your Page → Add people → Rig → toggle on Insights
    • Instagram accounts → your Instagram account → Add people → Rig → toggle on Insights

    Leave everything else off. The Page toggles include creating and managing content, deleting posts, and commenting or messaging, and Rig needs none of them. Insights alone is what a read-only sync requires.

    Assignment runs from the asset to the user. The system user's own Assigned assets tab is mostly a read-out of what you did here, so if something looks missing, fix it on the asset rather than on the user.

    Connect it in Rig

    Adding a source needs a workspace owner, or a role with the Manage connections permission, on a workspace where you manage your own connections. If the Connectors tab says “Data ingestion for this workspace is managed by Rig”, ask an owner or Rig support to add the source.

    1. In Rig, open Connections, choose the Connectors tab and go to Sources & actions.
    2. Search for Meta Ads, open the card and click Connect.
    3. Ad account IDs (comma-separated): leave it blank. Rig discovers every account the token can access, and this field is only there for the case where you need to pin specific ones.
    4. System-user access token: paste the token.
    5. Initial history start date: optional, as YYYY-MM-DD. Left blank, the first sync of the daily ad reports goes back 90 days. An earlier date pulls more on the first sync, up to Meta's limit of 37 months. It only applies to streams that have not synced yet.
    6. Click Continue. Rig checks the credentials and lists the streams it can reach, so choose the ones you want and click Connect.
    7. The source then syncs on its schedule, which is nightly unless you change it. To load data straight away, click Sync on its row; Test pulls a small sample first if you want to check the connection.

    Troubleshooting

    • Continue says the token cannot see any ad accounts: check that the correct business portfolio is selected. Under Business settings → Accounts → Ad accounts → Assigned users, add the system user that created the token and grant View performance. The app's presence under Apps alone does not grant ad account access.
    • You assigned the assets and it still returns nothing: give it a few minutes and re-run the sync. Newly granted permissions are not always visible to the API immediately.
    • Still nothing, and the business itself may not be connected to the app: in System users, open the Rig app under Apps, click Connect assets → Add accounts → Other business assets, select your business, and add it. Then test again.
    • The screens do not match this guide: Meta reorganises Business Manager fairly often. The sequence holds even when the labels move: create an app, create a system user, assign the user to the app, generate a never-expiring token with the scopes above, then assign each asset to the user.

    What people use this for

    • Analyse creative and ad set performance
    • Track blended ROAS across Facebook and Instagram
    • Monitor spend pacing and budget by campaign
    • Tie Meta spend to revenue for true CAC

    More ideas for using Meta Ads

    Was this guide helpful?