Frequently Asked Questions

General

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.

Permalink

Authorization and Authentication

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.

Permalink

Ad Campaigns

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.

Permalink

Ad Sets

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.

Permalink

Insights

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.

Permalink

Troubleshooting

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.

Permalink

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.

Permalink

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.

Permalink