Nexx360 Documentation
  • Nexx360 solutions
  • Nexx360 account
    • Account creation
    • Account settings
      • Add and manage users
      • Configure bidders
      • Create blocklists
      • Implement throttling
  • General configuration
    • Introduction
    • Add and manage websites
    • Add and manage tagIds
    • Bid reductions
    • Cookie Sync script
    • Available bidders
  • Prebid Adapter
    • Introduction
    • Update Prebid with Nexx360 Adapter
    • Multiformat bids
  • VAST / CTV
    • Introduction
    • Create VAST Config
    • Build VAST ad tag
    • Connect the Google Ad Manager (GAM) account
    • Cookie Sync
    • Sample CTV Tag
  • Native
    • Introduction
    • Native Configs
    • GET
    • POST
    • Sample Response
  • Direct Call
    • Introduction
    • API Reference
    • Microsoft AST Example
    • Google Ad Manager Example
      • Connect the Google Ad Manager (GAM) account
  • AMP Nexx360
    • Introduction
    • Ad Server setup
    • Add rtc-config object to amp-ad units
  • OpenRTB
    • Introduction
    • Video Example
    • Mobile Example
    • Cookie Sync
  • Inapp
    • Introduction
    • Request Exemple
    • Google Ad Manager setup
  • API Management
    • Introduction
    • Connexion
    • Sites
      • Create a new site
      • Update site
      • Get Site
      • List Sites
    • TagIds (Stored requests)
      • Create a new tagId (stored request)
      • Update tagId (stored request)
      • Get tagId (Stored request)
      • List tagIds (Stored requests) by site
  • API Campaign
    • Introduction
    • Connexion
    • Orders
      • Create a new order
      • Update order
      • Get Order
      • List Orders
    • Line Items
      • Create a Line Item
      • Update Line Item
      • Get Line Item
      • List Line Items by Order
    • Creatives
      • Create a Creative
      • Update Creative
      • Get Creative
      • List Creatives by Line Items
  • Legacy - Direct call Nexx360
    • Introduction
    • Nexx Web features
      • Smart autorefresh
      • Incontent injection
        • Automated injection
        • Dynamic injection
      • Lazy Loading
      • Non-consent traffic monetisation
    • Integrate Nexx Web script on your site
      • Integration with GAM adserver
        • Nexx Web tag
        • Connect the Google Ad Manager (GAM) account
      • Integration with Xandr adserver
  • Nexx360 console
  • Nexx360 site
Powered by GitBook
On this page
  • n360tag.init(config:InitPayload)
  • FetchBids(fetchBidsPayload, callback)
  • setDisplayBids()

Was this helpful?

  1. Direct Call

API Reference

PreviousIntroductionNextMicrosoft AST Example

Last updated 1 year ago

Was this helpful?

n360tag.init(config:InitPayload)

Typescript Definition

export type Schain = {
  complete: 1,
  ver: '1.0',
  nodes: Array<{
    asi: string,
    sid: string,
    hp: number,
    rid?: string,
    name?: string,
    domain?: string,
  }>,
};

export type InitPayload = {
  gdpr?: {
    cmpTimeout?: number,
  }
  schain?: Schain,
  currency: 'EUR' | 'USD' | 'GBP',
  bidTimeout?: number,
};

initPayload

Property
Required
Type
Description

currency

Required

'EUR' | 'USD' | 'GBP'

Adserver currency

schain

Optional

Object

Schain object

gpdr

Optional

Object

GDPR object

bidTimeout

Optional

Number

fetchBids timeout in milliseconds. Default: 3000 ms

initPayload.gdpr

Property
Required
Type
Description

cmpTimeout

Optional

number

How long, in milliseconds, to wait for a CMP to respond. Default: 50ms

FetchBids(fetchBidsPayload, callback)

Typescript Definition

export type FetchBidsPayload = {
  slots: {
    divId: string,
    tagId: string,
    sizes: [number, number][],
  }[],
  timeout?: number,
}

Description

Property
Required
Type

fetchBidsPayload

Required

Object

fetchBids properties

callback

Required

function

Callback function

FetchBidsPayload

Property
Required
Type

slots

Required

Array of objects

Slots and sizes to run auctions for

timeout

Optional

number

Auction timeout

FetchBidsPayload.slots

Property
Required
Type

tagId

Required

string

Nexx360 tagId provided by our UI

divId

Required

string

Div id where ad will be displayed

sizes

Required

[number, number][]

Eligibles sizes for the auction

setDisplayBids()

This method will set the bid targeting on the googletag slots. An event listener will also be added to the slotRenderEnded event to clear the n360tag* targeting after each slot render.

n360tag.init()
n360tag.fetchBids()
n360tag.setDisplayBids()