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

Returns bidResponses for the specified adUnitCode. See full documentation at [pbjs.getBidResponses()](/dev-docs/publisher-api-reference/getBidResponses.html).

**Kind**: static method of `pbjs`

**Returns**: `Array` - an array of bid responses. For backwards compatibility, the array exposes the array also under the `.bids` property.

{: .table .table-bordered .table-striped }

| Param | Scope | Type | Description |
| --- | --- | --- | --- |
| adUnitCode | Required | `String` | adUnitCode |
