- [HTTP request](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.HTTP_TEMPLATE)
- [Path parameters](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.PATH_PARAMETERS)
- [Request body](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.request_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.response_body)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.PreviewLineItemCreativeAssociationResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#body.aspect)
- [Preview](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#Preview)
  - [JSON representation](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#Preview.SCHEMA_REPRESENTATION)
- [PreviewType](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#PreviewType)
- [Try it!](https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#try-it)

Fetch previews for the `https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives#LineItemCreativeAssociation`.

### HTTP request

`POST https://admanager.googleapis.com/v1/{name}:preview`

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The name of the `LineItemCreativeAssociation` object to preview. Format: `networks/{networkCode}/lineItems/{lineItemId}/creatives/{creativeId}` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "siteUrl": string } ``` |

| Fields ||
|---|---|
| `siteUrl` | `string` Required. The URL of the site that the creative should be previewed in |

### Response body

Response object for `creatives.preview` method.

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "previews": [ { object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#Preview`) } ] } ``` |

| Fields ||
|---|---|
| `previews[]` | ``object (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#Preview`)`` On-site previews of the `LineItemCreativeAssociation`. It has only one element for non-native previews and one preview url per `NativeStyle` associated. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/admanager`
- `https://www.googleapis.com/auth/admanager.readonly
  `

For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).

## Preview

Represents the `Creative` and its corresponding preview URL. \*/

| JSON representation |
|---|
| ``` { "previewType": enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#PreviewType`), "onSitePreviewUrl": string, "nativeStyle": string } ``` |

| Fields ||
|---|---|
| `previewType` | ``enum (`https://developers.google.com/ad-manager/api/beta/reference/rest/v1/networks.lineItems.creatives/preview#PreviewType`)`` Represents the type of preview. |
| `onSitePreviewUrl` | `string` The URL for previewing this creative. |
| `nativeStyle` | `string` The resource names of the `NativeStyle` for the preview. Only relevant when PreviewType is NATIVE. Format: `networks/{networkCode}/nativeStyles/{nativeStyleId}` |

## PreviewType

Represents preview types.

| Enums ||
|---|---|
| `PREVIEW_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `STANDARD` | Standard preview type. |
| `NATIVE` | `NativeStyle` preview type. |