Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 911 Bytes

File metadata and controls

16 lines (12 loc) · 911 Bytes
layout api_prebidjs
title pbjs.setTargetingForAst(adUnitCode)
description setTargetingForAst API
sidebarType 1

Set query string targeting for AST (Seller Tag) ad unit(s). Note that this function has to be called after all ad units on page are defined. For working example code, see Using Prebid.js with Microsoft Publisher Ad Server. If the function is invoked without arguments it will set targeting for all adUnits defined.

Kind: static method of pbjs API

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

Param Scope Type Description
adUnitCode Optional String or Array of strings Code(s) of the adUnit(s) for which targeting is being set. Omitting this parameter will set targeting on all adUnits.