- [Resource: DaiAuthenticationKey](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKey)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKey.SCHEMA_REPRESENTATION)
- [DaiAuthenticationKeyStatus](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyStatus)
- [DaiAuthenticationKeyType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyType)
- [Methods](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#METHODS_SUMMARY)

## Resource: DaiAuthenticationKey

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

| JSON representation |
|---|
| ``` { "name": string, "status": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyStatus`), "displayName": string, "keyType": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the `DaiAuthenticationKey`. Format: `networks/{networkCode}/daiAuthenticationKeys/{daiAuthenticationKey}` |
| `status` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyStatus`)`` Output only. The status of this DaiAuthenticationKey. DAI authentication keys are created in the `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyStatus.ENUM_VALUES.ACTIVE` state. Only active keys will be accepted by the IMA SDK API as valid. |
| `displayName` | `string` Required. The name for this DaiAuthenticationKey. |
| `keyType` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys#DaiAuthenticationKeyType`)`` Optional. The type of this key, which determines how it should be used on stream create requests. |

## DaiAuthenticationKeyStatus

Statuses associated with DaiAuthenticationKey objects.

| Enums ||
|---|---|
| `DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED` | Default value. This value is unused. |
| `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. |

## DaiAuthenticationKeyType

Key types associated with DaiAuthenticationKey objects.

| Enums ||
|---|---|
| `DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `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. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/batchActivate` | Activates a list of `DaiAuthenticationKey` objects. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/batchCreate` | Batch creates `DaiAuthenticationKey` objects. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/batchDeactivate` | Deactivates a list of `DaiAuthenticationKey` objects. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/batchUpdate` | Batch updates `DaiAuthenticationKey` objects. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/create` | Creates a `DaiAuthenticationKey` object. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/get` | Retrieves a `DaiAuthenticationKey` object. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/list` | Lists `DaiAuthenticationKey` objects. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.daiAuthenticationKeys/patch` | Updates a `DaiAuthenticationKey` object. |