Create traffic source
create_traffic_sourceCreate a traffic source. Only name is required. template_id copies the provider, API capabilities and default parameter mapping from a platform template (list_traffic_source_templates); mapping fields given explicitly override it. For API-backed templates the api_key is verified live (422 invalid_api_key). Without a template the source is custom (no network API).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Incoming query parameter name that carries cost (parameter mapping) | |
| name | Yes | ||
| sub1 | No | Incoming query parameter name that carries sub1 | |
| sub2 | No | Incoming query parameter name that carries sub2 | |
| sub3 | No | Incoming query parameter name that carries sub3 | |
| sub4 | No | Incoming query parameter name that carries sub4 | |
| sub5 | No | Incoming query parameter name that carries sub5 | |
| sub6 | No | Incoming query parameter name that carries sub6 | |
| sub7 | No | Incoming query parameter name that carries sub7 | |
| sub8 | No | Incoming query parameter name that carries sub8 | |
| sub9 | No | Incoming query parameter name that carries sub9 | |
| tags | No | ||
| sub10 | No | Incoming query parameter name that carries sub10 | |
| sub11 | No | Incoming query parameter name that carries sub11 | |
| sub12 | No | Incoming query parameter name that carries sub12 | |
| sub13 | No | Incoming query parameter name that carries sub13 | |
| sub14 | No | Incoming query parameter name that carries sub14 | |
| sub15 | No | Incoming query parameter name that carries sub15 | |
| format | No | Incoming query parameter name that carries format (parameter mapping) | |
| api_key | No | Network API key (API-backed templates only); write-only, verified live | |
| zone_id | No | Incoming query parameter name that carries zone_id (parameter mapping) | |
| group_id | No | ||
| proxy_id | No | Tech → Proxies id (list_proxies) the network API calls of this source leave through; null = direct | |
| postbacks | No | Source postback URLs (complete list on update) | |
| source_id | No | Incoming query parameter name that carries source_id (parameter mapping) | |
| campaign_id | No | Incoming query parameter name that carries campaign_id (parameter mapping) | |
| creative_id | No | Incoming query parameter name that carries creative_id (parameter mapping) | |
| external_id | No | Incoming query parameter name that carries external_id (parameter mapping) | |
| template_id | No | ||
| traffic_loss | No | 0–100 % traffic-loss compensation applied to click cost | |
| user_activity | No | Incoming query parameter name that carries user_activity (parameter mapping) | |
| payout_percent | No | 0–500 share of the payout reported | |
| postback_percent | No | 0–100 share of conversions forwarded to the source |