{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-event-tag-schema.json",
  "title": "EventTag",
  "description": "Contains properties of an event tag.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-event-tags-api-openapi.yml#/components/schemas/EventTag",
  "properties": {
    "subaccountId": {
      "type": "string",
      "format": "int64",
      "description": "Subaccount ID of this event tag. This is a read-only field that can be left blank."
    },
    "url": {
      "description": "Payload URL for this event tag. The URL on a click-through event tag should have a landing page URL appended to the end of it. This field is required on insertion.",
      "type": "string"
    },
    "enabledByDefault": {
      "description": "Whether this event tag should be automatically enabled for all of the advertiser's campaigns and ads.",
      "type": "boolean"
    },
    "kind": {
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#eventTag\"."
    },
    "campaignIdDimensionValue": {
      "$ref": "#/$defs/DimensionValue",
      "description": "Dimension value for the ID of the campaign. This is a read-only, auto-generated field."
    },
    "advertiserIdDimensionValue": {
      "$ref": "#/$defs/DimensionValue",
      "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field."
    },
    "status": {
      "description": "Status of this event tag. Must be ENABLED for this event tag to fire. This is a required field.",
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ]
    },
    "type": {
      "enum": [
        "IMPRESSION_IMAGE_EVENT_TAG",
        "IMPRESSION_JAVASCRIPT_EVENT_TAG",
        "CLICK_THROUGH_EVENT_TAG"
      ],
      "description": "Event tag type. Can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking. This is a required field.",
      "type": "string"
    },
    "urlEscapeLevels": {
      "type": "integer",
      "description": "Number of times the landing page URL should be URL-escaped before being appended to the click-through event tag URL. Only applies to click-through event tags as specified by the event tag type.",
      "format": "int32"
    },
    "name": {
      "type": "string",
      "description": "Name of this event tag. This is a required field and must be less than 256 characters long."
    },
    "sslCompliant": {
      "type": "boolean",
      "description": "Whether this tag is SSL-compliant or not. This is a read-only field."
    },
    "campaignId": {
      "format": "int64",
      "type": "string",
      "description": "Campaign ID of this event tag. This field or the advertiserId field is required on insertion."
    },
    "excludeFromAdxRequests": {
      "description": "Whether to remove this event tag from ads that are trafficked through Display & Video 360 to Ad Exchange. This may be useful if the event tag uses a pixel that is unapproved for Ad Exchange bids on one or more networks, such as the Google Display Network.",
      "type": "boolean"
    },
    "accountId": {
      "description": "Account ID of this event tag. This is a read-only field that can be left blank.",
      "format": "int64",
      "type": "string"
    },
    "siteIds": {
      "items": {
        "type": "string",
        "format": "int64"
      },
      "description": "Filter list of site IDs associated with this event tag. The siteFilterType determines whether this is a allowlist or blocklist filter.",
      "type": "array"
    },
    "advertiserId": {
      "description": "Advertiser ID of this event tag. This field or the campaignId field is required on insertion.",
      "format": "int64",
      "type": "string"
    },
    "id": {
      "type": "string",
      "format": "int64",
      "description": "ID of this event tag. This is a read-only, auto-generated field."
    },
    "siteFilterType": {
      "enum": [
        "ALLOWLIST",
        "BLOCKLIST"
      ],
      "type": "string",
      "description": "Site filter type for this event tag. If no type is specified then the event tag will be applied to all sites."
    }
  },
  "type": "object",
  "$defs": {
    "DimensionValue": {
      "type": "object",
      "description": "Represents a DimensionValue resource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID associated with the value if available."
        },
        "value": {
          "type": "string",
          "description": "The value of the dimension."
        },
        "dimensionName": {
          "description": "The name of the dimension.",
          "type": "string"
        },
        "matchType": {
          "type": "string",
          "enum": [
            "EXACT",
            "BEGINS_WITH",
            "CONTAINS",
            "WILDCARD_EXPRESSION"
          ],
          "description": "Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT."
        },
        "etag": {
          "type": "string",
          "description": "The eTag of this response for caching purposes."
        },
        "kind": {
          "description": "The kind of resource this is, in this case dfareporting#dimensionValue.",
          "type": "string"
        }
      }
    }
  }
}