Google Ads Ad Manager V1 Client - Class Role (0.1.0)

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

The Role resource.

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

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 Role. Format: networks/{network_code}/roles/{role_id}

↳ role_id int|string

Output only. Role ID.

↳ display_name string

Required. The display name of the Role.

↳ description string

Optional. The description of the Role.

↳ built_in bool

Output only. Whether the Role is a built-in or custom user role.

↳ status int

Output only. The status of the Role.

getName

Identifier. The resource name of the Role.

Format: networks/{network_code}/roles/{role_id}

Returns
Type Description
string

setName

Identifier. The resource name of the Role.

Format: networks/{network_code}/roles/{role_id}

Parameter
Name Description
var string
Returns
Type Description
$this

getRoleId

Output only. Role ID.

Returns
Type Description
int|string

setRoleId

Output only. Role ID.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDisplayName

Required. The display name of the Role.

Returns
Type Description
string

setDisplayName

Required. The display name of the Role.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Optional. The description of the Role.

Returns
Type Description
string

setDescription

Optional. The description of the Role.

Parameter
Name Description
var string
Returns
Type Description
$this

getBuiltIn

Output only. Whether the Role is a built-in or custom user role.

Returns
Type Description
bool

setBuiltIn

Output only. Whether the Role is a built-in or custom user role.

Parameter
Name Description
var bool
Returns
Type Description
$this

getStatus

Output only. The status of the Role.

Returns
Type Description
int

setStatus

Output only. The status of the Role.

Parameter
Name Description
var int
Returns
Type Description
$this