-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnon_gpt_integration.html
More file actions
59 lines (43 loc) · 1.51 KB
/
non_gpt_integration.html
File metadata and controls
59 lines (43 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html lang="en-us">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<style type="text/css" media="screen">
</style>
<script type='text/javascript'>
var rubicontag = rubicontag || {};
rubicontag.cmd = rubicontag.cmd || [];
var gptadslots = [];
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>
<!--Replace '14062' with your rubicon project account id number a test account is used for demo purposes-->
<script type="text/javascript" src="http://ads.rubiconproject.com/header/14062.js"></script>
<script type='text/javascript'>
rubicontag.cmd.push(function() {
rubicontag.defineSlot('/112115922/FLPT-728x90', [[728,90]], 'fastlane-lb-div');
// run rubicontag
rubicontag.run(callAdServer);
});
var adServerCalled = false;
var callAdServer = function() {
if (adServerCalled) {
return;
}
adServerCalled = true;
// getAdServerTargeting() can be used for all or individual slots
// To get all of the targeting objects
var rpfl_targeting = [];
for (var i = 0; i < window.rubicontag.getAllSlots().length; i++){
rpfl_targeting.push(window.rubicontag.getAllSlots()[i].getAdServerTargeting());
};
// To get targeting for an individual slot
// fastlane-lb-div is the same as what’s passed in rubicontag.defineSlot()
window.rubicontag.getSlot('fastlane-lb-div').getAdServerTargeting();
};
// fail-safe to call ad-server
setTimeout(callAdServer, 1000);
</script>
</head>
<body>
</body>
</html>