# type DaiAuthenticationKey (v202505)

**Service** **DaiAuthenticationKeyService** **Dependencies** [DaiAuthenticationKeyPage](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKeyPage) [createDaiAuthenticationKeys()](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService#createDaiAuthenticationKeys) [updateDaiAuthenticationKeys()](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService#updateDaiAuthenticationKeys) ▼ **DaiAuthenticationKey**

A `DaiAuthenticationKey` is used to authenticate stream requests to the IMA SDK API.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202505`

| ## Field ||
|---|---|
| ### `id` | ` xsd:long` The unique ID of the [DaiAuthenticationKey](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKey). This value is read-only and is assigned by Google. |
| ### `key` | ` xsd:string` The value of the secure key. This value is read-only and is assigned by Google. |
| ### `creationDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DateTime ` The date and time this [DaiAuthenticationKey](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKey) was created. This value is read-only and is assigned by Google. |
| ### `status` | ` https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKeyStatus ` The status of this [DaiAuthenticationKey](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKey). This value is read-only and is assigned by Google. DAI authentication keys are created in the [DaiAuthenticationKeyStatus.ACTIVE](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKeyStatus#ACTIVE) state. The status can only be modified through the [DaiAuthenticationKeyService.performDaiAuthenticationKeyAction](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService#performDaiAuthenticationKeyAction) method. Only active keys will be accepted by the IMA SDK API as valid. *** ** * ** *** **Enumerations** `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. `ACTIVE` :   Indicates that the API key is actively in use and that the IMA SDK API should accept it as a valid key in requests. `INACTIVE` :   Indicates that the API key is no longer is use and that the IMA SDK API should not accept it as a valid key in requests. <br /> |
| ### `name` | ` xsd:string` The name for this [DaiAuthenticationKey](https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKey). |
| ### `keyType` | ` https://developers.google.com/ad-manager/api/reference/v202505/DaiAuthenticationKeyService.DaiAuthenticationKeyType ` The type of this key, which determines how it should be used on stream create requests. *** ** * ** *** **Enumerations** `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. `API` :   Indicates that the key is a standard API key and should be used with the api-key SDK parameter when authenticating stream create requests. `HMAC` :   Indicates that the key is an HMAC key and should be used to generate a signature for the stream create request with the auth-token SDK parameter. <br /> |