Google Ads Ad Manager V1 Client - Class MediaLocation (0.8.0)

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

Config that associates a media location with a security policy and the authentication credentials needed to access the content.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ display_name string

Output only. The name of the media location. This value is read-only and is assigned by Google.

↳ url_prefix string

Required. The URL prefix of the media location. This value is required for a valid media location.

↳ security_policy CdnSecurityPolicy

Optional. The security policy and authentication credentials needed to access the content in this media location. Optional; if omitted, no security policy will be applied (indicating a public/unprotected location). Must NOT be configured for ad media delivery locations (doing so will trigger a validation error).

getDisplayName

Output only. The name of the media location. This value is read-only and is assigned by Google.

Returns
Type Description
string

hasDisplayName

clearDisplayName

setDisplayName

Output only. The name of the media location. This value is read-only and is assigned by Google.

Parameter
Name Description
var string
Returns
Type Description
$this

getUrlPrefix

Required. The URL prefix of the media location. This value is required for a valid media location.

Returns
Type Description
string

hasUrlPrefix

clearUrlPrefix

setUrlPrefix

Required. The URL prefix of the media location. This value is required for a valid media location.

Parameter
Name Description
var string
Returns
Type Description
$this

getSecurityPolicy

Optional. The security policy and authentication credentials needed to access the content in this media location. Optional; if omitted, no security policy will be applied (indicating a public/unprotected location).

Must NOT be configured for ad media delivery locations (doing so will trigger a validation error).

Returns
Type Description
CdnSecurityPolicy|null

hasSecurityPolicy

clearSecurityPolicy

setSecurityPolicy

Optional. The security policy and authentication credentials needed to access the content in this media location. Optional; if omitted, no security policy will be applied (indicating a public/unprotected location).

Must NOT be configured for ad media delivery locations (doing so will trigger a validation error).

Parameter
Name Description
var CdnSecurityPolicy
Returns
Type Description
$this