{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-ads/json-schema/google-ads-ingest-users-request-schema.json",
  "title": "IngestUsersRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-ads-datamanager-users-api-openapi.yml#/components/schemas/IngestUsersRequest",
  "properties": {
    "encryptionInfo": {
      "$ref": "#/$defs/EncryptionInfo"
    },
    "validateOnly": {
      "type": "boolean"
    },
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/User"
      }
    },
    "destinations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Destination"
      }
    },
    "encoding": {
      "type": "string",
      "enum": [
        "ENCODING_UNSPECIFIED",
        "HEX",
        "BASE64"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "AddressInfo": {
      "properties": {
        "addressLine": {
          "type": "string"
        },
        "familyName": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "administrativeArea": {
          "type": "string"
        },
        "regionCode": {
          "type": "string"
        },
        "givenName": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "AwsWrappedKeyInfo": {
      "properties": {
        "encryptedDek": {
          "type": "string"
        },
        "kekUri": {
          "type": "string"
        },
        "roleArn": {
          "type": "string"
        },
        "keyType": {
          "type": "string",
          "enum": [
            "KEY_TYPE_UNSPECIFIED",
            "XCHACHA20_POLY1305"
          ]
        }
      },
      "type": "object"
    },
    "CoordinatorKeyInfo": {
      "properties": {
        "keyId": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Destination": {
      "properties": {
        "reference": {
          "type": "string"
        },
        "productDestinationId": {
          "type": "string"
        },
        "loginAccount": {
          "$ref": "#/$defs/ProductAccount"
        },
        "linkedAccount": {
          "$ref": "#/$defs/ProductAccount"
        },
        "operatingAccount": {
          "$ref": "#/$defs/ProductAccount"
        }
      },
      "type": "object"
    },
    "EncryptionInfo": {
      "properties": {
        "coordinatorKeyInfo": {
          "$ref": "#/$defs/CoordinatorKeyInfo"
        },
        "gcpWrappedKeyInfo": {
          "$ref": "#/$defs/GcpWrappedKeyInfo"
        },
        "awsWrappedKeyInfo": {
          "$ref": "#/$defs/AwsWrappedKeyInfo"
        }
      },
      "type": "object"
    },
    "GcpWrappedKeyInfo": {
      "properties": {
        "keyType": {
          "type": "string",
          "enum": [
            "KEY_TYPE_UNSPECIFIED",
            "XCHACHA20_POLY1305"
          ]
        },
        "kekUri": {
          "type": "string"
        },
        "wipProvider": {
          "type": "string"
        },
        "encryptedDek": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "MobileData": {
      "properties": {
        "mobileIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object"
    },
    "ProductAccount": {
      "type": "object",
      "properties": {
        "product": {
          "type": "string",
          "enum": [
            "PRODUCT_UNSPECIFIED",
            "GOOGLE_ADS",
            "DISPLAY_VIDEO_PARTNER",
            "DISPLAY_VIDEO_ADVERTISER",
            "DATA_PARTNER"
          ],
          "deprecated": true
        },
        "accountId": {
          "type": "string"
        },
        "accountType": {
          "type": "string",
          "enum": [
            "ACCOUNT_TYPE_UNSPECIFIED",
            "GOOGLE_ADS",
            "DISPLAY_VIDEO_PARTNER",
            "DISPLAY_VIDEO_ADVERTISER",
            "DATA_PARTNER",
            "GOOGLE_ANALYTICS_PROPERTY",
            "GOOGLE_AD_MANAGER_AUDIENCE_LINK",
            "FLOODLIGHT_CONFIG",
            "GOOGLE_AD_MANAGER"
          ]
        }
      }
    },
    "User": {
      "properties": {
        "userData": {
          "$ref": "#/$defs/UserData"
        },
        "mobileData": {
          "$ref": "#/$defs/MobileData"
        }
      },
      "type": "object"
    },
    "UserData": {
      "properties": {
        "userIdentifiers": {
          "items": {
            "$ref": "#/$defs/UserIdentifier"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "UserIdentifier": {
      "type": "object",
      "properties": {
        "phoneNumber": {
          "type": "string"
        },
        "emailAddress": {
          "type": "string"
        },
        "address": {
          "$ref": "#/$defs/AddressInfo"
        }
      }
    }
  }
}