Back to Publisher API Reference

pbjs.setPAAPIConfigForGPT(options)

Configure GPT slots to use PAAPI.

Kind: static method of pbjs API. Only available when the fledgeForGpt module is installed.

Parameters:

Param Scope Type Description
options Optional Object  
options.adUnitCode Optional String Ad unit filter; if provided, only configure the GPT slot that matches this ad unit
options.auctionId Optional String Auction filter; if provided, only configure GPT slots with PAAPI configs from this auction

Example:

pbjs.setPAAPIConfigForGPT({adUnitCode: 'test-slot'})

Back to Publisher API Reference