enum AdUnit.TargetWindow (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Corresponds to an HTML link's target
attribute.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThe InventoryService's AdUnit.TargetWindow determines how a link opens, similar to an HTML link's \u003ccode\u003etarget\u003c/code\u003e attribute.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eTOP\u003c/code\u003e to open in the current page and \u003ccode\u003eBLANK\u003c/code\u003e to open in a new window.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality is defined within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],["The `InventoryService` uses `AdUnit`, which contains `AdUnit.TargetWindow`, mirroring an HTML link's `target` attribute. This attribute determines how a link opens. The available options are `TOP`, opening the link in the full page body, and `BLANK`, opening the link in a new window. The relevant namespace for this service is `https://www.google.com/apis/ads/publisher/v202411`. The service is also dependant on `SuggestedAdUnitService`.\n"],null,["# enum AdUnit.TargetWindow (v202411)\n\n**Service** \n**InventoryService** [SuggestedAdUnitService](/ad-manager/api/reference/v202411/SuggestedAdUnitService.AdUnit.TargetWindow) **Dependencies** \n[AdUnit](/ad-manager/api/reference/v202411/InventoryService.AdUnit) \n▼\n**AdUnit.TargetWindow**\n\nCorresponds to an HTML link's `target` attribute.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-------------|-------------------------------------------------------------------|\n| `TOP` | Specifies that the link should open in the full body of the page. |\n| `BLANK` | Specifies that the link should open in a new window. |"]]