type TrafficDataRequest (v202411)

  • The ForecastService, specifically the getTrafficData() method, allows you to retrieve traffic data for defined segments.

  • Traffic data is requested by specifying targeting criteria using the TargetingDto object and a date range using the DateRange object.

  • While the requested date range can span past, present, and future dates, returned data might not cover the entire range due to data availability.

Defines a segment of traffic for which traffic data should be returned.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

targeting

Targeting

The TargetingDto that defines a segment of traffic.

This attribute is required.

requestedDateRange

DateRange

The date range for which traffic data are requested. This range may cover historical dates, future dates, or both.

The data returned are not guaranteed to cover the entire requested date range. If sufficient data are not available to cover the entire requested date range, a response may be returned with a later start date, earlier end date, or both.

This attribute is required.