- JSON representation
- InventoryUrlTargeting
- GeoTargeting
- TechnologyTargeting
- BandwidthTargeting
- BrowserTargeting
- BrowserLanguageTargeting
- DeviceCapabilityTargeting
- DeviceCategoryTargeting
- DeviceManufacturerTargeting
- MobileCarrierTargeting
- OperatingSystemTargeting
- InventorySizeTargeting
- RequestPlatformTargeting
- RequestPlatform
- DateTimeRangeTargeting
- Interval
- PublisherProvidedSignalsTargeting
- UserDomainTargeting
- ContextualTargeting
- VideoPositionTargeting
- VideoPosition
- VideoPosition
- TargetedVideoBumperType
- DataSegmentTargeting
- RequestFormatTargeting
- ContentTargeting
- MobileApplicationTargeting
- FirstPartyMobileApplicationTargeting
- DayPartTargeting
- DayPart
- DaypartingTimeZone
- BuyerUserListTargeting
Targeting expression.
| JSON representation |
|---|
{ "inventoryUrlTargeting": { object ( |
| Fields | |
|---|---|
inventoryUrlTargeting |
Optional. Used to target/exclude specific websites. |
geoTargeting |
Optional. Used to target/exclude various geo targets. |
technologyTargeting |
Optional. Used to target various technology targeting dimensions. |
inventorySizeTargeting |
Optional. Used to target/exclude ad requests for specific ad slot sizes. |
inventoryTargeting |
Optional. Used to target/exclude various ad units and/or placements. |
requestPlatformTargeting |
Optional. Used to target specific request platforms. |
customTargeting |
Optional. Used to target key/values, audience segments, and/or CMS metadata. |
dateTimeRangeTargeting |
Optional. Used to target a datetime range. |
publisherProvidedSignalsTargeting |
Optional. Used to target publisher provided signals. |
userDomainTargeting |
Optional. Used to target user domains. |
contextualTargeting |
Optional. Used to target verticals / content labels |
videoPositionTargeting |
Optional. Used to target video positions. |
dataSegmentTargeting |
Optional. Used to target data segments. |
requestFormatTargeting |
Optional. Used to target inventory formats. |
contentTargeting |
Optional. Used to target content. |
mobileApplicationTargeting |
Optional. Used to target mobile applications. |
dayPartTargeting |
Optional. Used to target day parts. |
buyerUserListTargeting |
Optional. Used to target buyer user lists. |
InventoryUrlTargeting
Represents a list of targeted and excluded inventory URLs and Sites.
| JSON representation |
|---|
{ "targetedInventoryUrls": [ string ], "excludedInventoryUrls": [ string ] } |
| Fields | |
|---|---|
targetedInventoryUrls[] |
Optional. A list of inventory URL resource names that should be targeted/included. |
excludedInventoryUrls[] |
Optional. A list of inventory URL resource names that should be excluded. |
GeoTargeting
Represents a list of targeted and excluded geos.
| JSON representation |
|---|
{ "targetedGeos": [ string ], "excludedGeos": [ string ] } |
| Fields | |
|---|---|
targetedGeos[] |
Optional. A list of geo resource names that should be targeted/included. |
excludedGeos[] |
Optional. A list of geo resource names that should be excluded. |
TechnologyTargeting
Various types of technology targeting expressed by child messages are applied with logical AND.
| JSON representation |
|---|
{ "bandwidthTargeting": { object ( |
| Fields | |
|---|---|
bandwidthTargeting |
Optional. Bandwidth targeting dimension. |
browserTargeting |
Optional. Browser targeting dimension. |
browserLanguageTargeting |
Optional. Browser language targeting dimension. |
deviceCapabilityTargeting |
Optional. Device capability targeting dimension. |
deviceCategoryTargeting |
Optional. Device category targeting dimension. |
deviceManufacturerTargeting |
Optional. Device manufacturer targeting dimension. |
mobileCarrierTargeting |
Optional. Mobile carrier targeting dimension. |
operatingSystemTargeting |
Optional. Operating system targeting dimension. |
BandwidthTargeting
Bandwidth Targeting.
Reach users accessing the internet through various means of connection, such as cable, DSL, or dial-up. Can be useful to target campaigns using low-resolution creatives or text ads for users with low bandwidth.
| JSON representation |
|---|
{ "targetedBandwidthGroups": [ string ], "excludedBandwidthGroups": [ string ] } |
| Fields | |
|---|---|
targetedBandwidthGroups[] |
Optional. A list of resource names of the bandwidth groups that should be targeted/included. |
excludedBandwidthGroups[] |
Optional. A list of resource names of the bandwidth groups that should be excluded. |
BrowserTargeting
Browser Targeting.
Allows publishers to target/exclude a browser type (e.g. Chrome, Firefox, Safari). For more information, see https://support.google.com/admanager/answer/2884033 (Targeting types > Browser).
| JSON representation |
|---|
{ "targetedBrowsers": [ string ], "excludedBrowsers": [ string ] } |
| Fields | |
|---|---|
targetedBrowsers[] |
Optional. A list of browser resource names that should be targeted/included. |
excludedBrowsers[] |
Optional. A list of browser resource names that should be excluded. |
BrowserLanguageTargeting
Browser Language Targeting.
For ads targeting mobile apps and their associated WebViews, the language used is based on the language specified by the user in their mobile device settings. If a browser has more than one language assigned to it, each language generates an impression.
| JSON representation |
|---|
{ "targetedBrowserLanguages": [ string ], "excludedBrowserLanguages": [ string ] } |
| Fields | |
|---|---|
targetedBrowserLanguages[] |
Optional. A list of browser language resource names that should be targeted/included. |
excludedBrowserLanguages[] |
Optional. A list of browser language resource names that should be excluded. |
DeviceCapabilityTargeting
Device Capability Targeting.
Can be used to target/exclude users using mobile apps, ad requests resulting from apps built on the MRAID standard, or users on devices that are able to make phone calls versus devices that aren't able to make phone calls, such as tablets.
| JSON representation |
|---|
{ "targetedCapabilities": [ string ], "excludedCapabilities": [ string ] } |
| Fields | |
|---|---|
targetedCapabilities[] |
Optional. A list of device capability resource names that should be targeted/included. |
excludedCapabilities[] |
Optional. A list of device capability resource names that should be excluded. |
DeviceCategoryTargeting
Represents a list of targeted and excluded device categories.
| JSON representation |
|---|
{ "targetedCategories": [ string ], "excludedCategories": [ string ] } |
| Fields | |
|---|---|
targetedCategories[] |
Optional. A list of device category resource names that should be targeted/included. |
excludedCategories[] |
Optional. A list of device category resource names that should be excluded. |
DeviceManufacturerTargeting
Device Manufacturer Targeting.
Can be used to target/exclude users on devices made by specific brands or companies, such as Apple, Google, Samsung and others. For more information, see https://support.google.com/admanager/answer/2884033 ("Targeting types > Device manufacturer").
| JSON representation |
|---|
{ "targetedDeviceManufacturers": [ string ], "excludedDeviceManufacturers": [ string ], "targetedMobileDevices": [ string ], "excludedMobileDevices": [ string ], "targetedMobileDeviceSubmodels": [ string ], "excludedMobileDeviceSubmodels": [ string ] } |
| Fields | |
|---|---|
targetedDeviceManufacturers[] |
Optional. A list of device manufacturer resource names that should be targeted/included. |
excludedDeviceManufacturers[] |
Optional. A list of device manufacturer resource names that should be excluded. |
targetedMobileDevices[] |
Optional. A list of mobile device resource names that should be targeted/included. |
excludedMobileDevices[] |
Optional. A list of mobile device resource names that should be excluded. |
targetedMobileDeviceSubmodels[] |
Optional. A list of mobile device submodel resource names that should be targeted/included. |
excludedMobileDeviceSubmodels[] |
Optional. A list of mobile device submodel resource names that should be excluded. |
MobileCarrierTargeting
Mobile Carrier Targeting.
Used to target or exclude mobile carriers.
| JSON representation |
|---|
{ "targetedMobileCarriers": [ string ], "excludedMobileCarriers": [ string ] } |
| Fields | |
|---|---|
targetedMobileCarriers[] |
Optional. A list of mobile carrier resource names that should be targeted/included. |
excludedMobileCarriers[] |
Optional. A list of mobile carrier resource names that should be excluded. |
OperatingSystemTargeting
Operating System Targeting
| JSON representation |
|---|
{ "targetedOperatingSystems": [ string ], "excludedOperatingSystems": [ string ], "targetedOperatingSystemVersions": [ string ], "excludedOperatingSystemVersions": [ string ] } |
| Fields | |
|---|---|
targetedOperatingSystems[] |
Optional. A list of operating system resource names that should be targeted/included. |
excludedOperatingSystems[] |
Optional. A list of operating system resource names that should be excluded. |
targetedOperatingSystemVersions[] |
Optional. A list of operating system version resource names that should be targeted/included. |
excludedOperatingSystemVersions[] |
Optional. A list of operating system version resource names that should be excluded. |
InventorySizeTargeting
Represents a list of targeted and excluded sizes.
| JSON representation |
|---|
{ "targetedInventorySizes": [ { object ( |
| Fields | |
|---|---|
targetedInventorySizes[] |
Optional. A list of sizes that should be targeted/included. |
excludedInventorySizes[] |
Optional. A list of sizes that should be excluded. |
RequestPlatformTargeting
Represents a list of targeted request platforms.
| JSON representation |
|---|
{
"requestPlatforms": [
enum ( |
| Fields | |
|---|---|
requestPlatforms[] |
Optional. The list of request platforms that should be targeted. |
RequestPlatform
The different environments in which an ad can be shown.
| Enums | |
|---|---|
REQUEST_PLATFORM_UNSPECIFIED |
No value specified |
BROWSER |
Represents a request made from a web browser (incl. desktop browsers, mobile browsers, webviews, etc.). |
MOBILE_APP |
Represents a request made from a Mobile Application. |
VIDEO_PLAYER |
Represents a request made from a video player. |
DateTimeRangeTargeting
Represents targeting for a range of datetimes.
| JSON representation |
|---|
{
"targetedRange": [
{
object ( |
| Fields | |
|---|---|
targetedRange[] |
Optional. The targeted datetime ranges. |
Interval
Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).
The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
| JSON representation |
|---|
{ "startTime": string, "endTime": string } |
| Fields | |
|---|---|
startTime |
Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime |
Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
PublisherProvidedSignalsTargeting
Publisher Provided Signals Targeting
| JSON representation |
|---|
{ "targetedTaxonomyCategories": [ string ], "excludedTaxonomyCategories": [ string ] } |
| Fields | |
|---|---|
targetedTaxonomyCategories[] |
Optional. The resource names of the taxonomy categories that should be targeted/included. |
excludedTaxonomyCategories[] |
Optional. The resource names of the taxonomy categories that should be excluded. |
UserDomainTargeting
User Domain Targeting
| JSON representation |
|---|
{ "targetedUserDomains": [ string ], "excludedUserDomains": [ string ] } |
| Fields | |
|---|---|
targetedUserDomains[] |
Optional. A list of user domains that should be targeted/included. |
excludedUserDomains[] |
Optional. A list of user domains that should be excluded. |
ContextualTargeting
Contextual Targeting
| JSON representation |
|---|
{ "excludedContentLabels": [ string ] } |
| Fields | |
|---|---|
excludedContentLabels[] |
Optional. A list of content labels that should be excluded. |
VideoPositionTargeting
Video Position Targeting
| JSON representation |
|---|
{
"videoPositions": [
{
object ( |
| Fields | |
|---|---|
videoPositions[] |
Optional. A list of video position targeting criterion (applied with a logical AND). |
VideoPosition
Video Position Targeting Criterion
| JSON representation |
|---|
{ "midrollIndex": string, "reverseMidrollIndex": string, "podPosition": string, "positionType": enum ( |
| Fields | |
|---|---|
midrollIndex |
Optional. The index of the mid-roll to target. This field is ignored when targeting any video position (e.g. positionType) other than MIDROLL. |
reverseMidrollIndex |
Optional. The index from the back of the pod of the mid-roll to target. This field is ignored when targeting any video position (e.g. positionType) other than MIDROLL or if targeting a specific midroll index (e.g. midrollIndex != 0). |
podPosition |
Optional. The video position within a pod to target. This field must be unset in order to target a specific video position (e.g. positionType), bumper type (e.g. bumperType), or custom ad spot (e.g. customSpotId). |
positionType |
Optional. The position within a video to target. A video ad can target a position (pre-roll, all mid-rolls, or post-roll) or a specific mid-roll index. |
bumperType |
Optional. The video bumper type to target. This field must be unset in order to target a specific video position (e.g. positionType), pod position (e.g. podPosition), or custom ad spot (e.g. customSpotId). |
VideoPosition
Represents a targetable position within a video.
| Enums | |
|---|---|
VIDEO_POSITION_UNSPECIFIED |
Default value. This value is unused. |
ALL |
Allow ad placement at any position within the video. |
MIDROLL |
Target ad placement during the video. |
POSTROLL |
Target ad placement after the video ends. |
PREROLL |
Target ad placement before the video starts. |
TargetedVideoBumperType
Represents the options for targetable bumper positions, surrounding an ad pod, within a video stream. This includes before and after the supported ad pod positions, VideoPositionEnum.VideoPosition.PREROLL, VideoPositionEnum.VideoPosition.MIDROLL, and VideoPositionEnum.VideoPosition.POSTROLL.
| Enums | |
|---|---|
TARGETED_VIDEO_BUMPER_TYPE_UNSPECIFIED |
Default value. This value is unused. |
AFTER |
Represents the bumper position after the ad pod. |
BEFORE |
Represents the bumper position before the ad pod. |
DataSegmentTargeting
Data Segment Targeting
| JSON representation |
|---|
{ "hasDataSegmentTargeting": boolean } |
| Fields | |
|---|---|
hasDataSegmentTargeting |
Output only. Whether any data segments are currently targeted. |
RequestFormatTargeting
Request Format Targeting
This message specifies inclusion or exclusion of various request formats for targeting. Each optional boolean field controls the targeting of a specific request format:
- If set to
true, the corresponding format is included in targeting. - If set to
false, the corresponding format is excluded from targeting. - If unset, the format is neither explicitly included nor excluded.
| JSON representation |
|---|
{ "appOpenEnabled": boolean, "rewardedEnabled": boolean, "rewardedInterstitialEnabled": boolean, "interstitialEnabled": boolean, "anchorEnabled": boolean, "bannerEnabled": boolean, "instreamVideoEnabled": boolean, "instreamAudioEnabled": boolean, "nativeAdvancedEnabled": boolean } |
| Fields | |
|---|---|
appOpenEnabled |
Optional. Controls app open format targeting. Set to |
rewardedEnabled |
Optional. Controls rewarded format targeting. Set to |
rewardedInterstitialEnabled |
Optional. Controls rewarded interstitial format targeting. Set to |
interstitialEnabled |
Optional. Controls interstitial format targeting. Set to |
anchorEnabled |
Optional. Controls anchor format targeting. Set to |
bannerEnabled |
Optional. Controls banner format targeting. Set to |
instreamVideoEnabled |
Optional. Controls instream video format targeting. Set to |
instreamAudioEnabled |
Optional. Controls instream audio format targeting. Set to |
nativeAdvancedEnabled |
Optional. Controls native advanced format targeting. Set to |
ContentTargeting
Content Targeting
Targeted/excluded content entities and bundles.
| JSON representation |
|---|
{ "targetedContent": [ string ], "excludedContent": [ string ], "targetedContentBundles": [ string ], "excludedContentBundles": [ string ] } |
| Fields | |
|---|---|
targetedContent[] |
Optional. The resource names of the |
excludedContent[] |
Optional. The resource names of the |
targetedContentBundles[] |
Optional. The resource names of the |
excludedContentBundles[] |
Optional. The resource names of the |
MobileApplicationTargeting
Mobile Application Targeting
| JSON representation |
|---|
{
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"firstPartyTargeting": {
object ( |
| Fields | |
|---|---|
| The mobile application targeting. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
firstPartyTargeting |
Optional. The targeted/excluded first-party mobile applications. |
| End of mutually exclusive fields. | |
FirstPartyMobileApplicationTargeting
First-party mobile application targeting.
| JSON representation |
|---|
{ "targetedApplications": [ string ], "excludedApplications": [ string ] } |
| Fields | |
|---|---|
targetedApplications[] |
Optional. The resource names of the first-party applications that should be targeted. |
excludedApplications[] |
Optional. The resource names of the first-party applications that should be excluded. |
DayPartTargeting
Day Part Targeting
| JSON representation |
|---|
{ "targetedDayParts": [ { object ( |
| Fields | |
|---|---|
targetedDayParts[] |
Optional. The targeted day parts. |
daypartingTimeZone |
Required. The time zone to use for the day parts. |
DayPart
A day of the week and time interval within the day.
| JSON representation |
|---|
{ "dayOfWeek": enum ( |
| Fields | |
|---|---|
dayOfWeek |
Required. The day of the week. |
startTime |
Required. The start time of the day part. |
endTime |
Required. The end time of the day part. |
DaypartingTimeZone
Represents the time zone to be used for daypart targeting.
| Enums | |
|---|---|
DAYPARTING_TIME_ZONE_UNSPECIFIED |
Default value. This value is unused. |
PUBLISHER |
Use the time zone of the publisher for daypart targeting. |
USER |
Use the time zone of the browser for daypart targeting. |
BuyerUserListTargeting
Buyer User List Targeting.
| JSON representation |
|---|
{ "hasBuyerUserListTargeting": boolean } |
| Fields | |
|---|---|
hasBuyerUserListTargeting |
Output only. Whether any buyer user lists are currently targeted. |