Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Filteri Traffic Forecast API the same way as "check inventory" feature

41 views
Skip to first unread message

Henrique Frank

unread,
Mar 7, 2025, 5:43:04 PMMar 7
to Google Ad Manager API Forum

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.

Ad Manager API Forum Advisor

unread,
Mar 10, 2025, 12:00:00 AMMar 10
to henriquef...@gmail.com, google-doubleclick...@googlegroups.com

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().

 

Thanks,
 
Google Logo Ad Manager API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-03-10 03:59:27Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH7NH:ref" (ADR-00292478)



Reply all
Reply to author
Forward
0 new messages