Reference documentation and code samples for the Google Ads Ad Manager V1 Client class Preview.
Represents the Creative and its corresponding preview URL. */
Generated from protobuf message google.ads.admanager.v1.PreviewLineItemCreativeAssociationResponse.Preview
Namespace
Google \ Ads \ AdManager \ V1 \ PreviewLineItemCreativeAssociationResponseMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ preview_type |
int
Represents the type of preview. |
↳ on_site_preview_url |
string
The URL for previewing this creative. |
↳ native_style |
string
The resource names of the |
getPreviewType
Represents the type of preview.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type PreviewType. |
setPreviewType
Represents the type of preview.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type PreviewType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOnSitePreviewUrl
The URL for previewing this creative.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOnSitePreviewUrl
The URL for previewing this creative.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNativeStyle
The resource names of the NativeStyle for the preview.
Only relevant when PreviewType is NATIVE.
Format:
networks/{network_code}/nativeStyles/{native_style_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setNativeStyle
The resource names of the NativeStyle for the preview.
Only relevant when PreviewType is NATIVE.
Format:
networks/{network_code}/nativeStyles/{native_style_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|