OverviewProductsPlatformsAPI ReferenceResources
Automated Rules

List every change ad rules made

GEThttps://zernio.com/api/v1/ads/rules/activity

The permanent record of what your rules did: one entry per pause, reactivation or budget change (including skipped and failed attempts), newest first, across all rules of the profiles the key can reach. Entries stay after a rule is renamed or deleted; ruleName is the rule's name when it acted.

PlatformsMetaGoogleTikTokLinkedInPinterestXReddit

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Query parameters

Optional
ruleIdstring
accountIdstring

Only changes of rules on this ads connection.

typestringOne of pause | activate | adjust_budget | adjust_bid | adjust_target | reallocate_budget | duplicate | edit_name
fromstring (date-time)

ISO 8601 date-time, inclusive.

tostring (date-time)

ISO 8601 date-time, inclusive.

limitintegerDefault 50
cursorstring

nextCursor from the previous page.

Responses

Success· the request worked

Errors· the request failed

GET/v1/ads/rules/activity
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adrules.listAdRuleActivity();console.log(data);
{  "activity": [    {      "id": "string",      "ranAt": "2019-08-24T14:15:22Z",      "ruleId": "string",      "ruleName": "string",      "platform": "string",      "accountId": "string",      "adAccountId": "string",      "level": "campaign",      "objectId": "string",      "objectName": "string",      "type": "pause",      "status": "done",      "reason": "string",      "previousDailyBudget": 0,      "newDailyBudget": 0,      "previousName": "string",      "newName": "string",      "previousBidAmount": 0,      "newBidAmount": 0,      "targetMetric": "cpa",      "previousTarget": 0,      "newTarget": 0,      "currency": "string"    }  ],  "nextCursor": "string"}
OpenAPI specification
Was this page helpful?