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\u003e\u003ccode\u003eAdUnit.TargetWindow\u003c/code\u003e governs how links behave, 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 links within the same page and \u003ccode\u003eBLANK\u003c/code\u003e to open them in a new window.\u003c/p\u003e\n"],["\u003cp\u003eThis enumeration is part of Google Ad Manager's InventoryService, impacting how ads are displayed within ad units.\u003c/p\u003e\n"]]],["The content defines the `AdUnit.TargetWindow` within the `InventoryService` and `SuggestedAdUnitService`, which relates to an HTML link's `target` attribute. It's part of the `https://www.google.com/apis/ads/publisher/v202411` namespace. The `AdUnit.TargetWindow` enumeration has two possible values: `TOP`, which opens the link in the full page body, and `BLANK`, which opens the link in a new window. These values represent how a linked URL is opened.\n"],null,["# enum AdUnit.TargetWindow (v202411)\n\n**Service** \n[InventoryService](/ad-manager/api/reference/v202411/InventoryService.AdUnit.TargetWindow) **SuggestedAdUnitService** **Dependencies** \n[SuggestedAdUnit](/ad-manager/api/reference/v202411/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/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. |"]]