← ads API
CreativeTemplates
Singular: CreativeTemplate — Base-URL: https://ads-api.ayoune.app — Zugriff: CRUD
Jetzt ausprobieren
beta
Response (live)
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": "6a618a22c1db0fd99fd7d2a1",
"name": "ACCURATE_BROWN_OWEN LARS",
"status": "draft",
"createdBy": "6045f4d25704710012485569",
"createdAt": "2026-07-23T03:27:30.385Z",
"updatedAt": "2026-07-23T03:27:30.385Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://ads-api.ayoune.app/creativetemplates/6a618a22c1db0fd99fd7d2a1",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"relations": [
{
"rel": "ProductFeeds",
"title": "MODEL_PRODUCTFEED",
"href": "https://api.ayoune.app/pim/productfeeds",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pim.productfeeds"
},
{
"rel": "ImageGenerators",
"title": "MODEL_IMAGEGENERATOR",
"href": "https://api.ayoune.app/cms/imagegenerators",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.imagegenerators"
},
{
"rel": "VideoGenerators",
"title": "MODEL_VIDEOGENERATOR",
"href": "https://api.ayoune.app/cms/videogenerators",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "cms.videogenerators"
},
{
"rel": "AdCampaigns",
"title": "MODEL_ADCAMPAIGN",
"href": "https://api.ayoune.app/marketing/adcampaigns",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.adcampaigns"
},
{
"rel": "AdGroups",
"title": "MODEL_ADGROUP",
"href": "https://api.ayoune.app/marketing/adgroups",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "marketing.adgroups"
},
{
"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": "6a62dbd1d08337d94871ebd1",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_CREATIVETEMPLATE",
"href": "https://api.ayoune.app/ads/creativetemplates/6a618a22c1db0fd99fd7d2a1/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_CREATIVETEMPLATE",
"href": "https://api.ayoune.app/ads/creativetemplates/6a618a22c1db0fd99fd7d2a1/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.6.1",
"core": "2026.257.1"
},
"rateLimit": {
"limit": "2500",
"remaining": "2424",
"reset": "1784866928",
"resetDate": "Fri Jul 24 2026"
},
"responseTime": 294.394169,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /creativetemplates |
Liste mit Filtern/Paginierung | ads.creativetemplates.view |
| GET | /creativetemplates/:id |
Einzelner Datensatz | ads.creativetemplates.view |
| POST | /creativetemplates |
Neuen Datensatz erstellen | ads.creativetemplates.new |
| PUT | /creativetemplates |
Datensatz aktualisieren | ads.creativetemplates.edit |
| DELETE | /creativetemplates/:id |
Datensatz löschen | ads.creativetemplates.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.ads.creativeTemplates.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.ads.creativeTemplates.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.ads.creativeTemplates.create({ name: 'Foo' });