Update Advertiser
PATCH
/a/advertisers/{advertiserId}This endpoint is deprecated and may be removed in a future version.
Partially update a advertiser: send only the fields to change. A status change here sends no e-mail to the advertiser and does not reset their password. password sets a new portal password. Returns the updated advertiser.
Authentication
Domain ID — your network's tenant ID (header: X-Domain-Id)
API Key (header: X-Api-Key)
Secret Key (header: X-Api-Secret)
No API key yet? Start a 14-day free trial and generate a key from your dashboard's security settings. No credit card required.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
advertiserId | path | integer | Yes |
Request Body *
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | No | |
lastName | string | No | |
email | string | No | |
password | string | No | |
company | string | No | |
status | string (active | pending | rejected) | No | |
phone | string | No | |
website | string | No | |
advertiserAccountManagerId | integer | No | |
whitelistPostbackServerIpAddress | string | No | |
address1 | string | No | |
address2 | string | No | |
city | string | No | |
state | string | No | |
country | string | No | |
postcode | string | No |
Responses
| Status | Description |
|---|---|
| 200 | Advertiser updated; data is the advertiser after the change |
| 404 | Advertiser not found |
| 422 | Validation error |
Response fields (inside data)
| Field | Type | Description |
|---|---|---|
advertiserId | integer | |
firstName | string | |
lastName | string | |
email | string | Also the portal login (stored lower-case). |
company | string | |
status | string (ACTIVE | PENDING | REJECTED) | Account status. |
phone | string | |
website | string | |
advertiserAccountManagerId | integer | Employee who manages this advertiser. |
signupCountry | string | Country detected at sign-up. |
address | object | |
address.address1 | string | |
address.address2 | string | |
address.city | string | |
address.state | string | |
address.country | string | |
address.postcode | string | |
whitelistPostbackServerIpAddress | string | Comma-separated IPs allowed to send this advertiser's server-to-server postbacks. |
createdAt | string | Y-m-d H:i:s |
updatedAt | string | Y-m-d H:i:s |