---
layout: api_prebidjs
title: pbjs.getAdserverTargetingForAdUnitCodeStr(adunitCode)
description: getAdserverTargetingForAdUnitCodeStr API
sidebarType: 1
---

Returns the query string targeting parameters available at the moment for the specified ad unit.

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

**Returns**: `Array` - list of targeting key-value strings.

**Request Params:**

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

| Param | Type | Description |
| --- | --- | --- |
| `adunitCode` | `string` | adUnitCode to get the bid responses for |

**Example**

```javascript
const targetingStrings = pbjs.getAdserverTargetingForAdUnitCodeStr('div-1');
// ["hb_bidder=msft", "hb_adid=233bcbee889d46d", ...]
```
