type RequestPlatformTargeting (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Provides line items the ability to target the platform that
requests and renders the ad.
The following rules apply for RequestPlatformTargeting
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
|
RequestPlatform[]
Enumerations
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
-
BROWSER
- Represents a request made from a web browser. This includes both desktop and mobile web.
-
MOBILE_APP
- Represents a request made from a mobile application. This includes mobile app interstitial and
rewarded video requests.
-
VIDEO_PLAYER
- Represents a request made from a video player that is playing publisher content. This includes
video players embedded in web pages and mobile applications, and connected TV screens.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eRequestPlatformTargeting allows line items to target the platform requesting and rendering the ad (e.g., web, mobile app, video player).\u003c/p\u003e\n"],["\u003cp\u003eIt's required for ProposalLineItems and video line items; for the latter, empty values imply targeting all platforms.\u003c/p\u003e\n"],["\u003cp\u003eFor non-video and proposal-generated line items, RequestPlatformTargeting is read-only and assigned by Google.\u003c/p\u003e\n"],["\u003cp\u003eTargeted platforms are specified using the \u003ccode\u003etargetedRequestPlatforms\u003c/code\u003e field, which can include values like \u003ccode\u003eBROWSER\u003c/code\u003e, \u003ccode\u003eMOBILE_APP\u003c/code\u003e, and \u003ccode\u003eVIDEO_PLAYER\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines services related to ad management, including AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. It details RequestPlatformTargeting, which targets the ad-requesting platform. Key rules include: mandatory specification for ProposalLineItems and video line items, read-only status for non-video and proposal-generated line items, and using empty targetedRequestPlatforms values to target all request platforms. Enumerations for targetedRequestPlatforms include UNKNOWN, BROWSER, MOBILE_APP, and VIDEO_PLAYER.\n"],null,["# type RequestPlatformTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.RequestPlatformTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.RequestPlatformTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.RequestPlatformTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.RequestPlatformTargeting) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.RequestPlatformTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.RequestPlatformTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.RequestPlatformTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.RequestPlatformTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.RequestPlatformTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/NativeStyleService.Targeting) \n▼\n**RequestPlatformTargeting**\n\n\nProvides line items the ability to target the platform that\nrequests and renders the ad.\n\nThe following rules apply for [RequestPlatformTargeting](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting)\n\n- [RequestPlatformTargeting](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting) must be specified for [ProposalLineItem](/ad-manager/api/reference/v202408/ForecastService.ProposalLineItem)s.\n- [RequestPlatformTargeting](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting) must be specified for video line items. Empty values for [RequestPlatformTargeting.targetedRequestPlatforms](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting#targetedRequestPlatforms) mean that all request platforms will be targeted.\n- [RequestPlatformTargeting](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting) is read-only and assigned by Google for non-video line items.\n- [RequestPlatformTargeting](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatformTargeting) is read-only and assigned by Google for line items generated from proposal line items.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|--------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedRequestPlatforms` | ` `[RequestPlatform](/ad-manager/api/reference/v202408/NativeStyleService.RequestPlatform)`[]` *** ** * ** *** **Enumerations** `UNKNOWN` : The value returned if the actual value is not exposed by the requested API version. `BROWSER` : Represents a request made from a web browser. This includes both desktop and mobile web. `MOBILE_APP` : Represents a request made from a mobile application. This includes mobile app interstitial and rewarded video requests. `VIDEO_PLAYER` : Represents a request made from a video player that is playing publisher content. This includes video players embedded in web pages and mobile applications, and connected TV screens. \u003cbr /\u003e |"]]