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\u003e\u003ccode\u003eAdUnitParent\u003c/code\u003e 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 \u003ccode\u003eadUnitCode\u003c/code\u003e is used to uniquely identify the ad unit for serving ads.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this object is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content defines the `AdUnitParent` within the `InventoryService`, specifically its dependencies and fields. `AdUnitParent` is a summary of a parent `AdUnit`. Key information includes its `id`, `name`, and `adUnitCode`, all of which are read-only and populated by Google. The `adUnitCode` uniquely identifies the ad unit for ad serving. It's associated with the `SuggestedAdUnitService` and resides within a designated namespace.\n"],null,["# type AdUnitParent (v202408)\n\n**Service** \n**InventoryService** [SuggestedAdUnitService](/ad-manager/api/reference/v202408/SuggestedAdUnitService.AdUnitParent) **Dependencies** \n[AdUnit](/ad-manager/api/reference/v202408/InventoryService.AdUnit) \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. |"]]