enum AdUnit.TargetWindow (v202405)
Corresponds to an HTML link's target
attribute.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202405
Enumeration |
Description |
TOP
|
Specifies that the link should open in the full body of the page.
|
BLANK
|
Specifies that the link should open in a new window.
|
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-05-15 UTC.
[null,null,["Last updated 2024-05-15 UTC."],[[["`AdUnit.TargetWindow` in Ad Manager API controls how links within an ad unit open, similar to the HTML `target` attribute."],["It offers two options: `TOP` to open in the same window and `BLANK` to open in a new window, affecting user experience within ad interactions."],["This setting resides under `InventoryService` and influences the behavior of links associated with ad units within the Google Ad Manager platform."]]],["The `InventoryService` uses `AdUnit` which includes the `AdUnit.TargetWindow` attribute. This attribute mirrors an HTML link's `target` and defines where a link opens. The `TargetWindow` attribute uses two possible enumeration values: `TOP`, which opens the link in the full page body, and `BLANK`, which opens the link in a new window. These options control link behavior within the ad unit. The service operates under the namespace `https://www.google.com/apis/ads/publisher/v202405`.\n"]]