Overview
The Social Media Campaigns API enables automated marketing campaigns for your vehicle listings across major social platforms. Launch multi-platform campaigns, track performance metrics, and manage ad spend directly from the Steer AI platform.Supported Platforms
Facebook Marketplace and News Feed ads
Instagram Feed and Stories ads
TikTok
TikTok For You page ads (Coming soon)
Prerequisites
Before using the Campaigns API, you must:- Connect your social media accounts via the upload-post service
- Have an active Facebook Business Manager account
- Set up payment methods for ad accounts
Endpoints
Get Facebook Pages
/ads/facebook/pages
Facebook Page ID
Page display name
Page profile picture URL
Associated Facebook Ad Account ID
This endpoint is cached for 5 minutes to improve performance.
Activate Campaign
/ads/campaigns/activate
Campaign UUID from your marketing campaign system
Array of platform names:
facebook, instagram, tiktok. Must have at least one platform.Array of platform-specific results
Whether the campaign launched successfully on this platform
Platform-specific campaign ID
Platform-specific ad set ID
Platform-specific ad ID
Platform name (facebook, instagram, tiktok)
Error message if campaign failed
Get Campaign Metrics
/ads/campaigns//metrics
Campaign UUID
Platform to get metrics from:
facebook, instagram, tiktokNumber of times ad was displayed
Number of ad clicks
Number of successful conversions (leads, inquiries, etc.)
Total amount spent (in account currency)
Click-through rate percentage
Cost per click
Cost per thousand impressions (mille)
Unique users who saw the ad
Average times each user saw the ad
Percentage of clicks that converted
Metrics are cached for 1 minute. Data may take 24-48 hours to fully stabilize on the platform side.
Pause Campaign
/ads/campaigns//pause
Campaign UUID
Platform to pause:
facebook, instagram, tiktokCampaign Workflow
Campaign Best Practices
Audience Targeting
Configure your campaigns for optimal reach:- Location: Target specific cities or regions where you operate
- Age Range: Typically 25-54 for auto purchases
- Interests: Car enthusiasts, new car shoppers, luxury vehicles
- Behaviors: In-market for vehicles, recently moved, new job
Budget Recommendations
| Campaign Type | Daily Budget | Duration | Expected Results |
|---|---|---|---|
| Local Awareness | $20-50 | 7-14 days | 5,000-15,000 reach |
| Lead Generation | $50-100 | 14-30 days | 50-150 leads |
| Inventory Showcase | $100-200 | 30-60 days | 100-300 inquiries |
| Special Promotion | $200-500 | 7-14 days | 200-500 leads |
Creative Guidelines
Images:- High-quality vehicle photos (1080x1080 recommended)
- Multiple angles showing exterior and interior
- Professional lighting and clean backgrounds
- Include price or special offer overlays
- Clear, concise messaging (125 characters or less)
- Include make, model, year
- Highlight key features or benefits
- Strong call-to-action (“Schedule Test Drive”, “View Details”)
- 15-30 seconds optimal length
- Show vehicle in motion and details
- Add captions (80% watch without sound)
- Include branding at start and end
Use Cases
Example 1: Launch Multi-Platform Campaign
Example 2: Monitor Campaign Performance
Example 3: Pause Underperforming Campaign
Error Codes
| Code | Status | Description |
|---|---|---|
USER_NOT_REGISTERED | 400 | User not registered with upload-post service |
ACCOUNT_NOT_CONNECTED | 400 | Social media account not connected |
CAMPAIGN_NOT_FOUND | 404 | Campaign ID does not exist |
INVALID_PLATFORM | 400 | Unsupported platform specified |
INSUFFICIENT_AD_CREDIT | 402 | Not enough credit in ad account |
PAGE_NOT_FOUND | 404 | Facebook page not found or not accessible |
PERMISSION_DENIED | 403 | Missing required permissions for platform |
CAMPAIGN_ALREADY_ACTIVE | 400 | Campaign is already running |
Platform-Specific Notes
Facebook/Instagram
- Requires Facebook Business Manager account
- Ad account must have payment method configured
- Page must have at least 30 followers for boosted posts
- Review times: 24 hours typical, up to 48 hours for complex ads
- Minimum daily budget: $5 USD equivalent
TikTok
- Currently in development
- Will require TikTok Business account
- Minimum daily budget: $20 USD equivalent
- Review times: Up to 24 hours