Google Ads Ad Manager V1 Client - Class CreateCustomFieldRequest (0.5.0)

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

Request object for CreateCustomField method.

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

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where this CustomField will be created. Format: networks/{network_code}

↳ custom_field CustomField

Required. The CustomField to create.

getParent

Required. The parent resource where this CustomField will be created.

Format: networks/{network_code}

Returns
Type Description
string

setParent

Required. The parent resource where this CustomField will be created.

Format: networks/{network_code}

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomField

Required. The CustomField to create.

Returns
Type Description
CustomField|null

hasCustomField

clearCustomField

setCustomField

Required. The CustomField to create.

Parameter
Name Description
var CustomField
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource where this CustomField will be created. Format: networks/{network_code} Please see CustomFieldServiceClient::networkName() for help formatting this field.

customField CustomField

Required. The CustomField to create.

Returns
Type Description
CreateCustomFieldRequest