Labels Manage Label Associations
labels_manage_label_associationsCreate or remove label associations for Google Ads campaigns, customers, ad groups, and ad group criteria, with a validate-then-confirm workflow to review changes before committing.
Instructions
Manages associations between labels and Campaign, Customer, Ad Group, or Ad Group Criterion.
Supports CREATE and REMOVE operations.
Propose & Confirm Workflow (validate_only and checksum):
Call
manage_label_associationswithvalidate_only=True(the default). After validation passes, the tool returns structuredchange_itemsand achecksumwithout committing changes.Present the
change_itemsto the user and wait for explicit user approval.Only after user confirmation, call
manage_label_associationswithvalidate_only=Falsealong with the exact same parameters and thechecksumreturned by the previousvalidate_only=Truecall.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>",
"operation": "<operation>",
"association_type": "<association_type>"
},
"name": "labels_manage_label_associations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checksum | No | Checksum of the validated operation returned by a prior `validate_only=True` call. Required when `validate_only=False`. | |
| label_id | No | The ID of the Label (e.g., '789'). Required for CREATE. | |
| operation | Yes | The operation to perform. Must be 'CREATE' or 'REMOVE'. | |
| customer_id | Yes | Google Ads Customer ID (digits or hyphenated, e.g. '1234567890'). | |
| resource_id | No | The ID of the entity to associate (e.g., '456' for CAMPAIGN or AD_GROUP, or composite '{ad_group_id}~{criterion_id}' such as '456~789' for AD_GROUP_CRITERION). Optional for CUSTOMER (defaults to `customer_id`); required for CREATE on other types. | |
| validate_only | No | If True (default), validates the request and returns proposed `change_items` and a `checksum` without mutating the association. If False, requires `checksum` from a prior `validate_only=True` call to commit the mutation. | |
| association_type | Yes | The type of resource being associated. Must be 'CAMPAIGN', 'CUSTOMER', 'AD_GROUP', or 'AD_GROUP_CRITERION'. | |
| login_customer_id | No | Optional manager customer ID to use as the login-customer-id header. | |
| association_resource_name | No | The full resource name of the association itself (e.g., 'customers/123/campaignLabels/456~789'). Optional alternative for REMOVE when `resource_id` and `label_id` are not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |