Hi everyone, hope you're doing well
A business user generated a report from the UI using these parameters below from the "check inventory" feature. But we couldn't do the same using the API.
We are using the traffic forecast API to return data for forecast avails for a particular ad_unit_id, but also, we wanted to filter by some parameters shown at the UI as: Inventory sizes (e.g.:480x200), Type (e.g.: STANDARD), Priority (e.g.: 2), Quantity (e.g.: Max available), Display Creatives (e.g: One or More).
Does anyone knowns how can we add these parameters to the forecastService.getTrafficData() and test it?
Please respond ASAP if you have any idea. Thanks.
Regards, Frank.
Hi,
Thank you for contacting the Ad Manager API support team.
I have reviewed your query and understand that you want to know if it is possible to retrieve the available inventory forecast via the Ad Manager API. I can confirm that it is indeed possible. The equivalent method in the API is getAvailabilityForecast(), which allows you to check inventory forecasts. You can refer to this sample java code of getAvailabilityForecast() and all the available client libraries of the Ad Manager API.
The forecast includes the available, matched, possible, delivered, and reserved units. It can also include all the contending line items and the available units for each targeting breakdown depending on the options set in the AvailabilityForecastOptions.
Please note that the forecastService.getTrafficData() is used to return forecasted and historical traffic data for the specified segment of traffic. I recommend referring to this link for fields supported in the forecastService.getTrafficData().
![]() |
Ad Manager API Team |
[2025-03-10 03:59:27Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH7NH:ref" (ADR-00292478)