Zernio
APIFor you
Zernio
APIFor you
API Reference

Automated Rules

Rules

List ad rulesGETCreate an ad rulePOSTGet an ad ruleGETUpdate an ad rulePATCHDelete an ad ruleDELETE

Preview and History

Preview an ad rulePOSTList an ad rule's runsGET

Other

List every change ad rules madeGET
Dashboard
OverviewPlatformsAPI ReferenceResources
Automated Rules

List every change ad rules made

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.


PlatformsMetaGoogleTikTokLinkedInPinterestX
GET
/v1/ads/rules/activity

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

ruleId?string
accountId?string

Only changes of rules on this ads connection.

type?string

Value in

  • "pause"
  • "activate"
  • "adjust_budget"
from?string

ISO 8601 date-time, inclusive.

Formatdate-time
to?string

ISO 8601 date-time, inclusive.

Formatdate-time
limit?integer
Range1 <= value <= 100
Default50
cursor?string

nextCursor from the previous page.

Response Body

application/json

application/json

application/json

application/json

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,      "currency": "string"    }  ],  "nextCursor": "string"}
Was this page helpful?

List an ad rule's runs

Lists a rule's scheduled runs, newest first: what each run evaluated, matched and did. Runs that changed something (or tried to) are kept permanently, also after the rule is deleted; runs that changed nothing are dropped after about 31 days. For every change across all rules, use `GET /v1/ads/rules/activity`.

List account conversion goals

Lists a Google Ads account's default conversion goals, which ones are used for bidding, and the conversion actions in each. Google Ads account-default conversion goals (CustomerConversionGoal), one per category and origin, with `biddable` (whether the goal is used for bidding and reported in the Conversions column) and the conversion actions that belong to it, each flagged `primaryForGoal` (primary) or not (secondary). Reads are cached for 10 minutes; when the shared Google quota is exhausted the last successful result is served with `stale: true`.