Google Ads API is returning to beta status. Please read our blog post for more details.

shared_set

The shared set referenced in the query.
Attributed resources
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
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?

info_outline  Resource fields
id
member_count
name
reference_count
resource_name
status
type
layers  Segments

shared_set.id

Field descriptionThe ID of this shared set. Read only.
CategoryATTRIBUTE
Data TypeINT64
Type URLgoogle.protobuf.Int64Value
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

shared_set.member_count

Field descriptionThe number of shared criteria within this shared set. Read only.
CategoryATTRIBUTE
Data TypeINT64
Type URLgoogle.protobuf.Int64Value
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

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.
CategoryATTRIBUTE
Data TypeSTRING
Type URLgoogle.protobuf.StringValue
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

shared_set.reference_count

Field descriptionThe number of campaigns associated with this shared set. Read only.
CategoryATTRIBUTE
Data TypeINT64
Type URLgoogle.protobuf.Int64Value
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

shared_set.resource_name

Field descriptionThe resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
CategoryATTRIBUTE
Data TypeRESOURCE_NAME
Type URLN/A
FilterableTrue
SelectableTrue
SortableFalse
RepeatedFalse

shared_set.status

Field descriptionThe status of this shared set. Read only.
CategoryATTRIBUTE
Data Type
Type URLgoogle.ads.googleads.v2.enums.SharedSetStatusEnum.SharedSetStatus
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

shared_set.type

Field descriptionThe type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
CategoryATTRIBUTE
Data Type
Type URLgoogle.ads.googleads.v2.enums.SharedSetTypeEnum.SharedSetType
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse