gam_traffic_data
Retrieves historical and forecasted daily traffic for an inventory segment plus impressions assigned to reservations, enabling sell-through checks and inventory planning.
Instructions
MODE: read-only compute (forecast quota). UI: Traffic explorer / Traffic forecast. Historical AND forecasted DAILY traffic for a segment of inventory, plus the portion already assigned to reservations — the sell-through / planning view: 'how much of this inventory do we have, how much is already sold, and what is coming?' Targeting is the same shape as gam_forecast_availability (ad units, placements, geo, key-values, audience segments, device categories); with no targeting it falls back to run-of-network and says so in defaults_applied. OUTPUT: three daily series (historical, forecasted, forecasted-assigned) each with values[], total and daily average, plus the overall date range. WHEN TO USE: inventory planning, sell-through checks, 'do we have room in November', trend questions that need BOTH past and future. For a specific bookable answer (can we sell X impressions) use gam_forecast_availability; for a booked line item use gam_forecast_existing_line_item.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "gam_traffic_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | YYYY-MM-DD, inclusive. | |
| start_date | Yes | YYYY-MM-DD. May be in the past — that is what returns history. | |
| network_code | No | ||
| custom_targeting | No | Key-value targeting. | |
| device_categories | No | ||
| audience_segment_ids | No | ||
| excluded_ad_unit_ids | No | ||
| targeted_ad_unit_ids | No | Ad unit ids (descendants included). | |
| targeted_placement_ids | No | ||
| geo_excluded_location_ids | No | ||
| geo_targeted_location_ids | No | Geo ids (gam_geo_lookup). |