Reputation: 2525
I have ad campaign and want to receive stats for it with this facebook tutorial.
But everywhere I see access_token required. And I don't understand where I can find it for me as developer for ad.
I've used this for user access token, and I see there app token and page token. But no access token for ad.
So my questions:
1. Is it possible to get data from ad campaign as developer?
2. How can I generate access_token for developer for ad?
Upvotes: 2
Views: 150
Reputation: 1646
These are the steps you need to follow to get started:
Visit the Marketing API > Tools page (put your APP ID in):
https://developers.facebook.com/apps/<YOUR_APP_ID>/marketing-api/tools/
Create a sandbox ad account and generate a sandbox token to test with (see screenshot: https://i.sstatic.net/JOyMF.jpg)
Once you're ready to go live you'll need to then:
Visit the Marketing API > Settings page (put your APP ID in): https://developers.facebook.com/apps/<YOUR_APP_ID>/marketing-api/settings/
Link your ad account
Go back to the Marketing API > Tools page and generate a real access token
Upvotes: 3