type RequestPlatformTargeting (v202411)
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/v202411
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 2024-11-19 UTC.
[null,null,["Last updated 2024-11-19 UTC."],[[["RequestPlatformTargeting allows line items to target the platform requesting and rendering the ad (e.g., web, mobile app, video player)."],["It's required for ProposalLineItems and video line items; for non-video and proposal-generated line items, it's read-only and assigned by Google."],["If RequestPlatformTargeting is used with video line items but the targetedRequestPlatforms field is empty, all request platforms are targeted."],["RequestPlatformTargeting uses the RequestPlatform enum to specify the targeted platforms, including browser, mobile app, and video player."]]],["The document details `RequestPlatformTargeting`, which allows line items to target ad-requesting platforms. It applies to services like `AdRuleService`, `ForecastService`, `LineItemService`, and others. Key rules include: `RequestPlatformTargeting` is mandatory for `ProposalLineItems` and video line items; empty values target all platforms; and it's read-only for non-video and proposal-generated line items. `targetedRequestPlatforms` defines the specific platform types, including `BROWSER`, `MOBILE_APP`, and `VIDEO_PLAYER`.\n"]]