enum AdUnit.TargetWindow (v202408)
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/v202408
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 \u003ccode\u003eTargetWindow\u003c/code\u003e enumeration, within the \u003ccode\u003eInventoryService\u003c/code\u003e namespace, determines how a linked ad unit will open, either within the same or a new browser window.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eTOP\u003c/code\u003e to open the link in the current window and \u003ccode\u003eBLANK\u003c/code\u003e to open it in a new window, mirroring HTML's \u003ccode\u003etarget\u003c/code\u003e attribute functionality.\u003c/p\u003e\n"]]],["The `InventoryService` utilizes `AdUnit`, which has a `TargetWindow` attribute corresponding to an HTML link's `target`. This `TargetWindow` can be set to either `TOP`, opening the link in the full page, or `BLANK`, opening the link in a new window. The namespace for this service is `https://www.google.com/apis/ads/publisher/v202408`. The `SuggestedAdUnitService` also uses the `AdUnit.TargetWindow`.\n"],null,["# enum AdUnit.TargetWindow (v202408)\n\n**Service** \n**InventoryService** [SuggestedAdUnitService](/ad-manager/api/reference/v202408/SuggestedAdUnitService.AdUnit.TargetWindow) **Dependencies** \n[AdUnit](/ad-manager/api/reference/v202408/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/v202408`\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. |"]]