type AdUnitPage (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Captures a page of AdUnit objects.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Field
|
totalResultSetSize
|
xsd:int
The size of the total result set to which this page belongs.
|
startIndex
|
xsd:int
The absolute index in the total result set on which this page begins.
|
results
|
AdUnit[]
The collection of ad units contained within this page.
|
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\u003eAdUnitPage\u003c/code\u003e objects represent a page within a larger set of \u003ccode\u003eAdUnit\u003c/code\u003e objects, providing navigation through the results.\u003c/p\u003e\n"],["\u003cp\u003eThis page structure includes information about the total result set size, the starting position of the current page, and the actual \u003ccode\u003eAdUnit\u003c/code\u003e objects contained within the page.\u003c/p\u003e\n"],["\u003cp\u003eAccessing and manipulating these objects can be done via the \u003ccode\u003eInventoryService\u003c/code\u003e and the \u003ccode\u003egetAdUnitsByStatement()\u003c/code\u003e method, using the defined namespace.\u003c/p\u003e\n"]]],["The `InventoryService` uses `getAdUnitsByStatement()` to retrieve `AdUnitPage` objects. Each `AdUnitPage` contains `AdUnit` results, and information about the `totalResultSetSize` and the `startIndex` of the page within the total result set. The namespace for these operations is `https://www.google.com/apis/ads/publisher/v202408`. The `results` field holds an array of AdUnits within the current page.\n"],null,["# type AdUnitPage (v202408)\n\n**Service** \n**InventoryService** **Dependencies** \n[getAdUnitsByStatement()](/ad-manager/api/reference/v202408/InventoryService#getAdUnitsByStatement) \n▼\n**AdUnitPage**\n\nCaptures a page of [AdUnit](/ad-manager/api/reference/v202408/InventoryService.AdUnit) objects.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| ### `totalResultSetSize` | ` `xsd:`int` The size of the total result set to which this page belongs. |\n| ### `startIndex` | ` `xsd:`int` The absolute index in the total result set on which this page begins. |\n| ### `results` | ` `[AdUnit](/ad-manager/api/reference/v202408/InventoryService.AdUnit)`[]` The collection of ad units contained within this page. |"]]