{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-account-user-profile-schema.json",
  "title": "AccountUserProfile",
  "description": "AccountUserProfiles contains properties of a Campaign Manager user profile. This resource is specifically for managing user profiles, whereas UserProfiles is for accessing the API.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-account-user-profiles-api-openapi.yml#/components/schemas/AccountUserProfile",
  "type": "object",
  "properties": {
    "id": {
      "description": "ID of the user profile. This is a read-only, auto-generated field.",
      "type": "string",
      "format": "int64"
    },
    "subaccountId": {
      "description": "Subaccount ID of the user profile. This is a read-only field that can be left blank.",
      "type": "string",
      "format": "int64"
    },
    "locale": {
      "description": "Locale of the user profile. This is a required field. Acceptable values are: - \"cs\" (Czech) - \"de\" (German) - \"en\" (English) - \"en-GB\" (English United Kingdom) - \"es\" (Spanish) - \"fr\" (French) - \"it\" (Italian) - \"ja\" (Japanese) - \"ko\" (Korean) - \"pl\" (Polish) - \"pt-BR\" (Portuguese Brazil) - \"ru\" (Russian) - \"sv\" (Swedish) - \"tr\" (Turkish) - \"zh-CN\" (Chinese Simplified) - \"zh-TW\" (Chinese Traditional) ",
      "type": "string"
    },
    "siteFilter": {
      "$ref": "#/$defs/ObjectFilter",
      "description": "Filter that describes which sites are visible to the user profile."
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#accountUserProfile\".",
      "type": "string"
    },
    "userRoleFilter": {
      "$ref": "#/$defs/ObjectFilter",
      "description": "Filter that describes which user roles are visible to the user profile."
    },
    "advertiserFilter": {
      "$ref": "#/$defs/ObjectFilter",
      "description": "Filter that describes which advertisers are visible to the user profile."
    },
    "comments": {
      "description": "Comments for this user profile.",
      "type": "string"
    },
    "userAccessType": {
      "description": "User type of the user profile. This is a read-only field that can be left blank.",
      "enum": [
        "NORMAL_USER",
        "SUPER_USER",
        "INTERNAL_ADMINISTRATOR",
        "READ_ONLY_SUPER_USER"
      ],
      "type": "string"
    },
    "accountId": {
      "type": "string",
      "description": "Account ID of the user profile. This is a read-only field that can be left blank.",
      "format": "int64"
    },
    "active": {
      "description": "Whether this user profile is active. This defaults to false, and must be set true on insert for the user profile to be usable.",
      "type": "boolean"
    },
    "campaignFilter": {
      "$ref": "#/$defs/ObjectFilter",
      "description": "Filter that describes which campaigns are visible to the user profile."
    },
    "name": {
      "description": "Name of the user profile. This is a required field. Must be less than 64 characters long, must be globally unique, and cannot contain whitespace or any of the following characters: \"&;<>\"#%,\".",
      "type": "string"
    },
    "email": {
      "type": "string",
      "description": "Email of the user profile. The email address must be linked to a Google Account. This field is required on insertion and is read-only after insertion."
    },
    "userRoleId": {
      "description": "User role ID of the user profile. This is a required field.",
      "format": "int64",
      "type": "string"
    },
    "traffickerType": {
      "enum": [
        "INTERNAL_NON_TRAFFICKER",
        "INTERNAL_TRAFFICKER",
        "EXTERNAL_TRAFFICKER"
      ],
      "type": "string",
      "description": "Trafficker type of this user profile. This is a read-only field."
    }
  },
  "$defs": {
    "ObjectFilter": {
      "type": "object",
      "properties": {
        "kind": {
          "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#objectFilter\".",
          "type": "string"
        },
        "objectIds": {
          "description": "Applicable when status is ASSIGNED. The user has access to objects with these object IDs.",
          "items": {
            "format": "int64",
            "type": "string"
          },
          "type": "array"
        },
        "status": {
          "description": "Status of the filter. NONE means the user has access to none of the objects. ALL means the user has access to all objects. ASSIGNED means the user has access to the objects with IDs in the objectIds list.",
          "enum": [
            "NONE",
            "ASSIGNED",
            "ALL"
          ],
          "type": "string"
        }
      },
      "description": "Object Filter."
    }
  }
}