aYOUne
← Marketing API

aYOUneAdvertisementCampaigns

Singular: aYOUneAdvertisementCampaign — Base URL: https://marketing-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Example response (recorded) sample

A real, previously recorded GET /:id response of this endpoint — not the live call above. Sensitive fields are masked.

{
  "payload": {
    "targeting": {
      "regions": [],
      "locales": [],
      "displayLocations": [],
      "dayparts": []
    },
    "_id": "6aa22e00ed1cb871d6dacc1e",
    "name": "CONTINENTAL_TURQUOISE_BIB FORTUNA",
    "mediaTypes": [],
    "regions": [],
    "targetDisplays": [],
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-09-10T04:11:44.857Z",
    "updatedAt": "2026-09-10T04:11:44.857Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://marketing-api.ayoune.app/ayouneadvertisementcampaigns/6aa22e00ed1cb871d6dacc1e",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "aYOUneAdvertisements",
        "title": "MODEL_AYOUNEADVERTISEMENT",
        "href": "https://api.ayoune.app/ads/ayouneadvertisements",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ads.ayouneadvertisements"
      }
    ],
    "debugId": "6aa22e01ed1cb871d6dacc71",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AYOUNEADVERTISEMENTCAMPAIGN",
        "href": "https://api.ayoune.app/marketing/ayouneadvertisementcampaigns/6aa22e00ed1cb871d6dacc1e/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AYOUNEADVERTISEMENTCAMPAIGN",
        "href": "https://api.ayoune.app/marketing/ayouneadvertisementcampaigns/6aa22e00ed1cb871d6dacc1e",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.38.0",
      "core": "2026.334.1"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "1625",
      "reset": "1789016882",
      "resetDate": "Thu Sep 10 2026"
    },
    "responseTime": 81.051293,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpoints

MethodPathDescriptionRight
GET /ayouneadvertisementcampaigns List with filters/pagination marketing.ayouneadvertisementcampaigns.view
GET /ayouneadvertisementcampaigns/:id Single record marketing.ayouneadvertisementcampaigns.view
POST /ayouneadvertisementcampaigns Create new record marketing.ayouneadvertisementcampaigns.new
PUT /ayouneadvertisementcampaigns Update record marketing.ayouneadvertisementcampaigns.edit
DELETE /ayouneadvertisementcampaigns/:id Delete record marketing.ayouneadvertisementcampaigns.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// List all
const list = await ay.marketing.aYOUneAdvertisementCampaigns.find().limit(10).exec();

// Single record
const one = await ay.marketing.aYOUneAdvertisementCampaigns.findById('OBJECT_ID').exec();

// Create
const created = await ay.marketing.aYOUneAdvertisementCampaigns.create({ name: 'Foo' });

See also