---
title: "POST /v23/customers/{customersId}/biddingDataExclusions:mutate"
method: POST
path: "/v23/customers/{customersId}/biddingDataExclusions:mutate"
tags: ["customers"]
---

# POST /v23/customers/{customersId}/biddingDataExclusions:mutate

`POST /v23/customers/{customersId}/biddingDataExclusions:mutate`

## Request

- Base URL: `https://searchads360.googleapis.com`
- URL: `https://searchads360.googleapis.com/v23/customers/{customersId}/biddingDataExclusions:mutate`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/doubleclicksearch`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/doubleclicksearch`
- TypeScript: <https://skmtc.dev/google/apis/searchads360/docs/v23/customers/:customersId/biddingDataExclusions:mutate/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates, updates, or removes data exclusions. Operation statuses are returned.

## Path parameters

- `customersId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateBiddingDataExclusionsRequest: Request message for BiddingDataExclusionService.MutateBiddingDataExclusions.
  - `operations` GoogleAdsSearchads360V23ServicesBiddingDataExclusionOperation[]: Required. The list of operations to perform on individual data exclusions.
    - `create` GoogleAdsSearchads360V23ResourcesBiddingDataExclusion: Represents a bidding data exclusion. Bidding data exclusions can be set in client accounts only, and cannot be used in manager accounts. See "About data exclusions" at https://support.google.com/google-ads/answer/10370710. Note: A customer account can have a maximum of 500 active bidding data exclusions.
      - `advertisingChannelTypes` string[]: The data_exclusion will apply to all the campaigns under the listed channels retroactively as well as going forward when the scope of this exclusion is CHANNEL. The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `campaigns` string[]: The data exclusion will apply to the campaigns listed when the scope of this exclusion is CAMPAIGN. The maximum number of campaigns per event is 2000. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `dataExclusionId` string, int64: Output only. The ID of the data exclusion.
      - `description` string: The description of the data exclusion. The description can be at most 2048 characters.
      - `devices` string[]: If not specified, all devices will be included in this exclusion. Otherwise, only the specified targeted devices will be included in this exclusion.
      - `endDateTime` string: Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format. The length of [start_date_time, end_date_time) interval must be within (0, 14 days].
      - `name` string: The name of the data exclusion. The name can be at most 255 characters.
      - `resourceName` string: Immutable. The resource name of the data exclusion. Data exclusion resource names have the form: `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'CAMPAIGN' | 'CHANNEL': The scope of the data exclusion.
      - `startDateTime` string: Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss format. A data exclusion is backward looking and should be used for events that start in the past and end either in the past or future.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. The status of the data exclusion.
    - `remove` string: Remove operation: A resource name for the removed data exclusion is expected, in this format: `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
    - `update` GoogleAdsSearchads360V23ResourcesBiddingDataExclusion: Represents a bidding data exclusion. Bidding data exclusions can be set in client accounts only, and cannot be used in manager accounts. See "About data exclusions" at https://support.google.com/google-ads/answer/10370710. Note: A customer account can have a maximum of 500 active bidding data exclusions.
      - `advertisingChannelTypes` string[]: The data_exclusion will apply to all the campaigns under the listed channels retroactively as well as going forward when the scope of this exclusion is CHANNEL. The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `campaigns` string[]: The data exclusion will apply to the campaigns listed when the scope of this exclusion is CAMPAIGN. The maximum number of campaigns per event is 2000. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `dataExclusionId` string, int64: Output only. The ID of the data exclusion.
      - `description` string: The description of the data exclusion. The description can be at most 2048 characters.
      - `devices` string[]: If not specified, all devices will be included in this exclusion. Otherwise, only the specified targeted devices will be included in this exclusion.
      - `endDateTime` string: Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format. The length of [start_date_time, end_date_time) interval must be within (0, 14 days].
      - `name` string: The name of the data exclusion. The name can be at most 255 characters.
      - `resourceName` string: Immutable. The resource name of the data exclusion. Data exclusion resource names have the form: `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'CAMPAIGN' | 'CHANNEL': The scope of the data exclusion.
      - `startDateTime` string: Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss format. A data exclusion is backward looking and should be used for events that start in the past and end either in the past or future.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. The status of the data exclusion.
    - `updateMask` string, google-fieldmask: FieldMask that determines which resource fields are modified in an update.
  - `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.
  - `responseContentType` 'UNSPECIFIED' | 'RESOURCE_NAME_ONLY' | 'MUTABLE_RESOURCE': The response content type setting. Determines whether the mutable resource or just the resource name should be returned post mutation.
  - `validateOnly` boolean: If true, the request is validated but not executed. Only errors are returned, not results.

## Response `200`

Successful response

- GoogleAdsSearchads360V23ServicesMutateBiddingDataExclusionsResponse: Response message for data exclusions mutate.
  - `partialFailureError` GoogleRpcStatus: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `results` GoogleAdsSearchads360V23ServicesMutateBiddingDataExclusionsResult[]: All results for the mutate.
    - `biddingDataExclusion` GoogleAdsSearchads360V23ResourcesBiddingDataExclusion: Represents a bidding data exclusion. Bidding data exclusions can be set in client accounts only, and cannot be used in manager accounts. See "About data exclusions" at https://support.google.com/google-ads/answer/10370710. Note: A customer account can have a maximum of 500 active bidding data exclusions.
      - `advertisingChannelTypes` string[]: The data_exclusion will apply to all the campaigns under the listed channels retroactively as well as going forward when the scope of this exclusion is CHANNEL. The supported advertising channel types are DISPLAY, SEARCH and SHOPPING. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `campaigns` string[]: The data exclusion will apply to the campaigns listed when the scope of this exclusion is CAMPAIGN. The maximum number of campaigns per event is 2000. Note: a data exclusion with both advertising_channel_types and campaign_ids is not supported.
      - `dataExclusionId` string, int64: Output only. The ID of the data exclusion.
      - `description` string: The description of the data exclusion. The description can be at most 2048 characters.
      - `devices` string[]: If not specified, all devices will be included in this exclusion. Otherwise, only the specified targeted devices will be included in this exclusion.
      - `endDateTime` string: Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format. The length of [start_date_time, end_date_time) interval must be within (0, 14 days].
      - `name` string: The name of the data exclusion. The name can be at most 255 characters.
      - `resourceName` string: Immutable. The resource name of the data exclusion. Data exclusion resource names have the form: `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'CAMPAIGN' | 'CHANNEL': The scope of the data exclusion.
      - `startDateTime` string: Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss format. A data exclusion is backward looking and should be used for events that start in the past and end either in the past or future.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. The status of the data exclusion.
    - `resourceName` string: Returned for successful operations.

---

[API](https://skmtc.dev/google/apis/searchads360.md) - [All operations](https://skmtc.dev/google/apis/searchads360/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/searchads360/revisions/4a4511f84b18?raw)
