forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prebid:master' into master
- Loading branch information
Showing
104 changed files
with
6,503 additions
and
2,243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 132 additions & 0 deletions
132
integrationExamples/gpt/adnuntius_multiformat_example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
<html> | ||
<head> | ||
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script> | ||
<script async src="../../build/dev/prebid.js"></script> | ||
<script> | ||
var FAILSAFE_TIMEOUT = 3000; | ||
|
||
var adUnits = [{ | ||
code: 'div-gpt-ad-1683695049516-0', | ||
bids: [{ | ||
bidder: 'adnuntius', | ||
params: { | ||
auId: "381535", | ||
network: "1287", | ||
bidType: 'netBid', | ||
targeting: { | ||
kv: { | ||
'isolate': 'native-anto' | ||
} | ||
} | ||
} | ||
}], | ||
mediaTypes: { | ||
banner: { | ||
sizes: [[200, 200]] | ||
}, | ||
video: { | ||
playerSize: [200, 200], | ||
context: 'instream' | ||
} | ||
}}, | ||
{ | ||
code: 'div-gpt-ad-1683695049516-0', | ||
bids: [{ | ||
bidder: 'adnuntius', | ||
params: { | ||
auId: "381535", | ||
network: "1287", | ||
bidType: 'netBid', | ||
targetId: 'fred', | ||
targeting: { | ||
kv: { | ||
'isolate': 'native-anto' | ||
} | ||
} | ||
} | ||
}], | ||
mediaTypes: { | ||
banner: { | ||
sizes: [[200, 200]] | ||
}, | ||
video: { | ||
playerSize: [200, 200], | ||
context: 'instream' | ||
} | ||
}}]; | ||
var googletag = googletag || {}; | ||
googletag.cmd = googletag.cmd || []; | ||
googletag.cmd.push(function() { | ||
googletag.pubads().disableInitialLoad(); | ||
}); | ||
|
||
var pbjs = pbjs || {}; | ||
pbjs.que = pbjs.que || []; | ||
|
||
pbjs.que.push(function() { | ||
pbjs.setConfig({ | ||
enableSendAllBids: true, | ||
targetingControls: { | ||
alwaysIncludeDeals: true | ||
}, | ||
userSync: { | ||
syncEnabled: false | ||
} | ||
}); | ||
|
||
pbjs.setBidderConfig({ | ||
bidders: ['adnuntius'], | ||
config: { | ||
bidType: 'netBid' | ||
} | ||
}); | ||
|
||
pbjs.bidderSettings = { | ||
standard: { | ||
storageAllowed: true | ||
} | ||
}; | ||
|
||
pbjs.addAdUnits(adUnits); | ||
pbjs.requestBids({bidsBackHandler: initAdserver}); | ||
}); | ||
|
||
function initAdserver() { | ||
if (pbjs.initAdserverSet) return; | ||
pbjs.initAdserverSet = true; | ||
googletag.cmd.push(function() { | ||
pbjs.que.push(function() { | ||
pbjs.setTargetingForGPTAsync('div-gpt-ad-1683695049516-0'); | ||
googletag.pubads().refresh(); | ||
}); | ||
}); | ||
} | ||
|
||
// in case PBJS doesn't load | ||
setTimeout(function() { | ||
initAdserver(); | ||
}, FAILSAFE_TIMEOUT); | ||
|
||
window.googletag = window.googletag || {cmd: []}; | ||
googletag.cmd.push(function() { | ||
googletag.defineSlot('/19660636/320x320', [320, 320], 'div-gpt-ad-1683695049516-0').addService(googletag.pubads()); | ||
googletag.pubads().enableSingleRequest(); | ||
googletag.enableServices(); | ||
}); | ||
</script> | ||
</head> | ||
<body> | ||
<h2>Adnuntius NATIVE</h2> | ||
<h5>Ad Slot 1</h5> | ||
|
||
<!-- /19660636/320x320 --> | ||
<div id='div-gpt-ad-1683695049516-0' style='min-width: 320px; min-height: 320px;'> | ||
<script> | ||
googletag.cmd.push(function() { | ||
googletag.display('div-gpt-ad-1683695049516-0'); | ||
}); | ||
</script> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.