...
Code Block |
---|
GET /api/v4/advertisers |
Response:
Code Block | ||
---|---|---|
| ||
{
"@context": "/api/v4/contexts/Advertiser",
"@id": "/api/v4/advertisers",
"@type": "hydra:Collection",
"hydra:member": [
{
"@id": "/api/v4/advertisers/22099",
"@type": "Advertiser",
"defaultTerms": null,
"useIoManagement": false,
"campaignManager": {
"@id": "/api/v4/users/523",
"@type": "User",
"id": 523,
"username": "demo user",
"email": "demouser@convertr.io"
},
"accountManager": "Demo User",
"autosignContract": false,
"logo": null,
"id": 22099,
"name": "Demo Advertiser",
"orgurl": "",
"updatedTs": "2021-12-07T11:13:42+00:00",
"firstName": "Demo",
"lastName": "Demo",
"email": "demouser@convertr.io",
"telephone": "12345678",
"notes": "",
"updatedBy": {
"@id": "/api/v4/users/506",
"@type": "User",
"id": 523,
"username": "demouser",
"email": "demouser@convertr.io"
},
... |
You can filter the Advertisers API endpoint with the following filters:
Property | Notes |
---|---|
| Filter by specific advertiser ID |
| Partial match filter |
| Partial match filter |
| Partial match filter |
| Partial match filter |
| Date Time searches |
Creating an Advertiser:
You can create a new advertiser by posting to the /api/v4/advertisers
endpoint:
...
Property | Required | Type | Notes |
---|---|---|---|
|
| string | Must be unique |
|
| IRI string | IRI from |
|
| string | |
| string | ||
| string | ||
| string | ||
| string | ||
| string | ||
| boolean | If enabled, new campaigns will not need to be approved. | |
| string | ||
| boolean | Recommended to be false. | |
| object | ||
| string | ||
| string | ||
| string | ||
| IRI string | IRI from |
Errors
Errors are returned in array format, and will return the impacted property name:
Code Block |
---|
{ "@context": "/api/v4/contexts/ConstraintViolationList", "@type": "ConstraintViolationList", "hydra:title": "An error occurred", "hydra:description": "name: Advertiser with this name already exists.", "violations": [ { "propertyPath": "name", "message": "Advertiser with this name already exists." } ] } |
Message | Code | Reason |
---|---|---|
Advertiser with this name already exists. | 400 | Advertiser name must be unique |