Update Advertiser

PATCH /a/advertisers/{advertiserId}

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

NameInTypeRequiredDescription
advertiserIdpathintegerYes

Request Body *

Content-Type: application/json

FieldTypeRequiredDescription
firstNamestringNo
lastNamestringNo
emailstringNo
passwordstringNo
companystringNo
statusstring (active | pending | rejected)No
phonestringNo
websitestringNo
advertiserAccountManagerIdintegerNo
whitelistPostbackServerIpAddressstringNo
address1stringNo
address2stringNo
citystringNo
statestringNo
countrystringNo
postcodestringNo

Responses

StatusDescription
200Advertiser updated; data is the advertiser after the change
404Advertiser not found
422Validation error

Response fields (inside data)

FieldTypeDescription
advertiserIdinteger
firstNamestring
lastNamestring
emailstringAlso the portal login (stored lower-case).
companystring
statusstring (ACTIVE | PENDING | REJECTED)Account status.
phonestring
websitestring
advertiserAccountManagerIdintegerEmployee who manages this advertiser.
signupCountrystringCountry detected at sign-up.
addressobject
address.address1string
address.address2string
address.citystring
address.statestring
address.countrystring
address.postcodestring
whitelistPostbackServerIpAddressstringComma-separated IPs allowed to send this advertiser's server-to-server postbacks.
createdAtstringY-m-d H:i:s
updatedAtstringY-m-d H:i:s