post
https://sandbox-api.viantinc.com/{basePath}/advertiser
Creates a new Advertiser.
Request Body
| Name | Type | Description | Required |
|---|---|---|---|
| id | Number | Advertiser ID. | Required for update. |
| name | String | Advertiser name. | Yes |
| agencyId | String | Agency ID to which the advertiser belongs. | Yes during Insert / No / ignored during Update |
| currency | String | Currency displayed for pricing | Yes during Insert / No / ignored during Update |
| category | String | Business category for advertiser See reference table here | Yes during Insert / No / ignored during Update |
| timezoneName | String | Name of timezone from the following list: AKT, CT, ET, GMT, HST, MT, N, PT | No. If not passed during resource creation, then account timezone is used. This field is ignored for resource update. |
| externalAdvertiserId | String | External ID for the Advertiser | No |
Response
| Name | Type | Description |
|---|---|---|
| messages | Object Array | An array of any error messages. |
| messages[].level | String | Error level. |
| messages[].code | String | Error code. |
| messages[].message | String | Error message. |
| entity | Object | An advertiser object. |
| entity.id | Number | Advertiser ID. |
| entity.name | String | Advertiser name. |
| entity.agencyId | Number | Agency ID to which the advertiser belongs. |
| entity.currency | String | Currency displayed for pricing |
| entity.category | String | Business category for advertiser See reference table in Advertiser summary |
| entity.timezoneName | String | Name of timezone for advertiser |
| entity.externalAdvertiserId | String | External ID for Advertiser |