type AdUnitParent (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
The summary of a parent AdUnit.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
id
|
xsd:string
The ID of the parent AdUnit . This value is readonly and is populated by Google.
|
name
|
xsd:string
The name of the parent AdUnit . This value is readonly and is populated by Google.
|
adUnitCode
|
xsd:string
A string used to uniquely identify the ad unit for the purposes of serving the ad. This
attribute is read-only and is assigned by Google when an ad unit is created.
|
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 AdUnitParent object summarizes the parent of an ad unit, providing identification and naming details.\u003c/p\u003e\n"],["\u003cp\u003eThis object includes read-only fields like ID, name, and ad unit code, populated by Google.\u003c/p\u003e\n"],["\u003cp\u003eAdUnitParent is part of the InventoryService and is referenced within the SuggestedAdUnitService.\u003c/p\u003e\n"]]],["The core content details the `AdUnitParent` within the `InventoryService`, which is dependent on `AdUnit`. It outlines three key read-only fields for the parent AdUnit: `id`, a Google-generated identifier; `name`, also populated by Google; and `adUnitCode`, a unique, Google-assigned string used for ad serving. These fields are used to summarize a parent AdUnit.\n"],null,["# type AdUnitParent (v202411)\n\n**Service** \n**InventoryService** [SuggestedAdUnitService](/ad-manager/api/reference/v202411/SuggestedAdUnitService.AdUnitParent) **Dependencies** \n[AdUnit](/ad-manager/api/reference/v202411/InventoryService.AdUnit) \n▼\n**AdUnitParent**\n\nThe summary of a parent [AdUnit](/ad-manager/api/reference/v202411/InventoryService.AdUnit).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `id` | ` `xsd:`string` The ID of the parent `AdUnit`. This value is readonly and is populated by Google. |\n| ### `name` | ` `xsd:`string` The name of the parent `AdUnit`. This value is readonly and is populated by Google. |\n| ### `adUnitCode` | ` `xsd:`string` A string used to uniquely identify the ad unit for the purposes of serving the ad. This attribute is read-only and is assigned by Google when an ad unit is created. |"]]