aYOUne
← ads API

AdBids

Singular: AdBid — Base-URL: https://ads-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6aa370f9dde790fa6ce3bf67",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-09-11T03:09:45.095Z",
    "updatedAt": "2026-09-11T03:09:45.095Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://ads-api.ayoune.app/adbids/6aa370f9dde790fa6ce3bf67",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [
      {
        "rel": "AdAuctions",
        "title": "MODEL_ADAUCTION",
        "href": "https://api.ayoune.app/ads/adauctions",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ads.adauctions"
      },
      {
        "rel": "AdBookings",
        "title": "MODEL_ADBOOKING",
        "href": "https://api.ayoune.app/ads/adbookings",
        "method": "get",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ],
        "right": "ads.adbookings"
      }
    ],
    "debugId": "6aa370fadde790fa6ce3bfb1",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_ADBID",
        "href": "https://api.ayoune.app/ads/adbids/6aa370f9dde790fa6ce3bf67/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_ADBID",
        "href": "https://api.ayoune.app/ads/adbids/6aa370f9dde790fa6ce3bf67",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.13.2",
      "core": "2026.335.0"
    },
    "rateLimit": {
      "limit": "2500",
      "remaining": "2376",
      "reset": "1789099737",
      "resetDate": "Fri Sep 11 2026"
    },
    "responseTime": 351.43078,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /adbids Liste mit Filtern/Paginierung ads.adbids.view
GET /adbids/:id Einzelner Datensatz ads.adbids.view
POST /adbids Neuen Datensatz erstellen ads.adbids.new
PUT /adbids Datensatz aktualisieren ads.adbids.edit
DELETE /adbids/:id Datensatz löschen ads.adbids.delete

SDK

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

// Alle abrufen
const list = await ay.ads.adBids.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.ads.adBids.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.ads.adBids.create({ name: 'Foo' });

Weiterführend