Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 708 Bytes

File metadata and controls

27 lines (19 loc) · 708 Bytes
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

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