Skip to content

Get started with the Marketing API

Updated: Jun 16, 2026

To use the Marketing API, you must follow some key steps to set up your 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⁠ to run campaigns and manage billing. An ad account allows you to track your advertising expenses, monitor performance, and optimize your campaigns.

Finding your ad account number

Find your ad account number in 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 in the Account overview section 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

Unofficial mirror for reference/search purposes. All content originates from developers.facebook.com — see the source link at the top of each page. Machine-readable indexes: llms.txt · llms-full.txt · About