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\u003e\u003ccode\u003eAdUnit.TargetWindow\u003c/code\u003e in Google Ad Manager controls how links within ad units open, similar to the \u003ccode\u003etarget\u003c/code\u003e attribute in HTML.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eTOP\u003c/code\u003e to open links in the current window and \u003ccode\u003eBLANK\u003c/code\u003e to open them in a new window.\u003c/p\u003e\n"],["\u003cp\u003eThese settings are managed through the InventoryService and are relevant for ad units and their suggested counterparts within Google Ad Manager's API.\u003c/p\u003e\n"]]],["The document defines the `AdUnit.TargetWindow` within the `InventoryService` and `SuggestedAdUnitService`, which corresponds to an HTML link's `target` attribute. It exists in the namespace `https://www.google.com/apis/ads/publisher/v202408`. Two enumeration values are specified: `TOP`, indicating the link opens in the full page, and `BLANK`, indicating the link opens in a new window. This information is provided through the `SuggestedAdUnit` dependency.\n"],null,["# enum AdUnit.TargetWindow (v202408)\n\n**Service** \n[InventoryService](/ad-manager/api/reference/v202408/InventoryService.AdUnit.TargetWindow) **SuggestedAdUnitService** **Dependencies** \n[SuggestedAdUnit](/ad-manager/api/reference/v202408/SuggestedAdUnitService.SuggestedAdUnit) \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. |"]]