gam_forecast_availability
Forecast available, matched, and possible impressions for a prospective Google Ad Manager booking by dates, sizes, and targeting, with goal achievability checks.
Instructions
MODE: read-only compute (creates no entities). UI: Inventory → Traffic forecast. Availability forecast for a PROSPECTIVE booking: how many impressions are available/matched/possible for given dates, sizes and targeting — the pre-booking inventory check. Targeting SHOULD be explicit (ad units and/or placements; optional geo, key-values, audience segments, device categories). If NO targeting is given at all, the forecast falls back to the network root ad unit (run-of-network) and the response carries defaults_applied. Simulates a CPM line item with a LIFETIME impressions goal. Self-heals invalid targeting ids (stale key-values, untargetable geo) by removing them, retrying, and reporting what was removed under selfHealed. OUTPUT: available/matched/possible/delivered/reserved units, goal achievability when goal_impressions is set, optional contending line items, per-criteria and per-size breakdowns. NOT the same as gam_forecast_existing_line_item (that one forecasts an EXISTING line item by id).
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>",
"sizes": "<sizes>"
},
"name": "gam_forecast_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sizes | Yes | Creative sizes as [width, height] pairs, e.g. [[970, 250],[300,250]]. | |
| end_date | Yes | "YYYY-MM-DD", inclusive (ends 23:59:59 network time). | |
| start_date | Yes | "YYYY-MM-DD" or "now" (today starts immediately). | |
| network_code | No | Default: GOOGLE_AD_MANAGER_NETWORK_CODE. GAM_TEST_NETWORK_CODE is also allowed. | |
| frequency_cap | No | ||
| line_item_type | No | Default STANDARD. | |
| custom_targeting | No | Key-value targeting criteria (ANDed with the other criteria). | |
| goal_impressions | No | Booking goal. Omit for max-availability. | |
| device_categories | No | ||
| per_size_breakdown | No | Per-creative-size availability breakdown. | |
| audience_segment_ids | No | Audience segment ids (9-10 digits). | |
| excluded_ad_unit_ids | No | ||
| targeted_ad_unit_ids | No | GAM ad unit ids to target (descendants included). | |
| targeted_placement_ids | No | GAM placement ids. | |
| geo_excluded_location_ids | No | ||
| geo_targeted_location_ids | No | Geo criteria ids (gam_geo_lookup). | |
| include_targeting_breakdown | No | Per-criteria available/matched breakdown. | |
| include_contending_line_items | No | List line items competing for this inventory. |