Advertisers

Advertisers are the brands on your platform that would like to purchase OOH.

Endpoints

Summary

POST /advertisers #=> Create advertiser
GET /advertisers #=>  List advertisers
GET /advertisers/:id #=> Get specific advertiser
PATCH /advertisers/:id #=> Edit advertiser

Create Advertiser

POST /advertisers

Expects:
- name
- website
- brand (optional)

Returns:
- id
- name
- website

Important note: You should save the returned id to the advertiser on your end – it's needed for other requests.

List Advertisers

GET /advertisers
Returns: paginated array of advertiser objects inside a "records" key

Get Advertiser

GET /advertisers/:id
Returns:
{
  "records": [
    {
      "id": 1,
      "name": "First Advertiser",
      "website": "www.first.com",
      "brand": null
    },
    {
      "id": 2,
      "name": "Second Advertiser",
      "website": "www.second.com",
      "brand": null
    }
  ],
  "pagination": {
    "current_page": 2,
    "next_page": null,
    "prev_page": 1,
    "total_pages": 2,
    "total_entries": 4
  }
}

Edit Advertiser

PATCH /advertisers/:id
Expects: any combination of name, website, and/or brand

Returns:
- id

Last updated