Create Campaign
Create a new campaign.
Request
- Base URL: https://app.kaminari.ad
- URL: https://app.kaminari.ad/api/v1/campaigns
- Auth: HTTP bearer
Request body
Ad tag to check: an HTML snippet OR an http(s) URL of a page with the creative already rendered. Required for ad_tag campaigns.
VAST video tag: an http(s) URL of a VAST endpoint OR raw VAST XML. Required for vast campaigns.
Optional http(s) page URL every scan of this campaign is checked from. For ad_tag and vast campaigns it is the page the tag is embedded in: the browser commits the harness document on this URL without fetching the publisher, so the creative is embedded exactly as it would be on that page. For url and ad_discovery campaigns it is where the visitor came from and travels as the Referer of the page request. Cross-origin subrequests receive the origin only (https://publisher.example/, no path) under Chromium's default strict-origin-when-cross-origin policy — same as on a real publisher. Must be a publicly routable host, carry no credentials, and stay within 2048 characters once normalised.
Skips detection and tagging on the first N unique domains of the redirect chain, counted from the entry point. Use it to exclude your own click/tracking domains so they don't trigger tags or alerts. Domains fold to their registrable form, so www.example.com and example.com count as one. Any other request to one of those domains is excluded too, wherever in the page it was made from. Default 0 (nothing skipped). Maximum 5.
How many ad blocks to look for on each publisher page before stopping. Each detected ad becomes its own scan with its own report, and is billed as a separate check. Only valid when campaign_type is 'ad_discovery'. Omit to use the platform default; on update, send null to go back to it. Maximum 25.
Which ad formats each discovery run captures: banner, video and/or pop (pop covers both pop-unders and tab-unders), each at most once. A format left out is neither captured nor billed — e.g. ['pop'] checks the page's pops without screenshotting or clicking its banners; a tab-under the page forces on its own is still reported as a pop. Only valid when campaign_type is 'ad_discovery'. Omit to capture every format; on update, send null to go back to every format.
How the repeats of one url x country x device relate to each other.
Value-compatible with scanning's RepeatModeType — campaigns owns its own copy because the write side must not import another domain's package (check-imports), and only the value crosses the boundary.
Policy set to bind. Omit the field to use the organization's default policy set, or leave the campaign unbound if none is set. Send JSON null to create the campaign unbound so it does not generate alerts.
Response
Successful Response
How the repeats of one url x country x device relate to each other.
Value-compatible with scanning's RepeatModeType — campaigns owns its own copy because the write side must not import another domain's package (check-imports), and only the value crosses the boundary.
Changes
No recorded changes to this operation across all 1 revision of this API.