aYOUne
← Marketing API

AdGroups

Singular: AdGroup — Base URL: https://marketing-api.ayoune.app — Access: CRUD

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.

Endpoints

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

SDK

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

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

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

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

See also