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

Weborama RTD submodule: specify list of bidders to share data #8350

Merged
merged 124 commits into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
bb4ec49
update .submodules.json to include weborama rtd
peczenyj Sep 23, 2021
5221216
Merge branch 'prebid:master' into master
peczenyj Oct 8, 2021
fb19ff0
Merge branch 'master' of https://github.com/prebid/Prebid.js
peczenyj Oct 12, 2021
ab2244c
Merge branch 'master' of https://github.com/prebid/Prebid.js
peczenyj Oct 12, 2021
042d5ed
Merge branch 'prebid:master' into master
peczenyj Nov 17, 2021
e08958c
Merge branch 'prebid:master' into master
peczenyj Nov 17, 2021
6773571
Merge branch 'prebid:master' into master
peczenyj Dec 29, 2021
ceb4c29
add support to pubmatic
peczenyj Dec 29, 2021
be8a319
improve test format
peczenyj Dec 29, 2021
b6ff55b
improve test format ~
peczenyj Dec 29, 2021
949a3e0
add support to appnexus/xandr bidder
peczenyj Dec 29, 2021
d1392fe
fix issue when split set target in two steps: site and user centric data
peczenyj Dec 29, 2021
a1dfe1e
add support to rubicon old style
peczenyj Dec 30, 2021
00a116c
fix code, update docs
peczenyj Dec 30, 2021
e7a41af
add support to global and bid ortb2
peczenyj Dec 30, 2021
824443f
remove unused code
peczenyj Dec 30, 2021
919eaa3
Merge branch 'prebid:master' into master
peczenyj Dec 30, 2021
82b8d47
Merge branch 'prebid:master' into feature/COL-1596-add-support-to-mor…
peczenyj Dec 30, 2021
6f4cc32
refactor code
peczenyj Dec 31, 2021
8b411fd
Merge branch 'feature/COL-1596-add-support-to-more-bidders' of github…
peczenyj Dec 31, 2021
285b172
update bidder list
peczenyj Dec 31, 2021
5887ca0
add global level parameters
peczenyj Dec 31, 2021
4c9c45b
change error to warning
peczenyj Dec 31, 2021
d00358d
update doc
peczenyj Jan 1, 2022
690f91e
refactor
peczenyj Jan 2, 2022
17aae42
add field accountId
peczenyj Jan 3, 2022
62bc86a
update example
peczenyj Jan 3, 2022
ea1f405
refactor js concat string
peczenyj Jan 3, 2022
40f9d3f
refactor js concat string 2
peczenyj Jan 3, 2022
b0a4153
update jsdoc
peczenyj Jan 3, 2022
f0ed630
correct jsdoc
peczenyj Jan 3, 2022
9a57d5f
Merge branch 'prebid:master' into master
peczenyj Jan 4, 2022
013f602
add support to pubmatic
peczenyj Dec 29, 2021
4801800
improve test format
peczenyj Dec 29, 2021
f2cf5c7
improve test format ~
peczenyj Dec 29, 2021
c7a1516
add support to appnexus/xandr bidder
peczenyj Dec 29, 2021
fa405d7
fix issue when split set target in two steps: site and user centric data
peczenyj Dec 29, 2021
179b53b
add support to rubicon old style
peczenyj Dec 30, 2021
67ef176
fix code, update docs
peczenyj Dec 30, 2021
e6b4c9e
add support to global and bid ortb2
peczenyj Dec 30, 2021
a6fc9cc
remove unused code
peczenyj Dec 30, 2021
bcabb9c
refactor code
peczenyj Dec 31, 2021
d6c885f
update bidder list
peczenyj Dec 31, 2021
f562d20
add global level parameters
peczenyj Dec 31, 2021
3e27db6
change error to warning
peczenyj Dec 31, 2021
0bbcb17
update doc
peczenyj Jan 1, 2022
b332ed4
refactor
peczenyj Jan 2, 2022
3471918
add field accountId
peczenyj Jan 3, 2022
8042d16
update example
peczenyj Jan 3, 2022
766be4a
refactor js concat string
peczenyj Jan 3, 2022
87f0abd
refactor js concat string 2
peczenyj Jan 3, 2022
d29bcb3
update jsdoc
peczenyj Jan 3, 2022
ae238e2
correct jsdoc
peczenyj Jan 3, 2022
ab4eef0
Merge branch 'feature/COL-1596-add-support-to-more-bidders' of github…
peczenyj Jan 4, 2022
4153b47
fix log
peczenyj Jan 4, 2022
0083ffd
update example
peczenyj Jan 4, 2022
c872cc3
Merge branch 'master' of https://github.com/prebid/Prebid.js
peczenyj Jan 6, 2022
2f99607
remove todo
peczenyj Jan 6, 2022
4ff8fbc
refactor duplicated code in config normalization
peczenyj Jan 6, 2022
7c8ec73
fix jsdoc
peczenyj Jan 6, 2022
9a388bf
Merge branch 'prebid:master' into master
peczenyj Jan 6, 2022
7851d47
Merge branch 'feature/COL-1596-add-support-to-more-bidders' into devel
peczenyj Jan 6, 2022
77b82de
Merge branch 'master' of github.com:Weborama/Prebid.js into devel
peczenyj Jan 6, 2022
e8691b8
Merge branch 'master' of github.com:Weborama/Prebid.js
peczenyj Jan 6, 2022
27de7d5
Merge branch 'prebid:master' into master
peczenyj Jan 14, 2022
1c9ad80
Merge branch 'prebid:master' into master
peczenyj Jan 21, 2022
8923efe
Merge branch 'master' of github.com:Weborama/Prebid.js into devel
peczenyj Jan 21, 2022
cdfc788
Merge branch 'prebid:master' into master
peczenyj Jan 30, 2022
30c5533
Merge branch 'prebid:master' into master
peczenyj Feb 3, 2022
c7d12f6
add main feature
peczenyj Feb 3, 2022
28512d1
update jstag
peczenyj Feb 3, 2022
d93155f
improve callback
peczenyj Feb 3, 2022
2ff01d1
improve doc
peczenyj Feb 3, 2022
4c92e3f
improve doc about ortb2
peczenyj Feb 3, 2022
18c329b
refactor code
peczenyj Feb 7, 2022
b690ddc
refactor tests to use one adunit
peczenyj Feb 8, 2022
01c5cbd
fix unit tests
peczenyj Feb 8, 2022
3fa058e
prepare to add support to webo lite
peczenyj Feb 8, 2022
4b549f1
refactor code
peczenyj Feb 8, 2022
6512b48
reorder code to handle bid data
peczenyj Feb 8, 2022
7e60682
finish unit test
peczenyj Feb 8, 2022
2c1e2ff
improve copy of data
peczenyj Feb 8, 2022
31d740e
improve unit test by checking callbacks that alter bid data
peczenyj Feb 8, 2022
023969c
format source
peczenyj Feb 8, 2022
529ea3a
fix doc
peczenyj Feb 8, 2022
0238502
specify webo lite as site-centric data
peczenyj Feb 9, 2022
6134655
add check for profile format
peczenyj Feb 9, 2022
be7e84a
update doc and code
peczenyj Feb 9, 2022
cb3ccda
update sendToBidder callback signature
peczenyj Feb 9, 2022
7d453ec
fix doc
peczenyj Feb 9, 2022
6c7f511
fix doc 2
peczenyj Feb 9, 2022
11c96e5
fix js example
peczenyj Feb 9, 2022
edd1be8
update doc
peczenyj Feb 9, 2022
18eeaa1
improve doc
peczenyj Feb 10, 2022
697b992
fix doc for LiTE
peczenyj Feb 10, 2022
b85d8f7
Merge branch 'prebid:master' into master
peczenyj Apr 21, 2022
03c1295
update code and tests
peczenyj Apr 21, 2022
5a702de
Merge branch 'master' into specify-list-of-bidders-to-share-data
peczenyj Apr 21, 2022
5f49479
Merge branch 'master' into devel
peczenyj Apr 21, 2022
d53da9e
update doc
peczenyj Apr 21, 2022
654395b
update unit test
peczenyj Apr 21, 2022
0771e42
improve doc
peczenyj Apr 22, 2022
85056c9
fix sfbx lite code, add isDefault flag on metadata
peczenyj Apr 28, 2022
20a5b5b
remove unused imports in tests
peczenyj Apr 29, 2022
3e2574c
refactor code using ?. operator
peczenyj Apr 29, 2022
ad8e131
improve deep clone usage
peczenyj Apr 29, 2022
52dcad2
Merge branch 'prebid:master' into master
peczenyj Apr 29, 2022
b6bc507
keep code less dinamic
peczenyj Apr 29, 2022
e8e8099
Merge branch 'master' of github.com:Weborama/Prebid.js into devel
peczenyj Apr 29, 2022
e2ef825
Merge branch 'devel' into specify-list-of-bidders-to-share-data
peczenyj Apr 29, 2022
529a297
refactor thinking in the prebid 7
peczenyj Apr 29, 2022
c1341f8
format source
peczenyj Apr 29, 2022
4fc2fd5
format tests
peczenyj Apr 29, 2022
43fa658
suppress mention to lite
peczenyj Apr 29, 2022
c3e2fce
Revert "suppress mention to lite"
peczenyj Apr 29, 2022
c427733
small fix
peczenyj Apr 29, 2022
919a269
refactor init submodule functions
peczenyj Apr 30, 2022
f3ada52
add new constants
peczenyj Apr 30, 2022
3e27b5d
update example
peczenyj Apr 30, 2022
65997d5
simplify code
peczenyj Apr 30, 2022
8a5b814
rename function, rewrite callbacks into () => notation
peczenyj Apr 30, 2022
4154e58
update sfbx lite name
peczenyj May 13, 2022
297f7bc
fix doc
peczenyj May 13, 2022
d6b19ad
Merge branch 'prebid:master' into specify-list-of-bidders-to-share-data
peczenyj May 15, 2022
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
76 changes: 65 additions & 11 deletions integrationExamples/gpt/weboramaRtdProvider_example.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>weborama rtd submodule example</title>
</head>

