Appearance
Fresh 2026
Get Started with the Marketing API
Updated:May 21, 2026
To effectively utilize the Marketing API, users must follow some key steps to set up their environment and gain access to the API’s features. This section outlines the prerequisites necessary for getting started.
Ad Account requirements
To manage your ads through the Marketing API, you must have an active ad account. This account is crucial not only for running campaigns but also for managing billing settings and setting spending limits. An ad account allows you to track your advertising expenses, monitor performance, and optimize your campaigns effectively.
Finding your Ad Account number
Locating your ad account number can be done through the Meta Ads Manager.
Log into Facebook: Start by logging into your Facebook account that is associated with your business. Access Ads Manager: Find Ads Manager in the drop-down menu in the upper right corner of your Facebook homepage or business page. Locate your ad account: In Ads Manager, click on the ad account Settings from the menu on the bottom left of the screen. View ad account information: In the Settings screen, your ad account number appears here along with other details such as your billing information and spending limits.
Meta Developer account
See Register as a Meta Developer for more information.
Create an app
See Create an App for more information on setting up an app in the App Dashboard as well as app types and use cases.
Authorization and authentication
See Authorization for more information on verifying the users and apps that will be accessing the Marketing API and granting them permissions.
See Authentication for more information on getting, extending, and renewing access tokens with the Marketing API.
Next steps
Create an Ad Campaign Manage Ad Campaigns Optimize Ad Campaigns
Did you find this page helpful?
ON THIS PAGE
Ad Account requirements
Finding your Ad Account number
Meta Developer account
Create an app
Authorization and authentication
Next steps