Google Ads Ad Manager V1 Client - Class ChangeEvent (0.17.0)

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

Represents a single entity change.

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

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 ChangeEvent. Format: networks/{network_code}/changeEvents/{change_event}

↳ change_time Google\Protobuf\Timestamp

Output only. Time when the change happened.

↳ resource_type int

Output only. The type of the resource that was changed.

↳ entity_id int|string

Output only. The id of the resource that was changed. Typically, this is a part of the resource name for that entity. It is represented here as a long for legacy reasons.

↳ user string

Output only. The user that made the change. Format: networks/{network_code}/users/{user}

↳ operation_type int

Output only. The type of operation associated with the ChangeEvent.

getName

Identifier. The resource name of the ChangeEvent.

Format: networks/{network_code}/changeEvents/{change_event}

Returns
Type Description
string

setName

Identifier. The resource name of the ChangeEvent.

Format: networks/{network_code}/changeEvents/{change_event}

Parameter
Name Description
var string
Returns
Type Description
$this

getChangeTime

Output only. Time when the change happened.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasChangeTime

clearChangeTime

setChangeTime

Output only. Time when the change happened.

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

getResourceType

Output only. The type of the resource that was changed.

Returns
Type Description
int

hasResourceType

clearResourceType

setResourceType

Output only. The type of the resource that was changed.

Parameter
Name Description
var int
Returns
Type Description
$this

getEntityId

Output only. The id of the resource that was changed. Typically, this is a part of the resource name for that entity. It is represented here as a long for legacy reasons.

Returns
Type Description
int|string

hasEntityId

clearEntityId

setEntityId

Output only. The id of the resource that was changed. Typically, this is a part of the resource name for that entity. It is represented here as a long for legacy reasons.

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

getUser

Output only. The user that made the change.

Format: networks/{network_code}/users/{user}

Returns
Type Description
string

hasUser

clearUser

setUser

Output only. The user that made the change.

Format: networks/{network_code}/users/{user}

Parameter
Name Description
var string
Returns
Type Description
$this

getOperationType

Output only. The type of operation associated with the ChangeEvent.

Returns
Type Description
int

hasOperationType

clearOperationType

setOperationType

Output only. The type of operation associated with the ChangeEvent.

Parameter
Name Description
var int
Returns
Type Description
$this