Skip to content

Instantly share code, notes, and snippets.

@drew-yieldbot
Last active February 10, 2017 17:57
Show Gist options
  • Select an option

  • Save drew-yieldbot/ba43c4226b7fc2926aebbe84fdf70cc5 to your computer and use it in GitHub Desktop.

Select an option

Save drew-yieldbot/ba43c4226b7fc2926aebbe84fdf70cc5 to your computer and use it in GitHub Desktop.
function ybWidth(){
var w = window,
d = document,
e = d.documentElement,
x = Math.max(e.scrollWidth,e.offsetWidth,e.clientWidth);
return x;
}
var psn;
if(ybWidth()>=481){
psn = "xzn8";
}else{
psn = "t7ms";
}
// Exampe of the prebid setup
"bidder": "yieldbot",
"params": {
"psn": psn,
"slot": "desktop_SB",
"sizes": [300, 600]
}
@combs
Copy link

combs commented Dec 28, 2016

thanks! Where does global var yieldbot come from? Is it loaded from this? @drew-yieldbot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment