[<button style="margin-top:15px">Help me build a query</button>](https://developers.google.com/google-ads/api/fields/v26/shared_set_query_builder) [<button style="margin-top:15px">Proto definition ![GitHub](https://developers.google.com/site-assets/logo-github.svg)</button>](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v26/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/v26/customer) |

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

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

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

#### Fields/Segments/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/v26/shared_set#shared_set.id) |
| [member_count](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.member_count) |
| [name](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.name) |
| [reference_count](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.reference_count) |
| [resource_name](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.resource_name) |
| [status](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.status) |
| [type](https://developers.google.com/google-ads/api/fields/v26/shared_set#shared_set.type) |
| [vertical_ads_item_vertical_type](https://developers.google.com/google-ads/api/fields/v26/shared_set#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` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## shared_set.member_count

Field descriptionOutput only. The number of shared criteria within this shared set. Read
only.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## 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` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## shared_set.reference_count

Field descriptionOutput only. The number of campaigns associated with this shared set. Read
only.
Category`ATTRIBUTE` Data Type`INT64` Type URL`N/A` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## 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` Type URL`N/A` FilterableTrue SelectableTrue SortableFalse RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## 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`https://developers.google.com/google-ads/api/reference/rpc/v26/SharedSetStatusEnum.SharedSetStatus` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## 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``RETAIL_FILTER``UNKNOWN``UNSPECIFIED``VERTICAL_ADS_ITEM_GROUP_RULE_LIST``WEBPAGES` Type URL`https://developers.google.com/google-ads/api/reference/rpc/v26/SharedSetTypeEnum.SharedSetType` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)

## 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`https://developers.google.com/google-ads/api/reference/rpc/v26/VerticalAdsItemVerticalTypeEnum.VerticalAdsItemVerticalType` FilterableTrue SelectableTrue SortableTrue RepeatedFalse Selectable with The following fields/resources can be selected with this field:
[ad_group_criterion](https://developers.google.com/google-ads/api/fields/v26/ad_group_criterion) [asset_group_listing_group_filter](https://developers.google.com/google-ads/api/fields/v26/asset_group_listing_group_filter) [campaign_criterion](https://developers.google.com/google-ads/api/fields/v26/campaign_criterion) [campaign_shared_set](https://developers.google.com/google-ads/api/fields/v26/campaign_shared_set) [change_status](https://developers.google.com/google-ads/api/fields/v26/change_status) [customer_negative_criterion](https://developers.google.com/google-ads/api/fields/v26/customer_negative_criterion) [shared_criterion](https://developers.google.com/google-ads/api/fields/v26/shared_criterion) [shared_set](https://developers.google.com/google-ads/api/fields/v26/shared_set)