type TrafficDataResponse (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Contains forecasted and historical traffic volume data describing a segment of traffic.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
historicalTimeSeries
|
TimeSeries
Time series of historical traffic ad opportunity counts.
This may be null if the requested date range did not contain any
historical dates, or if no historical data are available for the
requested traffic segment. This attribute is read-only.
|
forecastedTimeSeries
|
TimeSeries
Time series of forecasted traffic ad opportunity counts.
This may be null if the requested date range did not contain any
future dates, or if no forecasted data are available for the
requested traffic segment. This attribute is read-only.
|
forecastedAssignedTimeSeries
|
TimeSeries
Time series of future traffic volumes forecasted to be sold.
This may be null if the requested date range did not contain any
future dates, or if no sell-through data are available for the
requested traffic segment. This attribute is read-only.
|
overallDateRange
|
DateRange
The overall date range spanned by the union of all time series in
the response.
This is a summary field for convenience. The value will be set
such that the start date is equal to the earliest start date of all
time series included, and the end date is equal to the latest end
date of all time series included.
If all time series fields are null, this field will also be
null. This attribute is read-only.
|
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\u003eTrafficDataResponse object provides forecasted and historical traffic volume data for a specific traffic segment.\u003c/p\u003e\n"],["\u003cp\u003eIt includes time series data for historical traffic, forecasted traffic, and forecasted assigned traffic opportunities.\u003c/p\u003e\n"],["\u003cp\u003eThe data may be null if the requested date range or segment lacks available data.\u003c/p\u003e\n"],["\u003cp\u003eThe overallDateRange field summarizes the date range of all time series within the response for easy reference.\u003c/p\u003e\n"]]],["The `ForecastService` utilizes the `getTrafficData()` function to generate a `TrafficDataResponse`. This response provides data on traffic segments, encompassing `historicalTimeSeries`, `forecastedTimeSeries`, and `forecastedAssignedTimeSeries`. Each of these fields contains time-series data. The `overallDateRange` field summarizes the date range of the included time series data. The data may be null if the date ranges did not contain historical or future dates or if data is not available for a traffic segment.\n"],null,["# type TrafficDataResponse (v202411)\n\n**Service** \n**ForecastService** **Dependencies** \n[getTrafficData()](/ad-manager/api/reference/v202411/ForecastService#getTrafficData) \n▼\n**TrafficDataResponse**\n\nContains forecasted and historical traffic volume data describing a segment of traffic.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `historicalTimeSeries` | ` `[TimeSeries](/ad-manager/api/reference/v202411/ForecastService.TimeSeries)` ` Time series of historical traffic ad opportunity counts. This may be null if the requested date range did not contain any historical dates, or if no historical data are available for the requested traffic segment. This attribute is read-only. \u003cbr /\u003e |\n| ### `forecastedTimeSeries` | ` `[TimeSeries](/ad-manager/api/reference/v202411/ForecastService.TimeSeries)` ` Time series of forecasted traffic ad opportunity counts. This may be null if the requested date range did not contain any future dates, or if no forecasted data are available for the requested traffic segment. This attribute is read-only. \u003cbr /\u003e |\n| ### `forecastedAssignedTimeSeries` | ` `[TimeSeries](/ad-manager/api/reference/v202411/ForecastService.TimeSeries)` ` Time series of future traffic volumes forecasted to be sold. This may be null if the requested date range did not contain any future dates, or if no sell-through data are available for the requested traffic segment. This attribute is read-only. \u003cbr /\u003e |\n| ### `overallDateRange` | ` `[DateRange](/ad-manager/api/reference/v202411/ForecastService.DateRange)` ` The overall date range spanned by the union of all time series in the response. This is a summary field for convenience. The value will be set such that the start date is equal to the earliest start date of all time series included, and the end date is equal to the latest end date of all time series included. If all time series fields are null, this field will also be null. This attribute is read-only. \u003cbr /\u003e |"]]