abstract type AdUnitAction (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents the actions that can be performed on AdUnit objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eInventoryService uses \u003ccode\u003eperformAdUnitAction()\u003c/code\u003e to perform actions on AdUnits.\u003c/p\u003e\n"],["\u003cp\u003eAdUnitAction represents the possible actions on AdUnits like activating, archiving and deactivating.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eActivateAdUnits\u003c/code\u003e, \u003ccode\u003eArchiveAdUnits\u003c/code\u003e, and \u003ccode\u003eDeactivateAdUnits\u003c/code\u003e are specific types of AdUnitActions.\u003c/p\u003e\n"],["\u003cp\u003eThese actions are defined within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],["The `InventoryService` allows actions on `AdUnit` objects via `performAdUnitAction()`. The available `AdUnitAction` types include `ActivateAdUnits`, `ArchiveAdUnits`, and `DeactivateAdUnits`. These actions modify the state of `AdUnit` objects. The relevant namespace for these operations is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# abstract type AdUnitAction (v202411)\n\n**Service** \n**InventoryService** **Dependencies** \n[performAdUnitAction()](/ad-manager/api/reference/v202411/InventoryService#performAdUnitAction) \n▼\n**AdUnitAction** **Inheritance** \n**AdUnitAction** \n▼\n[ActivateAdUnits](/ad-manager/api/reference/v202411/InventoryService.ActivateAdUnits) [ArchiveAdUnits](/ad-manager/api/reference/v202411/InventoryService.ArchiveAdUnits) [DeactivateAdUnits](/ad-manager/api/reference/v202411/InventoryService.DeactivateAdUnits)\n\nRepresents the actions that can be performed on [AdUnit](/ad-manager/api/reference/v202411/InventoryService.AdUnit) objects.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|---|---|"]]