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

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

User-defined preset targeting criteria.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of the TargetingPreset. Format: networks/{network_code}/targetingPresets/{targeting_preset_id}

↳ display_name string

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

↳ targeting Targeting

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

↳ status int

Output only. The status of the TargetingPreset.

getName

Identifier. The resource name of the TargetingPreset.

Format: networks/{network_code}/targetingPresets/{targeting_preset_id}

Returns
Type Description
string

setName

Identifier. The resource name of the TargetingPreset.

Format: networks/{network_code}/targetingPresets/{targeting_preset_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

Returns
Type Description
string

hasDisplayName

clearDisplayName

setDisplayName

Required. The name of the TargetingPreset. This attribute has a maximum length of 255 characters.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargeting

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

Returns
Type Description
Targeting|null

hasTargeting

clearTargeting

setTargeting

Required. Contains the targeting criteria for the TargetingPreset. If not provided, empty targeting will be used as a default.

Parameter
Name Description
var Targeting
Returns
Type Description
$this

getStatus

Output only. The status of the TargetingPreset.

Returns
Type Description
int

hasStatus

clearStatus

setStatus

Output only. The status of the TargetingPreset.

Parameter
Name Description
var int
Returns
Type Description
$this