<body>
Expand All @@ -26,31 +27,39 @@
params: {
setPrebidTargeting: true, // optional
sendToBidders: true, // optional
onData: function (data, site) { // optional
var kind = (site) ? 'site' : 'user';
console.log('onData', kind, data);
onData: function (data, meta) { // optional
console.log('onData', data, meta);
},
weboCtxConf: {
token: "to-be-defined", // mandatory
targetURL: "https://prebid.org", // default is document.URL
setPrebidTargeting: true, // override param.setPrebidTargeting or default true
sendToBidders: true, // override param.sendToBidders or default true
defaultProfile: { // optional
webo_ctx: ['moon'],
webo_ctx: ["Rugby_Renault_c11495", "Sport_c11893"],
webo_ds: ['bar']
},
//, onData: function (data, ...) { ...}
// enabled: false,
//, onData: function (data,...) { ...}
},
weboUserDataConf: {
accountId: 12345, // optional
accountId: 12345, // recommended
setPrebidTargeting: true, // override param.setPrebidTargeting or default true
sendToBidders: true, // override param.sendToBidders or default true
sendToBidders: ['smartadserver'], // specify the bidder to share data
defaultProfile: { // optional
webo_cs: ['Red'],
webo_cs: ['red'],
webo_audiences: ['bam']
},
localStorageProfileKey: 'webo_wam2gam_entry', // default
// enabled: false,
//, onData: function (data,...) { ...}
},
sfbxLiteDataConf: {
enabled: true,
defaultProfile: { // optional
lite_occupation: ['gérant', 'bénévole'],
lite_hobbies: ['sport', 'cinéma'],
},
}
}
}]
Expand All @@ -62,6 +71,9 @@
var div_1_sizes = [
[300, 300]
];
var div_2_sizes = [
[600, 100]
];

