To use the Marketing API in production, you must submit your app for review and receive approval. This process involves providing detailed information about how your app will use the API, including the specific permissions and features you intend to access. Once your app is approved, you can use the API in a production environment.
Access tokens can be generated through the Meta developer portal. Navigate to Tools and select Access Token Tool. Choose the necessary permissions based on the actions you plan to perform using the API.
See Authentication for more information.
To create a campaign, send a POST request to the /act_<AD_ACCOUNT_ID>/campaigns endpoint with parameters such as name, objective, and status.
See Create an Ad Campaign for more information.
Yes, you can update an ad set's budget by sending a POST request to the /act_<AD_ACCOUNT_ID>/adsets endpoint with the new budget parameters.
Use the Insights API to make GET requests to the /act_<AD_ACCOUNT_ID>/insights endpoint. Specify the fields you want (for example, impressions, clicks, spend) and analyze the returned data to assess performance.
Review the ad content against Meta's advertising policies. Ensure compliance with all guidelines, and modify any elements that may violate the rules. You can also appeal the decision if you believe your ad was incorrectly disapproved.
Regularly monitor performance metrics using the Insights API, conduct A/B testing on creatives, and refine your audience targeting based on data insights. Adjust budgets toward high-performing areas for better results.
Review the error message returned in the API response. The message will provide context for the error, which can guide your troubleshooting efforts. Check the Meta API Error Codes documentation for detailed explanations.
Use the Platform Bug Reports tool to file issues and visit the Meta Developer Community Forum to ask questions.