Create an alert rule (email, Slack or webhook)
Creates an alert rule for a project, exactly like Settings > Alert rules. Types: competitor_new (a domain the project does not own shows an ad for the first time), competitor_returning (an advertiser returns after at least 30 days away), hijack_detected (an ad from another domain mentions the brand in its copy), affiliate_detected (one of your affiliate IDs appears in an ad's destination URL; needs the project's affiliate parameter), summary_digest (a scheduled summary sent daily or weekly at a local hour, even when nothing changed: checks saved against expected, new and returning advertisers, brand mentions, affiliate IDs, non-compliant affiliates, policy cases and the top advertisers by observed visibility for the complete local days before delivery; give cadence, weekday for weekly, hour and optionally time_zone). Channels: email (target is an address, or omit it to notify the account owner), slack (target must be an https://hooks.slack.com/services/ URL) or webhook (target must be a public HTTPS URL; each delivery is signed with HMAC-SHA256 in x-ads-lighthouse-signature). Optional engines, devices and countries restrict which observations fire the rule. Alerts are leads to review: an observation is not proof of a purchased keyword, spend or a violation. Requires the write scope and an idempotency key; a retry with the same key returns the same rule. For webhook rules the response carries the signing secret once.
Request
- Base URL: https://adslighthouse.com/api/v1
- URL: https://adslighthouse.com/api/v1/alert-rules
- Auth: HTTP bearer
Headers
A unique value you choose for this request, such as a UUID. Repeating the same key returns the first result instead of starting paid work again.
Request body
Response
Create an alert rule (email, Slack or webhook)
Changes
No recorded changes to this operation across all 1 revision of this API.