Soliddeploy

Giving access to your Meta ad data

An agency or reporting tool that reads your Facebook and Instagram figures needs an access token. This guide walks you through it in nine steps, with every button included.

Written by Founder of SolidDeploy ·

Meta does not let you share a password to get at advertising figures. Instead, you create an access token: a key that can do exactly one thing, in this case view your ads. You can revoke it at any time, without affecting your running campaigns.

The tricky part is not the difficulty but the spread. You click through two Meta environments that look different, and you only notice a forgotten tick box three steps later. That is why every click is written out below.

StepWhere
1Check the prerequisitesBusiness Settings
2Create a developer accountdevelopers.facebook.com
3Create the appdevelopers.facebook.com
4Check the Marketing APIdevelopers.facebook.com
5Note the App IDdevelopers.facebook.com
6Create the system userBusiness Settings
7Assign the app and ad accountBusiness Settings
8Generate the tokenBusiness Settings
9Find and send the account IDAds Manager

Open two tabs, one with developers.facebook.com and one with business.facebook.com. You will switch back and forth a few times.

1 Check the prerequisites

business.facebook.com/settings

Three things need to be right. If they are not, you will get stuck halfway on a message that does not explain what is wrong.

1a. Your ad account is in a business portfolio

  1. Go to business.facebook.com/settings.
  2. Check top left which business is selected. If you have several, all the following steps must be done in the same business.
  3. On the left, click Accounts and then Ad accounts. If your account is in that list, you are all set.

If it is not, it is still a personal ad account. Add it via Add and then Add an ad account. Note that this cannot be undone: you cannot remove it later.

1b. You are an admin of that business portfolio

On the left, click Users and then People, and find yourself. It must say Business portfolio admin next to your name. If it says Employee, you will not even see the System users menu in step 6. In that case, have the admin go through this guide.

1c. Two-factor authentication is on

Without two-factor authentication, Meta blocks the creation of a system user. Turn it on via facebook.com/security/2fac/settings, using an authentication app or SMS.

2 Create a developer account

developers.facebook.com

This sounds heavier than it is: you tick a box once to say you may use the developer portal. Nothing gets installed and it costs nothing.

  1. Go to developers.facebook.com and log in with the same Facebook account that you confirmed as admin in step 1b. A different account will not work.
  2. Click Get started at the top right. If it says My apps, you already have a developer account and can go on to step 3.
  3. Accept the terms and confirm your phone number or email address with the code you receive.
  4. When asked about your role, choose for example Entrepreneur. It has no further consequences.
  5. Click Complete registration.

3 Create the app

developers.facebook.com/apps

Here the app is just a key holder, nothing more. It contains no software, it never appears in an app store, and it does not need Meta's approval.

  1. Go to developers.facebook.com/apps and click Create app.
  2. Under App name, enter something recognisable, for example Rapportagekoppeling. Do not use the words Facebook, Instagram or Meta, as Meta rejects them.
  3. Enter your own address under App contact email.
  4. Under Business portfolio, choose the portfolio from step 1a and click Next.
  5. Meta now asks what your app should do. Choose Create and manage ads with the Marketing API (in a Dutch interface: Advertenties maken en beheren met de Marketing API) and click Next.
  6. Click Create app and enter your password.

You then land straight on the app dashboard. Because of the choice in point 5, the Marketing API is already included, so step 4 is probably just a check for you.

Point 4 is the most important field in this guide. If you leave the business portfolio set to None, you cannot generate a token in step 8. This cannot be fixed afterwards: you would have to create a new app and redo steps 3 to 5.

4 Check the Marketing API

Your new app's dashboard

Without the Marketing API, your app cannot do anything with ad data, and the permissions from step 8 simply will not appear in the list.

Check whether Marketing API is in your app's menu on the left. If you chose the ads use case in step 3, it is already there and you are done here. You do not need to do anything else: no generating a token on that page and no requesting a review.

If it is not there, add it now:

  1. On the app dashboard, find the Add products to your app block. If you do not see it, click Add products on the left or the plus sign next to Products.
  2. Find Marketing API and click Set up in that box.

Leave the app in development mode. You do not need to change the Development/Live switch at the top.

You do not need to publish the app. If you try anyway, Meta will say things are still missing: a privacy policy, an app icon, business verification. That list applies to apps that other companies log in to. Your app only reads your own ad account and works fine in development mode. Ignore the message and continue to step 5.

5 Note the App ID

App settings, Basic

Click App settings on the left, then Basic. At the top is the App ID, a fifteen-digit number. Copy it into a notepad. You can share it freely, as an App ID is not a secret.

You do not need the App secret field next to it. Never send it.

6 Create the system user

business.facebook.com/settings

A system user is an employee with no person behind it. It belongs to the company rather than an individual, so the connection keeps working when someone leaves or changes their password.

  1. Go back to business.facebook.com/settings and check top left that the same business is selected as in steps 1a and 3.
  2. Click Users on the left, then System users.
  3. Click the blue Add button. If terms appear, click I accept.
  4. Enter a recognisable name, for example that of the agency or tool that will have access.
  5. Choose Employee as the role. Admin is not needed, and the fewer permissions the better.
  6. Click Create system user.

