{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-ads/json-schema/google-ads-user-list-direct-license-schema.json",
  "title": "UserListDirectLicense",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-ads-datamanager-account-types-api-openapi.yml#/components/schemas/UserListDirectLicense",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "USER_LIST_LICENSE_STATUS_UNSPECIFIED",
        "USER_LIST_LICENSE_STATUS_ENABLED",
        "USER_LIST_LICENSE_STATUS_DISABLED"
      ]
    },
    "userListDisplayName": {
      "readOnly": true,
      "type": "string"
    },
    "clientAccountType": {
      "type": "string",
      "enum": [
        "USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_UNKNOWN",
        "USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_ADS",
        "USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_PARTNER",
        "USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_DISPLAY_VIDEO_ADVERTISER",
        "USER_LIST_LICENSE_CLIENT_ACCOUNT_TYPE_GOOGLE_AD_MANAGER_AUDIENCE_LINK"
      ]
    },
    "name": {
      "type": "string"
    },
    "pricing": {
      "$ref": "#/$defs/UserListLicensePricing"
    },
    "clientAccountId": {
      "format": "int64",
      "type": "string"
    },
    "userListId": {
      "format": "int64",
      "type": "string"
    },
    "clientAccountDisplayName": {
      "readOnly": true,
      "type": "string"
    },
    "historicalPricings": {
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/UserListLicensePricing"
      },
      "type": "array"
    },
    "metrics": {
      "$ref": "#/$defs/UserListLicenseMetrics"
    }
  },
  "type": "object",
  "$defs": {
    "UserListLicenseMetrics": {
      "type": "object",
      "properties": {
        "endDate": {
          "format": "int64",
          "type": "string",
          "readOnly": true
        },
        "impressionCount": {
          "format": "int64",
          "type": "string",
          "readOnly": true
        },
        "revenueUsdMicros": {
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "startDate": {
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "clickCount": {
          "type": "string",
          "format": "int64",
          "readOnly": true
        }
      }
    },
    "UserListLicensePricing": {
      "type": "object",
      "properties": {
        "currencyCode": {
          "type": "string"
        },
        "pricingId": {
          "format": "int64",
          "type": "string",
          "readOnly": true
        },
        "buyerApprovalState": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "USER_LIST_PRICING_BUYER_APPROVAL_STATE_UNSPECIFIED",
            "PENDING",
            "APPROVED",
            "REJECTED"
          ]
        },
        "costMicros": {
          "format": "int64",
          "type": "string"
        },
        "pricingActive": {
          "readOnly": true,
          "type": "boolean"
        },
        "endTime": {
          "type": "string",
          "format": "google-datetime"
        },
        "costType": {
          "type": "string",
          "enum": [
            "USER_LIST_PRICING_COST_TYPE_UNSPECIFIED",
            "CPC",
            "CPM",
            "MEDIA_SHARE"
          ]
        },
        "startTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true
        },
        "maxCostMicros": {
          "type": "string",
          "format": "int64"
        }
      }
    }
  }
}