- [Resource: CreativeWrapper](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapper)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapper.SCHEMA_REPRESENTATION)
- [CreativeWrapperType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType)
- [CreativeWrapperOrdering](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperOrdering)
- [CreativeWrapperStatus](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperStatus)
- [Methods](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#METHODS_SUMMARY)

## Resource: CreativeWrapper

A `CreativeWrapper` allows the wrapping of HTML snippets to be served along with Creative objects.

`CreativeWrapper` must be associated with a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.labels#LabelType.ENUM_VALUES.CREATIVE_WRAPPER` label and applied to ad units by `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.adUnits#AdUnit.FIELDS.applied_labels`.

| JSON representation |
|---|
| ``` { "name": string, "label": string, "videoTrackingUrls": [ { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/VideoTrackingUrl`) } ], "creativeWrapperType": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType`), "headerCreative": string, "footerCreative": string, "htmlHeader": string, "htmlFooter": string, "ampHeader": string, "ampFooter": string, "thirdPartyDataDeclaration": { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/ThirdPartyDataDeclaration`) }, "ordering": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperOrdering`), "status": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperStatus`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the `CreativeWrapper`. Format: `networks/{networkCode}/creativeWrappers/{creativeWrapperId}` |
| `label` | `string` Required. Immutable. The resource name of the `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.labels#Label`. Format:`networks/{networkCode}/label/{labelId}` |
| `videoTrackingUrls[]` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/VideoTrackingUrl`)`` Optional. The video tracking URLs that this `CreativeWrapper` delivers. This field is required if the `creativeWrapperType` is `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType.ENUM_VALUES.VIDEO_TRACKING_URL` and ignored otherwise. |
| `creativeWrapperType` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType`)`` Required. The `creativeWrapperType`. If the `creativeWrapperType` is `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType.ENUM_VALUES.VIDEO_TRACKING_URL`, the `videoTrackingUrls` field must be set. If the `creativeWrapperType` is `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType.ENUM_VALUES.HTML`, either the header or footer field must be set. |
| `headerCreative` | `string` Output only. The resource name of the `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creatives#Creative`. Format: `networks/{networkCode}/creative/{creativeId}` |
| `footerCreative` | `string` Output only. The resource name of the `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creatives#Creative`. Format: `networks/{networkCode}/creative/{creativeId}` |
| `htmlHeader` | `string` Optional. The header HTML snippet that this `CreativeWrapper` delivers. |
| `htmlFooter` | `string` Optional. The footer HTML snippet that this `CreativeWrapper` delivers. |
| `ampHeader` | `string` Optional. The header AMP snippet that this `CreativeWrapper` delivers. |
| `ampFooter` | `string` Optional. The footer AMP snippet that this `CreativeWrapper` delivers. |
| `thirdPartyDataDeclaration` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/ThirdPartyDataDeclaration`)`` Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. The third party companies that are associated with this `CreativeWrapper` and are present in the `htmlHeader` or `htmlFooter`. This field is only applicable when the `creativeWrapperType` is `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperType.ENUM_VALUES.HTML`. |
| `ordering` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperOrdering`)`` Optional. If there are multiple wrappers for a `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creatives#Creative`, then ordering defines the order in which the HTML snippets are rendered. |
| `status` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.creativeWrappers#CreativeWrapperStatus`)`` Output only. The status of the `CreativeWrapper`. |

## CreativeWrapperType

The type of a CreativeWrapper which is specified on the CreativeWrapper.

| Enums ||
|---|---|
| `CREATIVE_WRAPPER_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `HTML` | HTML CreativeWrappers that include header/footer HTML snippets. |
| `VIDEO_TRACKING_URL` | Video Tracking URL CreativeWrappers that include tracking URIs. |

## CreativeWrapperOrdering

Defines the order in which the header and footer HTML snippets will be wrapped around the served creative. INNER snippets will be wrapped first, followed by NO_PREFERENCE and finally OUTER. If the creative needs to be wrapped with more than one snippet with the same CreativeWrapperOrdering, then the order is unspecified.

| Enums ||
|---|---|
| `CREATIVE_WRAPPER_ORDERING_UNSPECIFIED` | Default value. This value is unused. |
| `INNER` | Wrapping occurs as early as possible. |
| `NO_PREFERENCE` | Wrapping occurs after `INNER` but before `OUTER` |
| `OUTER` | Wrapping occurs after both `NO_PREFERENCE` and `INNER` |

## CreativeWrapperStatus

Indicates whether the CreativeWrapper is active. HTML snippets are served to Creatives only when the CreativeWrapper is active.

| Enums ||
|---|---|
| `CREATIVE_WRAPPER_STATUS_UNSPECIFIED` | Default value. This value is unused. |
| `ACTIVE` | The CreativeWrapper will be applied to served creatives. |
| `INACTIVE` | The CreativeWrapper will not be applied to served creatives. |

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