Skip to content

Ad

An Ad is one paid or house placement promoting an Offer to an Audience, in a format such as search, display, or video.

Properties

PropertyTypeRequiredDescription
formatstringrequiredOne of search, display, image, or video.
spendmoneyWhat it has cost so far.

Object

JSON
{
  "$id": "https://api.sb/patentpad.com/ads/ad_1",
  "$type": "Ad",
  "format": "search",
  "spend": {
    "amount": 499,
    "currency": "USD"
  }
}

Relationships

Verbs

  1. createCreates an Ad.
    POST /{namespace}/adsdoAd.created
  2. getReturns one Ad by id.
    GET /{namespace}/ads/{id}readNo Event
  3. listReturns Ads, newest first, one page at a time.
    GET /{namespace}/adsreadNo Event
  4. updateChanges the given properties of an Ad.
    PATCH /{namespace}/ads/{id}doAd.updated
  5. deleteDeletes an Ad; its history is kept.
    DELETE /{namespace}/ads/{id}doAd.deleted

Permissions

Which Access level may call each Verb. One-way Verbs wait their delay window.

Operationowneradminmemberviewer
Ad.createYesYesYesNo
Ad.getYesYesYesYes
Ad.listYesYesYesYes
Ad.updateYesYesYesNo
Ad.deleteYesYesYesNo

Call it

Text
Add an ad to ShiftNote.

Example

A short-video Ad shows a meal-planning App filling a week of dinners from one fridge photo. It targets an Audience of parents who save recipe posts, spends $40 a day, and links to the 7-day trial Offer.