---
title: "POST /v23/customers/{+customerId}/campaignLabels:mutate"
method: POST
path: "/v23/customers/{+customerId}/campaignLabels:mutate"
tags: ["customers"]
---

# POST /v23/customers/{+customerId}/campaignLabels:mutate

`POST /v23/customers/{+customerId}/campaignLabels:mutate`

Creates and removes campaign-label relationships. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [LabelError]() [MutateError]() [NewResourceCreationError]() [QuotaError]() [RequestError]()

## Path parameters

- `customerId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateCampaignLabelsRequest — Request message for CampaignLabelService.MutateCampaignLabels.
  - `partialFailure` boolean — If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. Default is false.
  - `operations` GoogleAdsSearchads360V23ServicesCampaignLabelOperation[] — Required. The list of operations to perform on campaign-label relationships.
    - `create` GoogleAdsSearchads360V23ResourcesCampaignLabel — Represents a relationship between a campaign and a label.
      - `resourceName` string — Immutable. Name of the resource. Campaign label resource names have the form: `customers/{owner_customer_id}/campaignLabels/{campaign_id}~{label_id}`
      - `campaign` string — Immutable. The campaign to which the label is attached.
      - `label` string — Immutable. The label assigned to the campaign.
      - `ownerCustomerId` string, int64 — Output only. The ID of the Customer which owns the label.
    - `remove` string — Remove operation: A resource name for the campaign-label relationship being removed, in this format: `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}`
  - `validateOnly` boolean — If true, the request is validated but not executed. Only errors are returned, not results.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/searchads360.md) · [All operations](https://skmtc.net/google/apis/searchads360/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/searchads360/versions/40d087435afd/schema)
