Reference documentation and code samples for the Google Ads Ad Manager V1 Client class AppliedLabel.
Represents a Label that can be applied to an entity.
Generated from protobuf message google.ads.admanager.v1.AppliedLabel
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ label | stringRequired. The label to be applied. Format: "networks/{network_code}/labels/{label_id}" | 
| ↳ negated | boolSpecifies whether or not to negate the effects of the label. | 
getLabel
Required. The label to be applied.
Format: "networks/{network_code}/labels/{label_id}"
| Returns | |
|---|---|
| Type | Description | 
| string | |
setLabel
Required. The label to be applied.
Format: "networks/{network_code}/labels/{label_id}"
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getNegated
Specifies whether or not to negate the effects of the label.
| Returns | |
|---|---|
| Type | Description | 
| bool | |
setNegated
Specifies whether or not to negate the effects of the label.
| Parameter | |
|---|---|
| Name | Description | 
| var | bool | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |