REST Resource: bidders.accounts.filterSets

Resource: FilterSet

A set of filters that is applied to a request for data. Within a filter set, an AND operation is performed across the filters represented by each field. An OR operation is performed across the filters represented by the multiple values of a repeated field, e.g., "format=VIDEO AND dealId=12 AND (seller_network_id=34 OR seller_network_id=56)".

JSON representation
{
  "name": string,
  "timeSeriesGranularity": enum(TimeSeriesGranularity),
  "creativeId": string,
  "dealId": string,
  "formats": [
    enum(Format)
  ],
  "environment": enum(Environment),
  "platforms": [
    enum(Platform)
  ],
  "sellerNetworkIds": [
    number
  ],
  "publisherIdentifiers": [
    string
  ],

  // Union field time_range can be only one of the following:
  "relativeDateRange": {
    object(RelativeDateRange)
  },
  "absoluteDateRange": {
    object(AbsoluteDateRange)
  },
  "realtimeTimeRange": {
    object(RealtimeTimeRange)
  }
  // End of list of possible types for union field time_range.
}
Fields
name

string

A user-defined name of the filter set. Filter set names must be unique globally and match one of the patterns:

  • bidders/*/filterSets/* (for accessing bidder-level troubleshooting data)
  • bidders/*/accounts/*/filterSets/* (for accessing account-level troubleshooting data)

This field is required in create operations.

timeSeriesGranularity

enum(TimeSeriesGranularity)

The granularity of time intervals if a time series breakdown is desired; optional.

creativeId

string

The ID of the creative on which to filter; optional. This field may be set only for a filter set that accesses account-level troubleshooting data, i.e., one whose name matches the bidders/*/accounts/*/filterSets/* pattern.

dealId

string (int64 format)

The ID of the deal on which to filter; optional. This field may be set only for a filter set that accesses account-level troubleshooting data, i.e., one whose name matches the bidders/*/accounts/*/filterSets/* pattern.

formats[]

enum(Format)

The list of formats on which to filter; may be empty. The filters represented by multiple formats are ORed together (i.e., if non-empty, results must match any one of the formats).

environment

enum(Environment)

The environment on which to filter; optional.

platforms[]

enum(Platform)

The list of platforms on which to filter; may be empty. The filters represented by multiple platforms are ORed together (i.e., if non-empty, results must match any one of the platforms).

sellerNetworkIds[]

number

For Authorized Buyers only. The list of IDs of the seller (publisher) networks on which to filter; may be empty. The filters represented by multiple seller network IDs are ORed together (i.e., if non-empty, results must match any one of the publisher networks). See seller-network-ids file for the set of existing seller network IDs.

publisherIdentifiers[]

string

For Open Bidding partners only. The list of publisher identifiers on which to filter; may be empty. The filters represented by multiple publisher identifiers are ORed together.

Union field time_range. The time range for the filter set; can be specified as a relative date range, an absolute date range, or an open-ended real-time time range. time_range can be only one of the following:
relativeDateRange

object(RelativeDateRange)

A relative date range, defined by an offset from today and a duration. Interpreted relative to Pacific time zone.

absoluteDateRange

object(AbsoluteDateRange)

An absolute date range, defined by a start date and an end date. Interpreted relative to Pacific time zone.

realtimeTimeRange

object(RealtimeTimeRange)

An open-ended realtime time range, defined by the aggregation start timestamp.

RelativeDateRange

A relative date range, specified by an offset and a duration. The supported range of dates begins 30 days before today and ends today, i.e., the limits for these values are: offsetDays >= 0 durationDays >= 1 offsetDays + durationDays <= 30

JSON representation
{
  "offsetDays": number,
  "durationDays": number
}
Fields
offsetDays

number

The end date of the filter set, specified as the number of days before today, e.g., for a range where the last date is today: 0.

durationDays

number

The number of days in the requested date range, e.g., for a range spanning today: 1. For a range spanning the last 7 days: 7.

AbsoluteDateRange

An absolute date range, specified by its start date and end date. The supported range of dates begins 30 days before today and ends today. Validity checked upon filter set creation. If a filter set with an absolute date range is run at a later date more than 30 days after startDate, it will fail.

JSON representation
{
  "startDate": {
    object(Date)
  },
  "endDate": {
    object(Date)
  }
}
Fields
startDate

object(Date)

The start date of the range (inclusive). Must be within the 30 days leading up to current date, and must be equal to or before endDate.

endDate

object(Date)

The end date of the range (inclusive). Must be within the 30 days leading up to current date, and must be equal to or after startDate.

RealtimeTimeRange

An open-ended realtime time range specified by the start timestamp. For filter sets that specify a realtime time range RTB metrics continue to be aggregated throughout the lifetime of the filter set.

JSON representation
{
  "startTimestamp": string
}
Fields
startTimestamp

string (Timestamp format)

The start timestamp of the real-time RTB metrics aggregation.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

TimeSeriesGranularity

The granularity of time intervals for a time series.

Enums
TIME_SERIES_GRANULARITY_UNSPECIFIED A placeholder for an unspecified interval; no time series is applied. All rows in response will contain data for the entire requested time range.
HOURLY Indicates that data will be broken down by the hour.
DAILY Indicates that data will be broken down by the day.

Format

The format of the ad impression.

Enums
FORMAT_UNSPECIFIED A placeholder for an undefined format; indicates that no format filter will be applied.
NATIVE_DISPLAY The ad impression is a native ad, and display (i.e., image) format.
NATIVE_VIDEO The ad impression is a native ad, and video format.
NON_NATIVE_DISPLAY The ad impression is not a native ad, and display (i.e., image) format.
NON_NATIVE_VIDEO The ad impression is not a native ad, and video format.

Environment

An environment in which the ad impression appears.

Enums
ENVIRONMENT_UNSPECIFIED A placeholder for an undefined environment; indicates that no environment filter will be applied.
WEB The ad impression appears on the web.
APP The ad impression appears in an app.

Platform

The platform on which the ad impression appears.

Enums
PLATFORM_UNSPECIFIED A placeholder for an undefined platform; indicates that no platform filter will be applied.
DESKTOP The ad impression appears on a desktop.
TABLET The ad impression appears on a tablet.
MOBILE The ad impression appears on a mobile device.

Methods

create

Creates the specified filter set for the account with the given account ID.

delete

Deletes the requested filter set from the account with the given account ID.

get

Retrieves the requested filter set for the account with the given account ID.

list

Lists all filter sets for the account with the given account ID.

Send feedback about...

Authorized Buyers
Authorized Buyers