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

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

Request object for UpdateAdUnit method.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ad_unit AdUnit

Required. The AdUnit to update. The AdUnit's name is used to identify the AdUnit to update. Format: networks/{network_code}/adUnits/{ad_unit_id}

↳ update_mask Google\Protobuf\FieldMask

Required. The list of fields to update.

getAdUnit

Required. The AdUnit to update.

The AdUnit's name is used to identify the AdUnit to update. Format: networks/{network_code}/adUnits/{ad_unit_id}

Returns
Type Description
AdUnit|null

hasAdUnit

clearAdUnit

setAdUnit

Required. The AdUnit to update.

The AdUnit's name is used to identify the AdUnit to update. Format: networks/{network_code}/adUnits/{ad_unit_id}

Parameter
Name Description
var AdUnit
Returns
Type Description
$this

getUpdateMask

Required. The list of fields to update.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. The list of fields to update.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
adUnit AdUnit

Required. The AdUnit to update.

The AdUnit's name is used to identify the AdUnit to update. Format: networks/{network_code}/adUnits/{ad_unit_id}

updateMask Google\Protobuf\FieldMask

Required. The list of fields to update.

Returns
Type Description
UpdateAdUnitRequest