Kaminari Ad · Schema

UpdateCampaignRequest

Request body to update campaign fields. All fields optional.

AdvertisingSecurityArtificial IntelligenceFraud PreventionReal Devices

Properties

Name Type Description
name object
url object
ad_tag object Ad tag to check: an HTML snippet OR an http(s) URL of a page with the creative already rendered. Only for ad_tag campaigns.
vast_tag object VAST video tag: an http(s) URL of a VAST endpoint OR raw VAST XML. Only for vast campaigns.
referrer object 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
ignore_first_n_domains integer 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. D
max_discovered_ads object 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 'a
ad_formats object 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'] c
country_codes object
group_id object
emulator_categories object
emulator_specific_ids object
emulator_mode object
proxy_type object
proxy_region object
proxy_city object
proxy_isp object
repeat_count object
repeat_mode object
retry_max_attempts object
labels object
policy_set_id object
schedule_type object
schedule_weekly object
schedule_interval_seconds object
schedule_enabled object
schedule_timezone object
notifications object Alert-notification settings saved in the same request. Omit (or send null) to leave them unchanged. Requires the alert_notifications.manage permission.
View JSON Schema on GitHub

JSON Schema

kaminari-ad-update-campaign-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kaminari-ad/json-schema/kaminari-ad-update-campaign-request-schema.json",
  "title": "UpdateCampaignRequest",
  "description": "Request body to update campaign fields. All fields optional.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kaminari-ad-openapi.json#/components/schemas/UpdateCampaignRequest",
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "url": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Url"
    },
    "ad_tag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ad Tag",
      "description": "Ad tag to check: an HTML snippet OR an http(s) URL of a page with the creative already rendered. Only for ad_tag campaigns."
    },
    "vast_tag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Vast Tag",
      "description": "VAST video tag: an http(s) URL of a VAST endpoint OR raw VAST XML. Only for vast campaigns."
    },
    "referrer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 1,
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "title": "Referrer",
      "description": "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."
    },
    "ignore_first_n_domains": {
      "type": "integer",
      "maximum": 5.0,
      "minimum": 0.0,
      "title": "Ignore First N Domains",
      "description": "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. Not nullable: send 0 to go back to skipping nothing.",
      "default": 0
    },
    "max_discovered_ads": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 25.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Discovered Ads",
      "description": "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."
    },
    "ad_formats": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DiscoveryAdFormat"
          },
          "type": "array",
          "maxItems": 3,
          "minItems": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Ad Formats",
      "description": "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."
    },
    "country_codes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country Codes"
    },
    "group_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Group Id"
    },
    "emulator_categories": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Emulator Categories"
    },
    "emulator_specific_ids": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Emulator Specific Ids"
    },
    "emulator_mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Emulator Mode"
    },
    "proxy_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Type"
    },
    "proxy_region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Region"
    },
    "proxy_city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy City"
    },
    "proxy_isp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Proxy Isp"
    },
    "repeat_count": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Repeat Count"
    },
    "repeat_mode": {
      "anyOf": [
        {
          "$ref": "#/$defs/RepeatMode"
        },
        {
          "type": "null"
        }
      ]
    },
    "retry_max_attempts": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Retry Max Attempts"
    },
    "labels": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Labels"
    },
    "policy_set_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy Set Id"
    },
    "schedule_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Type"
    },
    "schedule_weekly": {
      "anyOf": [
        {
          "additionalProperties": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Weekly"
    },
    "schedule_interval_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Interval Seconds"
    },
    "schedule_enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Enabled"
    },
    "schedule_timezone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Schedule Timezone"
    },
    "notifications": {
      "anyOf": [
        {
          "$ref": "#/$defs/CampaignNotificationsRequest"
        },
        {
          "type": "null"
        }
      ],
      "description": "Alert-notification settings saved in the same request. Omit (or send null) to leave them unchanged. Requires the alert_notifications.manage permission."
    }
  },
  "type": "object",
  "$defs": {
    "CampaignNotificationsRequest": {
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "inherit",
            "override",
            "silence"
          ],
          "title": "Mode",
          "description": "inherit: the organization's default destinations. override: only destination_ids. silence: no notifications."
        },
        "destination_ids": {
          "items": {
            "type": "string",
            "format": "uuid"
          },
          "type": "array",
          "title": "Destination Ids",
          "description": "Destinations for mode=override. Must be empty for other modes."
        },
        "routing_label_key": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64
            },
            {
              "type": "null"
            }
          ],
          "title": "Routing Label Key",
          "description": "Route by this scan label key on top of inherit or override: destinations with a label rule on the key receive only scans whose label value matches. Not allowed with silence."
        }
      },
      "type": "object",
      "required": [
        "mode"
      ],
      "title": "CampaignNotificationsRequest",
      "description": "Where alerts of this campaign are sent, saved together with the campaign."
    },
    "DiscoveryAdFormat": {
      "type": "string",
      "enum": [
        "banner",
        "pop",
        "video"
      ],
      "title": "DiscoveryAdFormat",
      "description": "An ad format a discovery campaign captures.\n\n``banner`` and ``video`` are ad slots on the page; ``pop`` covers both\npop-unders and tab-unders."
    },
    "RepeatMode": {
      "type": "string",
      "enum": [
        "isolated",
        "shared"
      ],
      "title": "RepeatMode",
      "description": "How the repeats of one ``url x country x device`` relate to each other.\n\nValue-compatible with scanning's ``RepeatModeType`` — campaigns owns\nits own copy because the write side must not import another domain's\npackage (``check-imports``), and only the value crosses the boundary."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/kaminari-ad-update-campaign-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.