Skip to content

Commit

Permalink
Update hello world example and remove other outdated GPT examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mkendall07 committed Jul 18, 2019
1 parent d3643fd commit 84b0424
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 2,369 deletions.
21 changes: 4 additions & 17 deletions integrationExamples/gpt/gdpr_hello_world.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<html>
<head>
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
(function(window, document) {
if (!window.__cmp) {
Expand Down Expand Up @@ -103,7 +105,6 @@

</script>

<script type="text/javascript" src="../../build/dev/prebid.js" async></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
Expand Down Expand Up @@ -144,21 +145,7 @@
// console.log('timeout in main pbjs fired');
// }, PREBID_TIMEOUT);

</script>

<script>
(function () {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>

</script>
<script>
googletag.cmd.push(function () {
googletag.defineSlot('/19968336/header-bid-tag-0', [[300, 250], [300, 600]], 'div-gpt-ad-1460505748561-0').addService(googletag.pubads());
Expand All @@ -178,4 +165,4 @@ <h5>Div-1</h5>
</script>
</div>
</body>
</html>
</html>
191 changes: 0 additions & 191 deletions integrationExamples/gpt/gpt_aliasingBidder.html

This file was deleted.

22 changes: 5 additions & 17 deletions integrationExamples/gpt/hello_world.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

<html>
<head>
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var PREBID_TIMEOUT = 3300;
var FAILSAFE_TIMEOUT = 3300;

var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
Expand All @@ -34,7 +36,6 @@

</script>

<script type="text/javascript" src="../../build/dev/prebid.js" async></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
Expand Down Expand Up @@ -62,23 +63,10 @@

setTimeout(function() {
sendAdserverRequest();
}, PREBID_TIMEOUT);
}, FAILSAFE_TIMEOUT);

</script>

<script>
(function () {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>

<script>
googletag.cmd.push(function () {
googletag.defineSlot('/19968336/header-bid-tag-0', [[300, 250], [300, 600]], 'div-gpt-ad-1460505748561-0').addService(googletag.pubads());
Expand All @@ -98,4 +86,4 @@ <h5>Div-1</h5>
</script>
</div>
</body>
</html>
</html>
Loading

0 comments on commit 84b0424

Please sign in to comment.