Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass additional data to pbjs.setConfig and pbjs.bidderSettings #90

Open
riccardomel opened this issue Jun 24, 2021 · 0 comments
Open

Pass additional data to pbjs.setConfig and pbjs.bidderSettings #90

riccardomel opened this issue Jun 24, 2021 · 0 comments

Comments

@riccardomel
Copy link

Hi all,
I need to add on prebidjs call some additional params:

pbjs.bidderSettings = {
   onetag:{
      bidCpmAdjustment:function(bidCpm, bid){
          return bidCpm * 0.9;
      }
   },
   criteo:{
      bidCpmAdjustment:function(bidCpm, bid){
          return bidCpm * 1;
      }
   },
};

And:

pbjs.setConfig({
      currency: currencyConfig,
      priceGranularity: granularityConfig,
      consentManagement: iabConfig,
      schain: sChainConfig,
      userSync: userSyncConfig,
   });

Where i can integrate this portions of code correctly? (if it's possibile).

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant