> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v23** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/fields/latest/shared_set).

[Help me build a query](https://developers.google.com/google-ads/api/fields/v23/shared_set_query_builder.md.txt) [Proto definition ![on GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v23/resources/shared_set.proto)

SharedSets are used for sharing criterion exclusions across multiple
campaigns.

| Attributed resources |
|---|
| [customer](https://developers.google.com/google-ads/api/fields/v23/customer.md.txt) |

Fields from the preceding resources can be selected along with this
resource in your `SELECT` and `WHERE` clauses. These fields do **not** segment
metrics in your `SELECT` clause.

| Segmenting resources |
|---|
| [campaign](https://developers.google.com/google-ads/api/fields/v23/campaign.md.txt) |
| [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v23/campaign_shared_set.md.txt) |

Fields from the preceding resources, when selected along with this
resource in your `SELECT` and `WHERE` clauses, segment metrics.

#### Fields, segments, and metrics

This page shows all metrics and segments that can be put in the same `SELECT` clause as the fields of `shared_set`.
However, when you specify `shared_set` in the `FROM` clause, some metrics and segments
cannot be used.
Use the following filter to show only the fields that can be used when `shared_set` is specified in the `FROM` clause.

Is `shared_set` specified in the `FROM` clause of your query?
No Yes, it is

| Resource fields |
|---|
| [id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id) |
| [member_count](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.member_count) |
| [name](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.name) |
| [reference_count](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.reference_count) |
| [resource_name](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.resource_name) |
| [status](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.status) |
| [type](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.type) |
| [vertical_ads_item_vertical_type](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.vertical_ads_item_vertical_type) |

| Segments |
|---|

## shared_set.id

Field descriptionOutput only. The ID of this shared set. Read only.
Category`ATTRIBUTE` Data Type`INT64` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

**Resources:** [ad_group_criterion](https://developers.google.com/google-ads/api/fields/v23/ad_group_criterion.md.txt), [campaign_criterion](https://developers.google.com/google-ads/api/fields/v23/campaign_criterion.md.txt), [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v23/campaign_shared_set.md.txt), [change_status](https://developers.google.com/google-ads/api/fields/v23/change_status.md.txt), [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v23/customer_negative_criterion.md.txt), [shared_criterion](https://developers.google.com/google-ads/api/fields/v23/shared_criterion.md.txt), [shared_set](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt)

## shared_set.member_count

Field descriptionOutput only. The number of shared criteria within this shared set. Read
only.
Category`ATTRIBUTE` Data Type`INT64` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.name

Field descriptionThe name of this shared set. Required.
Shared Sets must have names that are unique among active shared sets of
the same type.
The length of this string should be between 1 and 255 UTF-8 bytes,
inclusive.
Category`ATTRIBUTE` Data Type`STRING` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.reference_count

Field descriptionOutput only. The number of campaigns associated with this shared set. Read
only.
Category`ATTRIBUTE` Data Type`INT64` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.resource_name

Field descriptionImmutable. The resource name of the shared set.
Shared set resource names have the form:

`customers/{customer_id}/sharedSets/{shared_set_id}`
Category`ATTRIBUTE` Data Type`RESOURCE_NAME` CapabilitiesSelectable: True  
Filterable: True  
Sortable: False  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.status

Field descriptionOutput only. The status of this shared set. Read only.
Category`ATTRIBUTE` Data Type`ENUM`
`ENABLED``REMOVED``UNKNOWN``UNSPECIFIED` Type URL`google.ads.googleads.v23.enums.SharedSetStatusEnum.SharedSetStatus` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.type

Field descriptionImmutable. The type of this shared set: each shared set holds only a single
kind of resource. Required. Immutable.
Category`ATTRIBUTE` Data Type`ENUM`
`ACCOUNT_LEVEL_NEGATIVE_KEYWORDS``BRANDS``NEGATIVE_KEYWORDS``NEGATIVE_PLACEMENTS``UNKNOWN``UNSPECIFIED``VERTICAL_ADS_ITEM_GROUP_RULE_LIST``WEBPAGES` Type URL`google.ads.googleads.v23.enums.SharedSetTypeEnum.SharedSetType` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).

## shared_set.vertical_ads_item_vertical_type

Field descriptionImmutable. Shared sets of type VERTICAL_ADS_ITEM_GROUP_RULE_LIST are
associated with a particular vertical (e.g. hotels, things to do, flights,
etc.). This field is required for shared sets of type
VERTICAL_ADS_ITEM_GROUP_RULE_LIST.
Category`ATTRIBUTE` Data Type`ENUM`
`EVENTS``FLIGHTS``HOTELS``RENTAL_CARS``THINGS_TO_DO``UNKNOWN``UNSPECIFIED``VACATION_RENTALS` Type URL`google.ads.googleads.v23.enums.VerticalAdsItemVerticalTypeEnum.VerticalAdsItemVerticalType` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [shared_set.id](https://developers.google.com/google-ads/api/fields/v23/shared_set.md.txt#shared_set.id).