---
layout: api_prebidjs
title: pbjs.getHighestUnusedBidResponseForAdUnitCode(adUnitCode)
description: getHighestUnusedBidResponseForAdUnitCode API
sidebarType: 1
---

Use this method to retrieve the highest unused bid for the specified adUnit. Unused means not it's not rendered.
Returns `null` when no suitable bid exists.

This differs from [`getHighestCpmBids()`](/dev-docs/publisher-api-reference/getHighestCpmBids.html) in that getHighestCpmBids only considers bids for auctions that have completed (and are also unused), this function considers bids for ongoing auctions as well.