var PREBID_TIMEOUT = 3000;
var FAILSAFE_TIMEOUT = 5000;
Expand Down Expand Up @@ -106,6 +118,46 @@
networkId: 456456,
},
}]
},
{
code: '/1056029/webo-wam-prebid',
mediaTypes: {
banner: {
sizes: div_2_sizes
}
},
bids: [{
bidder: 'smartadserver',
params: {
siteId: 1234,
pageId: 1234,
formatId: 1234,
}
}, {
bidder: 'pubmatic',
params: {
publisherId: '32572',
}
}, {
bidder: 'appnexus',
params: {
placementId: 234234,
}
}, {
bidder: 'rubicon',
params: {
accountId: '14062',
siteId: '70608',
zoneId: '335918',
userId: '12346',
}
}, {
bidder: 'criteo',
params: {
zoneId: 234234,
networkId: 456456,
},
}]
}
];

Expand Down Expand Up @@ -138,14 +190,14 @@
});
}


// in case PBJS doesn't load
setTimeout(function () {
initAdserver();
}, FAILSAFE_TIMEOUT);

googletag.cmd.push(function () {
googletag.defineSlot('/1056029/webo-ctx-prebid', div_1_sizes, 'div-gpt-ad-1620653642627-0').addService(googletag.pubads());
googletag.defineSlot('/1056029/webo-wam-prebid', div_2_sizes, 'div-gpt-ad-1645023761875-0').addService(googletag.pubads());
googletag.pubads().disableInitialLoad();
googletag.enableServices();
});
Expand All @@ -154,18 +206,20 @@

<article>
<p>
test webo ctx using prebid.js
test webo rtd submodule with prebid.js
</p>
</article>
<h2>Basic Prebid.js Example</h2>
<h5>Div-1</h5>
<!-- /1056029/webo-ctx-prebid -->
<div id='div-gpt-ad-1620653642627-0' style='width: 300px; height: 300px;'>
<script type='text/javascript'>
googletag.cmd.push(function () {
googletag.display('div-gpt-ad-1620653642627-0');
});
</script>
</div>

<button onclick="googletag.cmd.push(function() { googletag.pubads().refresh(); });">
Show/Refresh Ad
</button>
Expand Down
Loading