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

Revcontent Bid Adapter: adjusted for Price Floors Module #7093

Merged
merged 3 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions integrationExamples/gpt/revcontent_example_banner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Prebid.js Banner Example</title>
<!-- Prebid.js -->
<!-- <script async src="prebid.js"></script> -->
<!-- <script async src="../../build/dist/prebid.js"></script> -->
<script async src="../../build/dev/prebid.js"></script>
<!-- Google Publisher Tag -->
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
const customConfigObject = {
"buckets": [{
"max": 40,
"increment": 0.5
}]
};
// Prebid Banner Ad Unit
const adUnits = [{
code: '/21623266709/prebid-test',
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [{
bidder: 'revcontent',
params: {
// Your user-id and api-key
apiKey: 'abababababababababababababababababababab',
userId: 111111,
domain: 'www.denverpost.com',
endpoint: 'trends.revcontent.com',
bidfloor: 0.05,
}
}]
},{
code: '/21623266709/prebid-test-2',
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [{
bidder: 'revcontent',
params: {
// Your user-id and api-key
apiKey: 'abababababababababababababababababababab',
userId: 111111,
domain: 'www.denverpost.com',
endpoint: 'trends.revcontent.com',
bidfloor: 0.05,
}
}]
}
];
</script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () {
googletag.pubads().disableInitialLoad();
});
pbjs.que.push(function () {
pbjs.setConfig({
enableSendAllBids: false,
priceGranularity: customConfigObject
});
pbjs.addAdUnits(adUnits);
pbjs.requestBids({ bidsBackHandler: sendAdServerRequest });
});
function sendAdServerRequest() {
googletag.cmd.push(function () {
pbjs.que.push(function () {
pbjs.setTargetingForGPTAsync('/21623266709/prebid-test');
pbjs.setTargetingForGPTAsync('/21623266709/prebid-test-2');
googletag.pubads().refresh();
});
});
}
</script>
<script>
googletag.cmd.push(function () {
googletag
.defineSlot('/21623266709/prebid-test', [[300, 250]], 'div-0')
.addService(googletag.pubads());
googletag
.defineSlot('/21623266709/prebid-test-2', [[300, 250]], 'div-1')
.addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>
<body>
<h2>Prebid.js Banner Example</h2>
<div id='div-0'>
<script>
googletag.cmd.push(function () {
googletag.display('div-0');
});
</script>
</div>
<br>
<div id='div-1'>
<script>
googletag.cmd.push(function () {
googletag.display('div-1');
});
</script>
</div>
<div id="targeting-keys"></div>
</body>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<html>

<head>
<link rel="icon" type="image/png" href="/favicon.png">
<script async src="//www.googletagservices.com/tag/js/gpt.js"></script>
<title>Prebid.js Native Example</title>

<script async src="../../build/dev/prebid.js"></script>
<script async src="//www.googletagservices.com/tag/js/gpt.js"></script>
<script>
/*
Supported sizes:
Expand Down Expand Up @@ -42,8 +42,9 @@
bidder: 'revcontent',
params: {
size: size,
apiKey: '8a33fa9cf220ae685dcc3544f847cdda858d3b1c',
userId: 673,
// Your user-id and api-key
apiKey: 'abababababababababababababababababababab',
userId: 111111,
domain: 'test.com',
endpoint: 'trends.revcontent.com'
}
Expand Down Expand Up @@ -94,14 +95,13 @@
</head>

<body>
<h2>Basic Prebid.js Example</h2>
<h2>Prebid.js Native Example</h2>
<h5>Div-1</h5>
<div id='div-1'>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.display('div-1');
});

</script>
</div>
</body>
Expand Down
Loading