Facebook Custom Audiences uses a REST API as part of the broader Facebook Marketing API. The API provides various endpoints for managing Custom Audiences, such as creating, updating, and deleting audiences. It typically uses JSON for request and response payloads. Access to the API requires authentication using an access token, which can be obtained through the Facebook Login process or by creating an app on the Facebook Developers platform. Facebook regularly updates its API, and different versions may have slight differences in functionality or syntax.
The Facebook Custom Audiences API does not have dedicated webhooks for Custom Audiences events. However, Facebook offers webhooks for other related features within its advertising ecosystem.
Key points:
Custom Audiences API: Allows advertisers to manage custom audiences programmatically, but doesn't provide direct webhook functionality.
Marketing API Webhooks: Available for various advertising-related events, though not specifically for Custom Audiences.
Available webhook events include:
Business Manager webhooks: Provided for Business Manager events, which may be relevant for some advertising-related use cases.
Best practices:
Consider implementing a polling mechanism using the Custom Audiences API for real-time updates.
Explore Marketing API webhooks for events that could indirectly provide useful information for Custom Audiences-related workflows.
Regularly check Facebook's documentation for the most up-to-date information on APIs and features.
While the Facebook Custom Audiences API doesn't offer direct webhook functionality, other webhook options within Facebook's advertising ecosystem might be useful depending on specific needs.
The Facebook Custom Audiences API, which is part of the broader Facebook Marketing API, has specific rate limits to ensure fair usage and system stability. Here are the key points regarding the API rate limits for Custom Audiences:
General API Rate Limit:
Custom Audience-specific Limits:
Throttling:
Error Handling:
Best Practices:
Increasing Limits:
It's important to note that these limits may change over time, and Facebook may apply different limits based on various factors such as app performance and compliance with policies. Always refer to the official Facebook Marketing API documentation for the most up-to-date information on rate limits and best practices for API usage.
The most recent version of the Facebook Custom Audiences API is version 18.0, which was released on October 3, 2023.
Key points to consider:
Best practices:
It's worth noting that while version 18.0 is the most recent stable release, Facebook may introduce new versions or updates in the future. Always refer to the official documentation for the most current information on API versions and their features.
Create a Facebook Developer Account:
Create a Facebook App:
Set up Facebook Business Manager:
Configure App Settings:
Add Marketing API:
Request Access to Custom Audiences:
Generate Access Token:
Implement API Integration:
To answer your question about the data models you can interact with using the Facebook Custom Audiences API, I'll provide a list of bullet points covering the main data models and what's possible for each. Here's an overview:
• Create new Custom Audiences based on various data sources • Update existing Custom Audiences • Delete Custom Audiences • Retrieve information about Custom Audiences • Add users to Custom Audiences • Remove users from Custom Audiences • Share Custom Audiences with other ad accounts or business managers • Create lookalike audiences based on existing Custom Audiences
• Upload customer data (e.g., email addresses, phone numbers, names) to create or update Custom Audiences • Perform data hashing for privacy protection • Support various types of customer identifiers (e.g., email, phone, mobile advertiser ID) • Manage customer lifetime value (LTV) data
• Create Custom Audiences based on website visitor data • Define rules for audience creation (e.g., visitors of specific pages, time spent on site) • Use Facebook Pixel data to create these audiences
• Create Custom Audiences based on app user behavior • Define rules for audience creation (e.g., users who have completed specific in-app actions) • Utilize app event data for audience segmentation
• Upload offline conversion data to create Custom Audiences • Match offline customer interactions with online profiles • Create audiences based on in-store purchases or other offline events
• Create Custom Audiences based on user engagement with Facebook content • Include users who have interacted with your Facebook Page, Instagram profile, or ads • Define engagement types (e.g., video views, lead form submissions)
• Create Lookalike Audiences based on existing Custom Audiences • Specify the size and location for Lookalike Audiences • Optimize Lookalike Audiences for specific conversion goals
• Create audiences based on customer lifetime value (LTV) • Upload customer purchase history and value data • Use this data to create more targeted and valuable audiences
• Retrieve demographic and interest data about your Custom Audiences • Analyze audience overlap between different Custom Audiences • Get estimated audience sizes for targeting options
• Share Custom Audiences with other ad accounts or business managers • Manage permissions for shared audiences • Control access to shared audiences
By utilizing these data models through the Facebook Custom Audiences API, advertisers can create highly targeted and effective advertising campaigns based on various data sources and user behaviors.