type AdUnitParent (v202408)
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/v202408
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\u003eAdUnitParent provides a summary of a parent AdUnit, including its ID, name, and ad unit code.\u003c/p\u003e\n"],["\u003cp\u003eThis object is read-only and its values are populated by Google.\u003c/p\u003e\n"],["\u003cp\u003eThe AdUnitParent is used within the InventoryService and SuggestedAdUnitService within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of AdUnitParent are \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003ename\u003c/code\u003e, and \u003ccode\u003eadUnitCode\u003c/code\u003e used for identification and ad serving.\u003c/p\u003e\n"]]],["The content details the `AdUnitParent` within the `InventoryService` and `SuggestedAdUnitService`. An `AdUnitParent` is summarized by its `id`, `name`, and `adUnitCode`. These attributes are strings, read-only, and populated by Google. The `adUnitCode` uniquely identifies the ad unit for serving purposes. All this information is under the namespace: `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type AdUnitParent (v202408)\n\n**Service** \n[InventoryService](/ad-manager/api/reference/v202408/InventoryService.AdUnitParent) **SuggestedAdUnitService** **Dependencies** \n[SuggestedAdUnit](/ad-manager/api/reference/v202408/SuggestedAdUnitService.SuggestedAdUnit) \n▼\n**AdUnitParent**\n\nThe summary of a parent [AdUnit](/ad-manager/api/reference/v202408/InventoryService.AdUnit).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\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. |"]]