7 Assign the app and ad account

On the system user you just created

Two separate assignments. Do both, because with only one of them step 8 will fail.

7a. Assign the app

  1. Click the new system user in the list, then Assign assets. In some views this button is called Add assets.
  2. In the left column, choose Apps.
  3. In the middle column, tick the app from step 3.
  4. In the right column, turn on the Manage app switch.
  5. Click Save changes, then Done.

7b. Assign the ad account

  1. Click Assign assets again.
  2. In the left column, choose Ad accounts.
  3. In the middle column, tick your ad account.
  4. In the right column, turn on the View ad account switch. Deliberately leave Manage ad account off: that would allow changes and spending money.
  5. Click Save changes, then Done.

All correct? Under the system user, Assigned assets now shows two items: the app and the ad account.

8 Generate the token

On the same system user

  1. Click Generate new token.
  2. Under App, choose the app from step 3. If it is not listed, step 3 point 4 or step 7a went wrong; see the table below.
  3. Set Token expiration to Never.
  4. Tick exactly two items in the permissions list. Use the search field above it:
    • ads_read, the permission to read ad data
    • business_management, the permission to see which business the account belongs to
  5. Click Generate token.
  6. You will see a long string of characters starting with EAA. Click Copy and paste it somewhere safe straight away.
  7. Click Done.

Make sure you set the expiry to Never. If it stays at 60 days, the connection will stop in two months without warning.

Meta shows the token exactly once. If you close the window without copying it, it is gone. That is no disaster: just repeat step 8.

If ads_read and business_management are not in the list, your app is missing the Marketing API. Add it as in step 4, refresh the page and try again.

Check the token before you send it

Go to Meta’s token debugger, paste the token and click Debug. It should show Never under Expires, and both ads_read and business_management under Scopes or Permissions. If not, repeat step 8.

9 Find and send the account ID

Ads Manager

Open Ads Manager. Top left you will see the name of your ad account with a number below it. If you can’t see it, click the name to open the account selector. It is also in the address bar, after ?act=.

Send us these three things:

WhatWhere fromLooks like
Access tokenstep 8EAAG9ZC..., a few hundred characters
Ad account IDstep 91234567890
App ID (only if asked)step 51234567890123456

Do not send the token in a regular email, WhatsApp or Slack. It is a key to your ad data and would stay in that message forever, even after we stop working together. Use the secure form whose link we sent you. If you don’t have that link, paste the token into onetimesecret.com, click Create a secret link and email us that link. Once opened, it no longer exists.

The ad account ID and the App ID are not secrets, so you can simply email them.

What this access does and does not allow

Can: view campaigns, ad sets and ads, with spend, impressions, clicks, conversions, cost per result and ROAS.

Cannot: change budgets, start or stop campaigns, edit ads, spend money, or access your pages, messages, customer lists or payment details. The ads_read permission is read-only and simply does not allow anything else.

Revoking access

Possible at any time, without involving the party with access and without affecting your campaigns. Go to Business settings, then Users, then System users, click the system user from step 6 and choose Remove. All its tokens are then invalid immediately. To revoke only this one token, click the token itself under the system user and choose Revoke.

If something goes wrong

What you seeWhat is going onSolution
The Add button cannot be clicked Usually two-factor authentication is off, and Meta does not say so. Otherwise: no full control of the portfolio, or an open task under To do top right Step 1c, then log out and log back in. If that doesn’t help, step 1b
System users is not in the menu Not an admin, or the wrong business selected Step 1b, and check top left
You don’t have permission to perform this action Same cause: no admin rights Ask the admin to do these steps
Meta asks for two-factor authentication Required for system users Step 1c
My app is not in the list under Generate new token App not linked to the business portfolio, or not assigned to the system user Do step 7a first. If step 3 point 4 was the cause, create a new app
ads_read is not in the permissions list The Marketing API has not been added to your app Step 4, then refresh
I cannot publish the app, requirements are still missing That is correct, and you do not need to. Publishing is for apps that other companies log in to Leave the app in Development mode and simply carry on
The token disappeared before I could copy it Meta shows a token only once Repeat step 8
(#200) Requires ads_read permission Ad account not assigned, or ads_read was not switched on Step 7b and step 8
(#100) Unsupported get request Wrong account ID, or the account belongs to another portfolio Step 9, and check step 1a
It worked and then stopped after two months Expiry was set to 60 days Repeat step 8, this time with Never

Two things worth knowing

Your app does not need to be reviewed by Meta. As long as the integration only reads ad accounts from your own business portfolio, standard access is enough. The review process is meant for apps that other companies log in to.

There is a limit on the number of requests. Without that review, the app sits on the lowest access tier of the Marketing API. For a daily or weekly report on one ad account, that is more than enough; if you need many accounts at once or figures refreshed every hour, request an increase from Meta.

What is the first thing we should tackle?

Tell us about a process that takes too long, an agent you have in mind or an opportunity you have not got round to yet. We show you what it delivers and how it fits your business.