Google Ads Ad Manager V1 Client - Class BatchDeactivateAdUnitsRequest (0.6.0)

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

Request object for BatchDeactivateAdUnits method.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Format: networks/{network_code}

↳ names array

Required. The resource names of the AdUnits to deactivate. Format: networks/{network_code}/adUnits/{ad_unit_id}

getParent

Required. Format: networks/{network_code}

Returns
Type Description
string

setParent

Required. Format: networks/{network_code}

Parameter
Name Description
var string
Returns
Type Description
$this

getNames

Required. The resource names of the AdUnits to deactivate.

Format: networks/{network_code}/adUnits/{ad_unit_id}

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNames

Required. The resource names of the AdUnits to deactivate.

Format: networks/{network_code}/adUnits/{ad_unit_id}

Parameter
Name Description
var string[]
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Format: networks/{network_code} Please see AdUnitServiceClient::networkName() for help formatting this field.

names string[]

Required. The resource names of the AdUnits to deactivate. Format: networks/{network_code}/adUnits/{ad_unit_id} Please see AdUnitServiceClient::adUnitName() for help formatting this field.

Returns
Type Description
BatchDeactivateAdUnitsRequest