- [Resource: CreativeTemplate](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate.SCHEMA_REPRESENTATION)
- [CreativeTemplateStatus](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateStatus)
- [CreativeTemplateType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateType)
- [CreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [AssetCreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#AssetCreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#AssetCreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [MimeType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#MimeType)
- [ListStringCreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#ListStringCreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#ListStringCreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [VariableChoice](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#VariableChoice)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#VariableChoice.SCHEMA_REPRESENTATION)
- [LongCreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#LongCreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#LongCreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [StringCreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#StringCreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#StringCreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [UrlCreativeTemplateVariable](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#UrlCreativeTemplateVariable)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#UrlCreativeTemplateVariable.SCHEMA_REPRESENTATION)
- [CreativeTemplateVariableUrlType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariableUrlType)
- [Methods](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#METHODS_SUMMARY)

## Resource: CreativeTemplate

A template that can be used to create a \[TemplateCreative\]\[\].

| JSON representation |
|---|
| ``` { "name": string, "variables": [ { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariable`) } ], "displayName": string, "description": string, "snippet": string, "status": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateStatus`), "type": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateType`), "interstitial": boolean, "nativeEligible": boolean, "nativeVideoEligible": boolean, "safeFrameCompatible": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the creative template. Format: `networks/{networkCode}/creativeTemplates/{creative_template_id}` |
| `variables[]` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariable`)`` Required. The list of creative template variables. |
| `displayName` | `string` Required. The display name of the creative template. This has a maximum length of 255 characters. |
| `description` | `string` Optional. The description of the creative template. |
| `snippet` | `string` Required. The code snippet of the creative template, with placeholders for the associated variables. |
| `status` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateStatus`)`` Output only. The status of the creative template. This attribute is assigned by Google. |
| `type` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateType`)`` Optional. The type of the creative template. Users can only create or update `CreativeTemplateType.CUSTOM` templates. |
| `interstitial` | `boolean` Optional. `True` if this creative template produces out-of-page creatives. Creative templates with this setting enabled must include the viewed impression macro. |
| `nativeEligible` | `boolean` Optional. `True` if this creative template produces native-eligible creatives. |
| `nativeVideoEligible` | `boolean` Optional. `True` if this creative template produces native video-eligible creatives. |
| `safeFrameCompatible` | `boolean` Optional. Whether the Creative produced is compatible for SafeFrame rendering. This attribute defaults to `True`. |

## CreativeTemplateStatus

Describes status of the creative template

| Enums ||
|---|---|
| `CREATIVE_TEMPLATE_STATUS_UNSPECIFIED` | Default value. This value is unused. |
| `ACTIVE` | The CreativeTemplate is active |
| `DELETED` | The CreativeTemplate is deleted. Creatives created from this CreativeTemplate can no longer serve. |
| `INACTIVE` | The CreativeTemplate is inactive. Users cannot create new creatives from this template, but existing ones can be edited and continue to serve |

## CreativeTemplateType

Describes type of the creative template.

| Enums ||
|---|---|
| `CREATIVE_TEMPLATE_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `STANDARD` | Creative templates that are included in Ad Manager by default. |
| `CUSTOM` | Creative templates created by an administrator or other user in the network. |

## CreativeTemplateVariable

Represents a variable defined in a creative template.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "assetVariable": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#AssetCreativeTemplateVariable`) }, "listStringVariable": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#ListStringCreativeTemplateVariable`) }, "longVariable": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#LongCreativeTemplateVariable`) }, "stringVariable": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#StringCreativeTemplateVariable`) }, "urlVariable": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#UrlCreativeTemplateVariable`) } // End of mutually exclusive fields. "label": string, "uniqueDisplayName": string, "description": string, "required": boolean } ``` |

| Fields ||
|---|---|
| The specific type of variable represented by this `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariable`. Exactly one must be set. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `assetVariable` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#AssetCreativeTemplateVariable`)`` Optional. Represents a file asset variable defined in a creative template. |
| `listStringVariable` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#ListStringCreativeTemplateVariable`)`` Optional. Represents a list variable defined in a creative template. |
| `longVariable` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#LongCreativeTemplateVariable`)`` Optional. Represents a long variable defined in a creative template. |
| `stringVariable` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#StringCreativeTemplateVariable`)`` Optional. Represents a string variable defined in a creative template. |
| `urlVariable` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#UrlCreativeTemplateVariable`)`` Optional. Represents a url variable defined in a creative template. |
| End of mutually exclusive fields. ||
| `label` | `string` Required. Label that is displayed to users when creating from the creative template. This has a maximum length of 127 characters. |
| `uniqueDisplayName` | `string` Output only. Unique name used to identify the variable. This attribute is assigned by Google when a creative template variable is created. |
| `description` | `string` Required. A descriptive help text that is displayed to users along with the label. This attribute has a maximum length of 255 characters. |
| `required` | `boolean` Optional. `True` if this variable is required to be filled in by users when creating a creative from the creative template. |

