Automated Rules
Delete an ad rule
DELETEhttps:/ / zernio.com/ api/ v1/ ads/ rules/ {ruleId}
Deletes a rule and its run history. Changes the rule already made on the platform stay.
PlatformsMetaGoogleTikTokLinkedInPinterestXReddit
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
ruleIdstringRequired
Responses
Success· the request worked
Errors· the request failed
Update an ad rule
Changes any field of a rule except its connection and ad account. Send `campaignIds: null` to check the whole ad account again. Changing the schedule, or enabling a disabled rule, moves the next run; re-sending `enabled: true` on an enabled rule does not.
Preview an ad rule
Evaluates a rule against current metrics and returns what it would match right now, without acting on anything, sending a webhook or starting a cooldown. Works on disabled rules.