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

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

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

## Request

- Base URL: `https://searchads360.googleapis.com`
- URL: `https://searchads360.googleapis.com/v23/customers/{customersId}/audiences: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/audiences:mutate/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates audiences. Operation statuses are returned. List of thrown errors: [AudienceError]()

## Path parameters

- `customersId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateAudiencesRequest: Request message for AudienceService.MutateAudiences.
  - `operations` GoogleAdsSearchads360V23ServicesAudienceOperation[]: Required. The list of operations to perform on individual audiences.
    - `create` GoogleAdsSearchads360V23ResourcesAudience: Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.
      - `assetGroup` string: Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
      - `description` string: Description of this audience.
      - `dimensions` GoogleAdsSearchads360V23CommonAudienceDimension[]: Positive dimensions specifying the audience composition.
        - `age` GoogleAdsSearchads360V23CommonAgeDimension: Dimension specifying users by their age.
          - `ageRanges` GoogleAdsSearchads360V23CommonAgeSegment[]: Contiguous age range to be included in the dimension.
            - `maxAge` integer: Maximum age to include. A maximum age need not be specified. If specified, max_age must be greater than min_age, and allowed values are 24, 34, 44, 54, and 64.
            - `minAge` integer: Minimum age to include. A minimum age must be specified and must be at least 18. Allowed values are 18, 25, 35, 45, 55, and 65.
          - `includeUndetermined` boolean: Include users whose age is not determined.
        - `audienceSegments` GoogleAdsSearchads360V23CommonAudienceSegmentDimension: Dimension specifying users by their membership in other audience segments.
          - `segments` GoogleAdsSearchads360V23CommonAudienceSegment[]: Included audience segments. Users are included if they belong to at least one segment.
            - `customAudience` GoogleAdsSearchads360V23CommonCustomAudienceSegment: Custom audience segment.
              - …
            - `detailedDemographic` GoogleAdsSearchads360V23CommonDetailedDemographicSegment: Detailed demographic segment.
              - …
            - `lifeEvent` GoogleAdsSearchads360V23CommonLifeEventSegment: Live event segment.
              - …
            - `userInterest` GoogleAdsSearchads360V23CommonUserInterestSegment: User interest segment.
              - …
            - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
              - …
        - `gender` GoogleAdsSearchads360V23CommonGenderDimension: Dimension specifying users by their gender.
          - `genders` string[]: Included gender demographic segments.
          - `includeUndetermined` boolean: Include users whose gender is not determined.
        - `householdIncome` GoogleAdsSearchads360V23CommonHouseholdIncomeDimension: Dimension specifying users by their household income.
          - `includeUndetermined` boolean: Include users whose household income is not determined.
          - `incomeRanges` string[]: Included household income demographic segments.
        - `parentalStatus` GoogleAdsSearchads360V23CommonParentalStatusDimension: Dimension specifying users by their parental status.
          - `includeUndetermined` boolean: Include users whose parental status is undetermined.
          - `parentalStatuses` string[]: Included parental status demographic segments.
      - `exclusionDimension` GoogleAdsSearchads360V23CommonAudienceExclusionDimension: Negative dimension specifying users to exclude from the audience.
        - `exclusions` GoogleAdsSearchads360V23CommonExclusionSegment[]: Audience segment to be excluded.
          - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
            - `userList` string: The user list resource.
      - `id` string, int64: Output only. ID of the audience.
      - `name` string: Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
      - `resourceName` string: Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'ASSET_GROUP': Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. Status of this audience. Indicates whether the audience is enabled or removed.
    - `update` GoogleAdsSearchads360V23ResourcesAudience: Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.
      - `assetGroup` string: Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
      - `description` string: Description of this audience.
      - `dimensions` GoogleAdsSearchads360V23CommonAudienceDimension[]: Positive dimensions specifying the audience composition.
        - `age` GoogleAdsSearchads360V23CommonAgeDimension: Dimension specifying users by their age.
          - `ageRanges` GoogleAdsSearchads360V23CommonAgeSegment[]: Contiguous age range to be included in the dimension.
            - `maxAge` integer: Maximum age to include. A maximum age need not be specified. If specified, max_age must be greater than min_age, and allowed values are 24, 34, 44, 54, and 64.
            - `minAge` integer: Minimum age to include. A minimum age must be specified and must be at least 18. Allowed values are 18, 25, 35, 45, 55, and 65.
          - `includeUndetermined` boolean: Include users whose age is not determined.
        - `audienceSegments` GoogleAdsSearchads360V23CommonAudienceSegmentDimension: Dimension specifying users by their membership in other audience segments.
          - `segments` GoogleAdsSearchads360V23CommonAudienceSegment[]: Included audience segments. Users are included if they belong to at least one segment.
            - `customAudience` GoogleAdsSearchads360V23CommonCustomAudienceSegment: Custom audience segment.
              - …
            - `detailedDemographic` GoogleAdsSearchads360V23CommonDetailedDemographicSegment: Detailed demographic segment.
              - …
            - `lifeEvent` GoogleAdsSearchads360V23CommonLifeEventSegment: Live event segment.
              - …
            - `userInterest` GoogleAdsSearchads360V23CommonUserInterestSegment: User interest segment.
              - …
            - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
              - …
        - `gender` GoogleAdsSearchads360V23CommonGenderDimension: Dimension specifying users by their gender.
          - `genders` string[]: Included gender demographic segments.
          - `includeUndetermined` boolean: Include users whose gender is not determined.
        - `householdIncome` GoogleAdsSearchads360V23CommonHouseholdIncomeDimension: Dimension specifying users by their household income.
          - `includeUndetermined` boolean: Include users whose household income is not determined.
          - `incomeRanges` string[]: Included household income demographic segments.
        - `parentalStatus` GoogleAdsSearchads360V23CommonParentalStatusDimension: Dimension specifying users by their parental status.
          - `includeUndetermined` boolean: Include users whose parental status is undetermined.
          - `parentalStatuses` string[]: Included parental status demographic segments.
      - `exclusionDimension` GoogleAdsSearchads360V23CommonAudienceExclusionDimension: Negative dimension specifying users to exclude from the audience.
        - `exclusions` GoogleAdsSearchads360V23CommonExclusionSegment[]: Audience segment to be excluded.
          - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
            - `userList` string: The user list resource.
      - `id` string, int64: Output only. ID of the audience.
      - `name` string: Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
      - `resourceName` string: Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'ASSET_GROUP': Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. Status of this audience. Indicates whether the audience is enabled or removed.
    - `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

- GoogleAdsSearchads360V23ServicesMutateAudiencesResponse: Response message for an audience 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` GoogleAdsSearchads360V23ServicesMutateAudienceResult[]: All results for the mutate.
    - `audience` GoogleAdsSearchads360V23ResourcesAudience: Audience is an effective targeting option that lets you intersect different segment attributes, such as detailed demographics and affinities, to create audiences that represent sections of your target segments.
      - `assetGroup` string: Immutable. The asset group that this audience is scoped under. Must be set if and only if scope is ASSET_GROUP. Immutable after creation. If an audience with ASSET_GROUP scope is upgraded to CUSTOMER scope, this field will automatically be cleared.
      - `description` string: Description of this audience.
      - `dimensions` GoogleAdsSearchads360V23CommonAudienceDimension[]: Positive dimensions specifying the audience composition.
        - `age` GoogleAdsSearchads360V23CommonAgeDimension: Dimension specifying users by their age.
          - `ageRanges` GoogleAdsSearchads360V23CommonAgeSegment[]: Contiguous age range to be included in the dimension.
            - `maxAge` integer: Maximum age to include. A maximum age need not be specified. If specified, max_age must be greater than min_age, and allowed values are 24, 34, 44, 54, and 64.
            - `minAge` integer: Minimum age to include. A minimum age must be specified and must be at least 18. Allowed values are 18, 25, 35, 45, 55, and 65.
          - `includeUndetermined` boolean: Include users whose age is not determined.
        - `audienceSegments` GoogleAdsSearchads360V23CommonAudienceSegmentDimension: Dimension specifying users by their membership in other audience segments.
          - `segments` GoogleAdsSearchads360V23CommonAudienceSegment[]: Included audience segments. Users are included if they belong to at least one segment.
            - `customAudience` GoogleAdsSearchads360V23CommonCustomAudienceSegment: Custom audience segment.
              - …
            - `detailedDemographic` GoogleAdsSearchads360V23CommonDetailedDemographicSegment: Detailed demographic segment.
              - …
            - `lifeEvent` GoogleAdsSearchads360V23CommonLifeEventSegment: Live event segment.
              - …
            - `userInterest` GoogleAdsSearchads360V23CommonUserInterestSegment: User interest segment.
              - …
            - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
              - …
        - `gender` GoogleAdsSearchads360V23CommonGenderDimension: Dimension specifying users by their gender.
          - `genders` string[]: Included gender demographic segments.
          - `includeUndetermined` boolean: Include users whose gender is not determined.
        - `householdIncome` GoogleAdsSearchads360V23CommonHouseholdIncomeDimension: Dimension specifying users by their household income.
          - `includeUndetermined` boolean: Include users whose household income is not determined.
          - `incomeRanges` string[]: Included household income demographic segments.
        - `parentalStatus` GoogleAdsSearchads360V23CommonParentalStatusDimension: Dimension specifying users by their parental status.
          - `includeUndetermined` boolean: Include users whose parental status is undetermined.
          - `parentalStatuses` string[]: Included parental status demographic segments.
      - `exclusionDimension` GoogleAdsSearchads360V23CommonAudienceExclusionDimension: Negative dimension specifying users to exclude from the audience.
        - `exclusions` GoogleAdsSearchads360V23CommonExclusionSegment[]: Audience segment to be excluded.
          - `userList` GoogleAdsSearchads360V23CommonUserListSegment: User list segment.
            - `userList` string: The user list resource.
      - `id` string, int64: Output only. ID of the audience.
      - `name` string: Name of the audience. It should be unique across all audiences within the account. It must have a minimum length of 1 and maximum length of 255. Required when scope is not set or is set to CUSTOMER. Cannot be set or updated when scope is ASSET_GROUP.
      - `resourceName` string: Immutable. The resource name of the audience. Audience names have the form: `customers/{customer_id}/audiences/{audience_id}`
      - `scope` 'UNSPECIFIED' | 'UNKNOWN' | 'CUSTOMER' | 'ASSET_GROUP': Defines the scope this audience can be used in. By default, the scope is CUSTOMER. Audiences can be created with a scope of ASSET_GROUP for exclusive use by a single asset_group. Scope may change from ASSET_GROUP to CUSTOMER but not from CUSTOMER to ASSET_GROUP.
      - `status` 'UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'REMOVED': Output only. Status of this audience. Indicates whether the audience is enabled or removed.
    - `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)
