enum ReportQuery.AdUnitView (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
A view for an ad unit report.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
TOP_LEVEL
|
Only the top level ad units. Metrics include events for their
descendants that are not filtered out.
|
FLAT
|
All the ad units. Metrics do not include events for the descendants.
|
HIERARCHICAL
|
Use the ad unit hierarchy. There will be as many ad unit columns as
levels of ad units in the generated report:
- The column Dimension.AD_UNIT_NAME is replaced with columns "Ad unit 1", "Ad
unit 2", ... "Ad unit n". If level is not applicable to a row,
"N/A" is returned as the value.
- The column Dimension.AD_UNIT_ID is replaced with columns "Ad unit ID 1",
"Ad unit ID 2", ... "Ad unit ID n". If level is not applicable to a
row, "N/A" is returned as the value.
Metrics do not include events for the descendants.
|
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."],[],["The `ReportService` utilizes `ReportQuery`, specifically the `AdUnitView`, to define the scope of ad unit reports. `AdUnitView` offers three enumeration options: `TOP_LEVEL` for top-level units, including descendant events; `FLAT` for all units, excluding descendant events; and `HIERARCHICAL`, using the ad unit hierarchy. `HIERARCHICAL` replaces `AD_UNIT_NAME` and `AD_UNIT_ID` with numbered columns like \"Ad unit 1\" and \"Ad unit ID 1\", with \"N/A\" for inapplicable levels, excluding descendant events.\n"],null,["# enum ReportQuery.AdUnitView (v202502)\n\n**Service** \n**ReportService** **Dependencies** \n[ReportQuery](/ad-manager/api/reference/v202502/ReportService.ReportQuery) \n▼\n**ReportQuery.AdUnitView**\n\nA view for an ad unit report.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TOP_LEVEL` | Only the top level ad units. Metrics include events for their descendants that are not filtered out. |\n| `FLAT` | All the ad units. Metrics do not include events for the descendants. |\n| `HIERARCHICAL` | Use the ad unit hierarchy. There will be as many ad unit columns as levels of ad units in the generated report: - The column [Dimension.AD_UNIT_NAME](/ad-manager/api/reference/v202502/ReportService.Dimension#AD_UNIT_NAME) is replaced with columns \"Ad unit 1\", \"Ad unit 2\", ... \"Ad unit n\". If level is not applicable to a row, \"N/A\" is returned as the value. - The column [Dimension.AD_UNIT_ID](/ad-manager/api/reference/v202502/ReportService.Dimension#AD_UNIT_ID) is replaced with columns \"Ad unit ID 1\", \"Ad unit ID 2\", ... \"Ad unit ID n\". If level is not applicable to a row, \"N/A\" is returned as the value. Metrics do not include events for the descendants. |"]]