{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-creative-asset-metadata-schema.json",
  "title": "CreativeAssetMetadata",
  "description": "CreativeAssets contains properties of a creative asset file which will be uploaded or has already been uploaded. Refer to the creative sample code for how to upload assets and insert a creative.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-creative-assets-api-openapi.yml#/components/schemas/CreativeAssetMetadata",
  "properties": {
    "richMedia": {
      "description": "True if the uploaded asset is a rich media asset. This is a read-only, auto-generated field.",
      "type": "boolean"
    },
    "counterCustomEvents": {
      "items": {
        "$ref": "#/$defs/CreativeCustomEvent"
      },
      "type": "array",
      "description": "List of counter events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset."
    },
    "detectedFeatures": {
      "type": "array",
      "items": {
        "enum": [
          "CSS_FONT_FACE",
          "CSS_BACKGROUND_SIZE",
          "CSS_BORDER_IMAGE",
          "CSS_BORDER_RADIUS",
          "CSS_BOX_SHADOW",
          "CSS_FLEX_BOX",
          "CSS_HSLA",
          "CSS_MULTIPLE_BGS",
          "CSS_OPACITY",
          "CSS_RGBA",
          "CSS_TEXT_SHADOW",
          "CSS_ANIMATIONS",
          "CSS_COLUMNS",
          "CSS_GENERATED_CONTENT",
          "CSS_GRADIENTS",
          "CSS_REFLECTIONS",
          "CSS_TRANSFORMS",
          "CSS_TRANSFORMS3D",
          "CSS_TRANSITIONS",
          "APPLICATION_CACHE",
          "CANVAS",
          "CANVAS_TEXT",
          "DRAG_AND_DROP",
          "HASH_CHANGE",
          "HISTORY",
          "AUDIO",
          "VIDEO",
          "INDEXED_DB",
          "INPUT_ATTR_AUTOCOMPLETE",
          "INPUT_ATTR_AUTOFOCUS",
          "INPUT_ATTR_LIST",
          "INPUT_ATTR_PLACEHOLDER",
          "INPUT_ATTR_MAX",
          "INPUT_ATTR_MIN",
          "INPUT_ATTR_MULTIPLE",
          "INPUT_ATTR_PATTERN",
          "INPUT_ATTR_REQUIRED",
          "INPUT_ATTR_STEP",
          "INPUT_TYPE_SEARCH",
          "INPUT_TYPE_TEL",
          "INPUT_TYPE_URL",
          "INPUT_TYPE_EMAIL",
          "INPUT_TYPE_DATETIME",
          "INPUT_TYPE_DATE",
          "INPUT_TYPE_MONTH",
          "INPUT_TYPE_WEEK",
          "INPUT_TYPE_TIME",
          "INPUT_TYPE_DATETIME_LOCAL",
          "INPUT_TYPE_NUMBER",
          "INPUT_TYPE_RANGE",
          "INPUT_TYPE_COLOR",
          "LOCAL_STORAGE",
          "POST_MESSAGE",
          "SESSION_STORAGE",
          "WEB_SOCKETS",
          "WEB_SQL_DATABASE",
          "WEB_WORKERS",
          "GEO_LOCATION",
          "INLINE_SVG",
          "SMIL",
          "SVG_HREF",
          "SVG_CLIP_PATHS",
          "TOUCH",
          "WEBGL",
          "SVG_FILTERS",
          "SVG_FE_IMAGE"
        ],
        "type": "string"
      },
      "description": "List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field."
    },
    "exitCustomEvents": {
      "description": "List of exit events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreativeCustomEvent"
      }
    },
    "warnedValidationRules": {
      "items": {
        "enum": [
          "CLICK_TAG_NON_TOP_LEVEL",
          "CLICK_TAG_MISSING",
          "CLICK_TAG_MORE_THAN_ONE",
          "CLICK_TAG_INVALID",
          "ORPHANED_ASSET",
          "PRIMARY_HTML_MISSING",
          "EXTERNAL_FILE_REFERENCED",
          "MRAID_REFERENCED",
          "ADMOB_REFERENCED",
          "FILE_TYPE_INVALID",
          "ZIP_INVALID",
          "LINKED_FILE_NOT_FOUND",
          "MAX_FLASH_VERSION_11",
          "NOT_SSL_COMPLIANT",
          "FILE_DETAIL_EMPTY",
          "ASSET_INVALID",
          "GWD_PROPERTIES_INVALID",
          "ENABLER_UNSUPPORTED_METHOD_DCM",
          "ASSET_FORMAT_UNSUPPORTED_DCM",
          "COMPONENT_UNSUPPORTED_DCM",
          "HTML5_FEATURE_UNSUPPORTED",
          "CLICK_TAG_IN_GWD",
          "CLICK_TAG_HARD_CODED",
          "SVG_INVALID",
          "CLICK_TAG_IN_RICH_MEDIA",
          "MISSING_ENABLER_REFERENCE"
        ],
        "type": "string"
      },
      "type": "array",
      "description": "Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - \"ADMOB_REFERENCED\" - \"ASSET_FORMAT_UNSUPPORTED_DCM\" - \"ASSET_INVALID\" - \"CLICK_TAG_HARD_CODED\" - \"CLICK_TAG_INVALID\" - \"CLICK_TAG_IN_GWD\" - \"CLICK_TAG_MISSING\" - \"CLICK_TAG_MORE_THAN_ONE\" - \"CLICK_TAG_NON_TOP_LEVEL\" - \"COMPONENT_UNSUPPORTED_DCM\" - \"ENABLER_UNSUPPORTED_METHOD_DCM\" - \"EXTERNAL_FILE_REFERENCED\" - \"FILE_DETAIL_EMPTY\" - \"FILE_TYPE_INVALID\" - \"GWD_PROPERTIES_INVALID\" - \"HTML5_FEATURE_UNSUPPORTED\" - \"LINKED_FILE_NOT_FOUND\" - \"MAX_FLASH_VERSION_11\" - \"MRAID_REFERENCED\" - \"NOT_SSL_COMPLIANT\" - \"ORPHANED_ASSET\" - \"PRIMARY_HTML_MISSING\" - \"SVG_INVALID\" - \"ZIP_INVALID\" "
    },
    "clickTags": {
      "description": "List of detected click tags for assets. This is a read-only, auto-generated field. This field is empty for a rich media asset.",
      "items": {
        "$ref": "#/$defs/ClickTag"
      },
      "type": "array"
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#creativeAssetMetadata\".",
      "type": "string"
    },
    "assetIdentifier": {
      "$ref": "#/$defs/CreativeAssetId",
      "description": "ID of the creative asset. This is a required field."
    },
    "timerCustomEvents": {
      "description": "List of timer events configured for the asset. This is a read-only, auto-generated field and only applicable to a rich media asset.",
      "items": {
        "$ref": "#/$defs/CreativeCustomEvent"
      },
      "type": "array"
    },
    "idDimensionValue": {
      "$ref": "#/$defs/DimensionValue",
      "description": "Dimension value for the numeric ID of the asset. This is a read-only, auto-generated field."
    },
    "id": {
      "description": "Numeric ID of the asset. This is a read-only, auto-generated field.",
      "format": "int64",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "ClickTag": {
      "description": "Creative Click Tag.",
      "properties": {
        "clickThroughUrl": {
          "$ref": "#/$defs/CreativeClickThroughUrl",
          "description": "Parameter value for the specified click tag. This field contains a click-through url."
        },
        "eventName": {
          "description": "Advertiser event name associated with the click tag. This field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.",
          "type": "string"
        },
        "name": {
          "description": "Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY creative assets, this field must match the value of the creative asset's creativeAssetId.name field.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreativeAssetId": {
      "description": "Creative Asset ID.",
      "type": "object",
      "properties": {
        "type": {
          "description": "Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE.",
          "enum": [
            "IMAGE",
            "FLASH",
            "VIDEO",
            "HTML",
            "HTML_IMAGE",
            "AUDIO"
          ],
          "type": "string"
        },
        "name": {
          "description": "Name of the creative asset. This is a required field while inserting an asset. After insertion, this assetIdentifier is used to identify the uploaded asset. Characters in the name must be alphanumeric or one of the following: \".-_ \". Spaces are allowed.",
          "type": "string"
        }
      }
    },
    "CreativeClickThroughUrl": {
      "type": "object",
      "properties": {
        "landingPageId": {
          "format": "int64",
          "description": "ID of the landing page for the click-through URL.",
          "type": "string"
        },
        "computedClickThroughUrl": {
          "type": "string",
          "description": "Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: - If landingPageId is specified then that landing page's URL is assigned to this field. - Otherwise, the customClickThroughUrl is assigned to this field. "
        },
        "customClickThroughUrl": {
          "description": "Custom click-through URL. Applicable if the landingPageId field is left unset.",
          "type": "string"
        }
      },
      "description": "Click-through URL"
    },
    "CreativeCustomEvent": {
      "description": "Creative Custom Event.",
      "properties": {
        "videoReportingId": {
          "description": "Video reporting ID, used to differentiate multiple videos in a single creative. This is a read-only field.",
          "type": "string"
        },
        "id": {
          "type": "string",
          "description": "ID of this event. This is a required field and should not be modified after insertion.",
          "format": "int64"
        },
        "advertiserCustomEventType": {
          "enum": [
            "ADVERTISER_EVENT_TIMER",
            "ADVERTISER_EVENT_EXIT",
            "ADVERTISER_EVENT_COUNTER"
          ],
          "type": "string",
          "description": "Type of the event. This is a read-only field."
        },
        "artworkType": {
          "description": "Artwork type used by the creative.This is a read-only field.",
          "enum": [
            "ARTWORK_TYPE_FLASH",
            "ARTWORK_TYPE_HTML5",
            "ARTWORK_TYPE_MIXED",
            "ARTWORK_TYPE_IMAGE"
          ],
          "type": "string"
        },
        "targetType": {
          "enum": [
            "TARGET_BLANK",
            "TARGET_TOP",
            "TARGET_SELF",
            "TARGET_PARENT",
            "TARGET_POPUP"
          ],
          "description": "Target type used by the event.",
          "type": "string"
        },
        "popupWindowProperties": {
          "$ref": "#/$defs/PopupWindowProperties",
          "description": "Properties for rich media popup windows. This field is used only for exit events."
        },
        "advertiserCustomEventName": {
          "type": "string",
          "description": "User-entered name for the event."
        },
        "artworkLabel": {
          "type": "string",
          "description": "Artwork label column, used to link events in Campaign Manager back to events in Studio. This is a required field and should not be modified after insertion."
        },
        "exitClickThroughUrl": {
          "$ref": "#/$defs/CreativeClickThroughUrl",
          "description": "Exit click-through URL for the event. This field is used only for exit events."
        },
        "advertiserCustomEventId": {
          "format": "int64",
          "type": "string",
          "description": "Unique ID of this event used by Reporting and Data Transfer. This is a read-only field."
        }
      },
      "type": "object"
    },
    "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"
        }
      }
    },
    "OffsetPosition": {
      "description": "Offset Position.",
      "properties": {
        "top": {
          "description": "Offset distance from top side of an asset or a window.",
          "format": "int32",
          "type": "integer"
        },
        "left": {
          "type": "integer",
          "format": "int32",
          "description": "Offset distance from left side of an asset or a window."
        }
      },
      "type": "object"
    },
    "PopupWindowProperties": {
      "description": "Popup Window Properties.",
      "type": "object",
      "properties": {
        "showToolBar": {
          "type": "boolean",
          "description": "Whether to display the browser tool bar."
        },
        "showAddressBar": {
          "type": "boolean",
          "description": "Whether to display the browser address bar."
        },
        "offset": {
          "$ref": "#/$defs/OffsetPosition",
          "description": "Upper-left corner coordinates of the popup window. Applicable if positionType is COORDINATES."
        },
        "positionType": {
          "description": "Popup window position either centered or at specific coordinate.",
          "enum": [
            "CENTER",
            "COORDINATES"
          ],
          "type": "string"
        },
        "title": {
          "type": "string",
          "description": "Title of popup window."
        },
        "showScrollBar": {
          "type": "boolean",
          "description": "Whether to display the browser scroll bar."
        },
        "showMenuBar": {
          "description": "Whether to display the browser menu bar.",
          "type": "boolean"
        },
        "dimension": {
          "$ref": "#/$defs/Size",
          "description": "Popup dimension for a creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID"
        },
        "showStatusBar": {
          "description": "Whether to display the browser status bar.",
          "type": "boolean"
        }
      }
    },
    "Size": {
      "description": "Represents the dimensions of ads, placements, creatives, or creative assets.",
      "type": "object",
      "properties": {
        "height": {
          "type": "integer",
          "description": "Height of this size. Acceptable values are 0 to 32767, inclusive.",
          "format": "int32"
        },
        "id": {
          "format": "int64",
          "type": "string",
          "description": "ID of this size. This is a read-only, auto-generated field."
        },
        "iab": {
          "type": "boolean",
          "description": "IAB standard size. This is a read-only, auto-generated field."
        },
        "kind": {
          "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#size\".",
          "type": "string"
        },
        "width": {
          "format": "int32",
          "type": "integer",
          "description": "Width of this size. Acceptable values are 0 to 32767, inclusive."
        }
      }
    }
  }
}