Welcome to Meta's official Qodex collections for the Facebook Marketing API
This Qodex collection is a set of saved HTTP requests used to learn how to use a specific API. It encloses most common calls to an API that can be done, as well as the parameters or headers needed to successfully use it. They encapsulate those resources in a tidy way to save, reuse and share with others. Using them allows developers to quickly onboard and understand the way Marketing API works by generating documented requests with examples. This collection allows developers to create campgain, edit campgaign, create Adset/Ads and also view the insights for your ads.To use the Facebook Marketing API Qodex Collection following pre-condition need to be met. For more updated information about on how to Get Started with Marketing API refer to the official documentation.
Marketing API
- The official Marketing API collection
Pre-condition
- Account ID
- Import collection and env variable to Qodex
- Update global variable: account_id and token. Please refer to documentation on getting long lived token[https://developers.facebook.com/docs/marketing-apis/overview/authentication]
- Create Env variable in Qodex. As you execute the script variable used to store campaign id, ad id etc will be auto populated here.
- You should now be able to execute the campaign creation, search for Targeting interest, view account level metrics, creating Adsets, get existing Adsets and Ads details.
- To create Ads you will need creative_id; this can be done either by executing get creative script or by creating new creatives