## AssetCreativeTemplateVariable

Represents a file asset variable defined in a creative template.

Use \[AssetCreativeTemplateVariableValue\]\[\] to specify the value for this variable when creating a \[TemplateCreative\]\[\] from a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate`.

| JSON representation |
|---|
| ``` { "mimeTypes": [ enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#MimeType`) ] } ``` |

| Fields ||
|---|---|
| `mimeTypes[]` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#MimeType`)`` Optional. The set of allowed MIME types. If unspecified, all MIME types are allowed. |

## MimeType

Different MIME types that the asset variable supports.

| Enums ||
|---|---|
| `MIME_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `JPG` | The `image/jpeg` MIME type. |
| `PNG` | The `image/png` MIME type. |
| `GIF` | The `image/gif` MIME type. |

## ListStringCreativeTemplateVariable

Represents a list variable defined in a creative template. This is similar to `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#StringCreativeTemplateVariable`, except that there are possible choices to choose from.

Use \[StringCreativeTemplateVariableValue\]\[\] to specify the value for this variable when creating a \[TemplateCreative\]\[\] from a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate`.

| JSON representation |
|---|
| ``` { "choices": [ { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#VariableChoice`) } ], "defaultValue": string, "sampleValue": string, "allowOtherChoice": boolean } ``` |

| Fields ||
|---|---|
| `choices[]` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#VariableChoice`)`` Optional. The selectable values that the user can choose from. |
| `defaultValue` | `string` Optional. Default value to be filled in when creating creatives from the creative template. |
| `sampleValue` | `string` Optional. Sample value that is used when previewing the template in the UI. |
| `allowOtherChoice` | `boolean` Optional. `True` if a user can specify an 'other' value. For example, if a variable called backgroundColor is defined as a list with values: red, green, blue, this boolean can be set to allow a user to enter a value not on the list such as purple. |

## VariableChoice

Stores variable choices selectable by users.

| JSON representation |
|---|
| ``` { "label": string, "value": string } ``` |

| Fields ||
|---|---|
| `label` | `string` Required. A label is displayed to users when creating a \[TemplateCreative\]\[\]. This attribute is intended to be more descriptive than value. This attribute has a maximum length of 255 characters. |
| `value` | `string` Required. When creating a \[TemplateCreative\]\[\], the value in \[StringCreativeTemplateVariableValue\]\[\] should match this value, if you intend to select this value. This attribute has a maximum length of 255 characters. |

## LongCreativeTemplateVariable

Represents a long variable defined in a creative template.

Use \[LongCreativeTemplateVariableValue\]\[\] to specify the value for this variable when creating \[TemplateCreative\]\[\] from a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate`.

| JSON representation |
|---|
| ``` { "defaultValue": string, "sampleValue": string } ``` |

| Fields ||
|---|---|
| `defaultValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Default value to be filled in when creating creatives from the creative template. |
| `sampleValue` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Sample value that is used when previewing the template in the UI. |

## StringCreativeTemplateVariable

Represents a string variable defined in a creative template.

Use \[StringCreativeTemplateVariableValue\]\[\] to specify the value for this variable when creating \[TemplateCreative\]\[\] from a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate`.

| JSON representation |
|---|
| ``` { "defaultValue": string, "sampleValue": string } ``` |

| Fields ||
|---|---|
| `defaultValue` | `string` Optional. Default value to be filled in when creating creatives from the creative template. |
| `sampleValue` | `string` Optional. Sample value that is used when previewing the template in the UI. |

## UrlCreativeTemplateVariable

Represents a url variable defined in a creative template.

Use \[UrlCreativeTemplateVariableValue\]\[\] to specify the value for this variable when creating a \[TemplateCreative\]\[\] from a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplate`.

| JSON representation |
|---|
| ``` { "defaultValue": string, "sampleValue": string, "urlType": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariableUrlType`) } ``` |

| Fields ||
|---|---|
| `defaultValue` | `string` Optional. Default value to be filled in when creating creatives from the creative template. |
| `sampleValue` | `string` Optional. Sample value that is used when previewing the template in the UI. |
| `urlType` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates#CreativeTemplateVariableUrlType`)`` Optional. The type of URL that this variable represents. Different types of URLs may be handled differently at rendering time. |

## CreativeTemplateVariableUrlType

Types of URLs that a UrlCreativeTemplateVariable can represent.

| Enums ||
|---|---|
| `CREATIVE_TEMPLATE_VARIABLE_URL_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `CLICK_TRACKER` | Click tracking URL. |
| `DEEPLINK` | Deep-link URL. |
| `IMPRESSION_TRACKER` | Impression tracking URL. |
| `STANDARD_HTTP` | Standard HTTP URL. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates/get` | Retrieves a `CreativeTemplate` object. |
| ### `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeTemplates/list` | Lists `CreativeTemplate` objects. |