Example API Usage
Here are examples of how to create a campaign using the Addressable.tv API in different programming languages:Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Campaign name |
nickname | string | No | Short campaign identifier |
advertiserName | string | Yes | Advertiser name (will fuzzy-match to existing or create new) |
clientCampaignId | string | Yes | Your internal campaign identifier |
networkExclusions | string[] | No | List of networks to exclude from activations |
Response Schema
The API returns the created campaign object with additional system-generated fields.Example Response
Response Fields
| Field | Type | Description |
|---|---|---|
id | number | The unique campaign ID. Save this - you’ll need it when creating orders. |
name | string | Campaign name |
nickName | string | Short campaign identifier |
status | string | Campaign status (see status values below) |
clientCampaignId | string | Your internal campaign identifier |
excludedNetworks | string[] | List of networks excluded from activations |
createdAt | string (ISO 8601) | Timestamp when the campaign was created |
invalidNetworkExclusions | string[] | Networks in your exclusion list that don’t match known networks |
Status Values
| Status | Description |
|---|---|
NEEDS_APPROVAL | Newly created, awaiting review |
PENDING | Approved, waiting to start |
ACTIVE | Currently running |
PAUSED | Temporarily paused |
COMPLETE | Finished delivering |
CANCELLED | Cancelled before completion |
Error Responses
Example Error Response
Common Errors
| Error | Cause |
|---|---|
name is required | Missing required name field |
advertiserName is required | Missing required advertiserName field |
clientCampaignId is required | Missing required clientCampaignId field |
Notes
- Initial status is always
NEEDS_APPROVAL- your account team will review and activate - Review
invalidNetworkExclusionsin the response to ensure your network exclusions are recognized - Save the returned
id- you’ll need it when creating orders

