Google Ads Ad Manager V1 Client - Class TemplateCreativeDetails (0.15.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class TemplateCreativeDetails.

A Creative that is created by the specified creative template.

Generated from protobuf message google.ads.admanager.v1.TemplateCreativeDetails

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ amp_destination_url string

Optional. The AMP destination URL for this creative. This must be a valid URL, including the http:// or https:// scheme.

↳ locked_orientation int

Optional. A locked orientation for this creative to be displayed in.

↳ destination_url string

Optional. The URL that the user is directed to if they click on the creative. This attribute is required unless the destinationUrlType is NONE, and has a maximum length of 1024 characters.

↳ destination_url_type int

Optional. The action that should be performed if the user clicks on the creative. This attribute defaults to CLICK_TO_WEB.

getAmpDestinationUrl

Optional. The AMP destination URL for this creative. This must be a valid URL, including the http:// or https:// scheme.

Returns
Type Description
string

hasAmpDestinationUrl

clearAmpDestinationUrl

setAmpDestinationUrl

Optional. The AMP destination URL for this creative. This must be a valid URL, including the http:// or https:// scheme.

Parameter
Name Description
var string
Returns
Type Description
$this

getLockedOrientation

Optional. A locked orientation for this creative to be displayed in.

Returns
Type Description
int

hasLockedOrientation

clearLockedOrientation

setLockedOrientation

Optional. A locked orientation for this creative to be displayed in.

Parameter
Name Description
var int
Returns
Type Description
$this

getDestinationUrl

Optional. The URL that the user is directed to if they click on the creative. This attribute is required unless the destinationUrlType is NONE, and has a maximum length of 1024 characters.

Returns
Type Description
string

hasDestinationUrl

clearDestinationUrl

setDestinationUrl

Optional. The URL that the user is directed to if they click on the creative. This attribute is required unless the destinationUrlType is NONE, and has a maximum length of 1024 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getDestinationUrlType

Optional. The action that should be performed if the user clicks on the creative. This attribute defaults to CLICK_TO_WEB.

Returns
Type Description
int

hasDestinationUrlType

clearDestinationUrlType

setDestinationUrlType

Optional. The action that should be performed if the user clicks on the creative. This attribute defaults to CLICK_TO_WEB.

Parameter
Name Description
var int
Returns
Type Description
$this