enum ReportQuery.AdUnitView (v202408)
A view for an ad unit report.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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-08-20 UTC.
[null,null,["Last updated 2024-08-20 UTC."],[[["ReportQuery.AdUnitView provides a view for ad unit reports within the Google Ad Manager API."],["It uses specific enumerations (`TOP_LEVEL`, `FLAT`, `HIERARCHICAL`) to define the scope and structure of the report data."],["These enumerations control how ad units and their descendants are included and how metrics are calculated in the report."],["The `HIERARCHICAL` enumeration offers a multi-level view of ad units, replacing standard ad unit columns with level-specific ones."]]],["The `ReportService` uses `ReportQuery.AdUnitView` to define how ad unit data is viewed in a report. This view has three options: `TOP_LEVEL`, which shows only top-level ad units including descendant events; `FLAT`, which displays all ad units without descendant events; and `HIERARCHICAL`, which structures the report using the ad unit hierarchy with \"Ad unit n\" and \"Ad unit ID n\" columns for each level, and no events for the descendants. The namespace is `https://www.google.com/apis/ads/publisher/v202408`.\n"]]