Use cases
Tracking ad campaign performance manually across platforms wastes hours each week. Social advertising metric reports give you cross-platform ad performance benchmarks instantly.Monitor campaign ROI
Compare ad spend and performance metrics across Meta and TikTok campaigns to optimize budget allocation
Track multi-brand performance
Monitor ad campaign effectiveness across multiple brands from a single dashboard
Identify top performers
Analyze which campaigns drive the most clicks, conversions, and engagement across platforms
Before you start
Prerequisites:- API Key - Your authentication token - Get your API key from the API Quickstart.
- Brand ID - Your brand’s unique ID
- Connected Ad Accounts - Meta Ads and/or TikTok Ads accounts connected in Dash Social
- Meta Ads
- TikTok Ads
Test in the dashboard first
Preview ad campaign metrics in the Dash Social Dashboard to understand the data structure before pulling via API.Implementation
Step 1: Get ad account IDs
Get the ad account IDs for your connected advertising accounts. Each platform has a different endpoint.For Meta Ads
Send a GET request:{brand_id} with your brand ID (e.g., 144).
For TikTok Ads
Send a GET request:{brand_id} with your brand ID (e.g., 144).
Sample response (both platforms):
id value. You’ll use these in Step 2.
Compare across platforms
To compare multiple platforms, call both endpoints separately to get ad account IDs for Meta and TikTok.Step 2: Get ad campaigns
Retrieve the ad campaigns under each ad account. Each platform has a different endpoint.For Meta Ads
Send a PUT request:For TikTok Ads
Send a PUT request:source_ad_account_id and source_campaign_id value. Format as comma-separated values for the report API:
- Ad account IDs:
1368643043296927,7113956961980284930 - Campaign IDs:
120236587787680490,120236587787680491
Step 3: Map your report parameters
Map the available parameters before making the API call:Step 4: Request the metric report
Send a GET request using the parameters from Step 3. This example gets link clicks for Meta Ads campaigns:Compare multiple platforms
Make separate requests for each channel:META_ADS, TIKTOK_ADS. Combine results in your dashboard or analytics tool.Step 5: Interpret the response
The response includes data for each ad campaign.Response structure
Each campaign includes:data_type:CAMPAIGNcampaign_name: Name of the ad campaignsource_ad_account_id: Ad account IDsource_campaign_id: Campaign IDmetrics: Object containing requested metricsvalue: Metric total for the reporting periodcontext: Metric total for the comparison periodcontext_change: Decimal representing percent change (e.g.,0.24= +24%,-0.09= -9%)
Metrics
- Meta Ads
- TikTok Ads
Next steps
With your ad campaign metrics, you can:- Build performance dashboards - Compare campaign performance across brands and platforms
- Track ROI trends - Query monthly to spot campaign effectiveness changes
- Optimize ad spend - Compare metrics across campaigns to identify top performers
- Inform budget allocation - Use performance data to guide investment decisions across platforms