AdRelay supports creating the same campaign across multiple platforms simultaneously using theDocumentation Index
Fetch the complete documentation index at: https://docs.adrelay.dev/llms.txt
Use this file to discover all available pages before exploring further.
targets array. This is useful when you want to launch a campaign across Google, Meta, and TikTok at the same time with consistent settings.
Using the targets Array
Instead of specifying a single platform, provide a targets array listing the platforms you want to create the campaign on:
Response Format
When usingtargets, the response includes results for each platform and a summary:
Mixed Results Handling
Multi-platform creation uses a best-effort approach. If one platform fails, the others still succeed. This means you need to handle partial success:The Summary Object
Thesummary object provides a quick overview of the multi-platform operation:
| Field | Type | Description |
|---|---|---|
total | integer | Total number of platforms targeted |
succeeded | integer | Number of platforms where the campaign was created successfully |
failed | integer | Number of platforms where creation failed |
HTTP Status Codes
| Scenario | Status Code |
|---|---|
| All platforms succeeded | 201 Created |
| Some platforms succeeded, some failed | 207 Multi-Status |
| All platforms failed | 400 Bad Request |
Best Practices
- Check connection status first — Call
GET /v1/connectionsto verify all target platforms haveACTIVEconnections before creating multi-platform campaigns. - Handle partial success — Always check the
summaryand iterate throughresultsto handle failures gracefully. - Platform-specific budgets — Remember that TikTok Ads has a minimum daily budget of $20. If your budget is below a platform’s minimum, that platform will fail with a
VALIDATION_ERROR. - Consistent naming — The same
nameis used across all platforms. Consider including a platform identifier in the name if you need to distinguish them on each platform’s dashboard.