enum ReportQuery.AdUnitView (v202405)
A view for an ad unit report.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202405
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 2024-05-15 UTC.
[null,null,["Last updated 2024-05-15 UTC."],[[["ReportQuery.AdUnitView is used to generate reports specifically for ad units within Google Ad Manager."],["This view offers three distinct levels of reporting: `TOP_LEVEL`, `FLAT`, and `HIERARCHICAL`, each providing a different perspective on ad unit performance."],["`TOP_LEVEL` focuses on top-level ad units, including metrics for their descendants; `FLAT` reports on all ad units without descendant metrics; and `HIERARCHICAL` utilizes the ad unit hierarchy, potentially replacing standard ad unit columns with multi-level representations."],["When using `HIERARCHICAL` view, the report output is structured to represent the different levels of the ad unit hierarchy, with 'N/A' indicating levels not applicable to a particular row."]]],["The `ReportService` utilizes `ReportQuery` with `ReportQuery.AdUnitView` to define how ad units are viewed in reports. The `AdUnitView` enumeration offers three options: `TOP_LEVEL`, including only top-level units with descendant metrics; `FLAT`, showing all units without descendant metrics; and `HIERARCHICAL`, which uses the ad unit hierarchy. Hierarchical reports replace `AD_UNIT_NAME` and `AD_UNIT_ID` with numbered columns, and if a level doesn't apply, \"N/A\" is returned, descendant metrics are not included.\n"]]