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

Was this helpful?

  1. Legacy - Direct call Nexx360
  2. Nexx Web features
  3. Incontent injection

Dynamic injection

This type of injection is more advanced and allows for the dynamic integration of ad slots according to page templates and user navigation. It's based on viewports and enable optimization of incontent injections while respecting user experience.

The available parameters provide flexibility for injection.

  • .setDynamicSelector: Defines the page element for injection.

  • .setDynamicMainContentSelector: Defines the class or id in which you want to inject ad slots.

  • .setDynamicFirstOffsetSelector: Defines the element from which the first injection will be triggered.

  • .setDynamicDensityIndex: Defines the density of injections on the page. The value "1" corresponds to 1 viewport, so an injection will be triggered each viewport if the criteria of .setDynamicSelector are met. You can set up a value of "0.8" for a higher density of ad slots or a value of "2" for a lower density, for example.

  • .setDynamicMaxRepetition: Enables limiting the injection occurrences on the page. The function will adapt the distance between ad slots so that spacing is regular.

  • .setDynamicStyle: Applies a CSS style to the injected ad slot.

  • .setDynamicBeforeStyle:

  • .setDynamicLabel: Names an ad placement. This name will be incremented at each injection, allowing detailed and proper monitoring. For example: "incontent1" then "incontent2" then "incontent3".

  • .activateDynamicIncrementalAdUnitId : Enables the activation of the auto-creation of incremental GAM ad units. This is optional and can be useful depending on your inventory structure to better monitor each ad unit's performance.

  • .setDynamicIncrementalTargeting : Enables attributing a specific value to each injected ad unit. It must replace .setTargeting in case of identical key in order to avoid duplicate entries.

Here is a code example without the function .activateDynamicIncrementalAdUnitId :

n360Ad.defineDynamicSlot('/your_GAM_network_ID/your_GAM_adunit',[[300,250],['fluid']],'div-3')
  .setNexx360TagId('ENTER YOUR PLACEMENT ID')
  .setDynamicSelector('h3')
  .setDynamicMainContentSelector('.content')
  .setDynamicFirstOffsetSelector('.megabanner')
  .setDynamicDensityIndex(1)
  .setDynamicMaxRepetition(8)
  .setDynamicStyle('text-align:center; margin-bottom: 20px;')
  .setDynamicBeforeStyle('line-height:20px; content:Publicité; color: #777; font-size: 10px; display:inherit')
  .setDynamicLabel('adunit', 'incontent_ad')
  .setTargeting('adunit', 'incontent_ad')
  .setTargeting('position', 'mtf');

Here is a code example with the function .activateDynamicIncrementalAdUnitId :

n360Ad.defineDynamicSlot('/your_GAM_network_ID/your_GAM_adunit',[[300,250],['fluid']],'div-3')
  .setNexx360TagId('ENTER YOUR PLACEMENT ID')
  .setDynamicSelector('h3')
  .setDynamicMainContentSelector('.content')
  .setDynamicFirstOffsetSelector('.megabanner')
  .setDynamicDensityIndex(1)
  .setDynamicMaxRepetition(8)
  .setDynamicStyle('text-align:center; margin-bottom: 20px;')
  .setDynamicBeforeStyle('line-height:20px; content:Publicité; color: #777; font-size: 10px; display:inherit')
  .setDynamicLabel('adunit', 'incontent_ad')
  .activateDynamicIncrementalAdUnitId()
  .setDynamicIncrementalTargeting('adunit', 'incontent_ad-')
  .setTargeting('position', 'mtf');
PreviousAutomated injectionNextLazy Loading

Last updated 1 year ago

Was this helpful?