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

Ci commerce media #3266

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
447 commits
Select commit Hold shift + click to select a range
038534c
OTT-71: Add stats collecting information around the actual Ad duratio…
ShriprasadM Jan 12, 2021
846b4fc
Update config.go (#105)
PubMatic-OpenWrap Jan 15, 2021
41c3a65
UOE-5909: Trimming PublisherId field (#107)
sachin-pubmatic Feb 1, 2021
c5175d5
UOE-5909: Trimming publisherID field (#114)
sachin-pubmatic Feb 11, 2021
eccca22
UOE-5909: removed unwanted test
sachin-pubmatic Feb 11, 2021
6fcee64
Merge branch 'master' of https://github.com/PubMatic-OpenWrap/prebid-…
sachin-pubmatic Feb 11, 2021
984ee22
Prebid upgrade 0.146.0 ci1 (#117)
PubMatic-OpenWrap Feb 17, 2021
a79d86f
Revert "Prebid upgrade 0.146.0 ci1 (#117)" (#118)
PubMatic-OpenWrap Feb 17, 2021
a12843e
Prebid upgrade 0.146.0 (#115)
PubMatic-OpenWrap Mar 2, 2021
6d062bb
UOE-6077:updating usersync url for IX (#112)
PubMatic-OpenWrap Mar 2, 2021
0e361ac
UOE-6043: updating vrtcal endpoint (#111)
PubMatic-OpenWrap Mar 2, 2021
65c04f5
UOE-5909: Trimming publisherid for pubmatic adapter (#126)
sachin-pubmatic Mar 2, 2021
d7e2a8c
UOE-6121: Reverting changes for sec flag for uids cookie (#122)
sachin-pubmatic Mar 3, 2021
45a41d1
UOE-6196:commenting code to populate adpod_id in appnexus request (#131)
PubMatic-OpenWrap Mar 16, 2021
d1f6b87
UOE-6011: Fixing multiformat bug (#127)
PubMatic-OpenWrap Mar 16, 2021
f6b485c
UOE-6210: Default value for usersync url is missing for bidder between
sachin-pubmatic Mar 24, 2021
1dcf910
OTT-105: VCR - Video Event Trackers (#152)
ShriprasadM May 5, 2021
c360511
OTT-172: Set default min ads to 1 from 2 (#153)
Pubmatic-Dhruv-Sonone May 11, 2021
d7f2b67
Revert "OTT-172: Set default min ads to 1 from 2 (#153)" (#154)
PubMatic-OpenWrap May 12, 2021
4105725
UOE-6319: OpenWrap S2S: Prebid Server Version Update to 0.157.0 (#146)
sachin-pubmatic May 14, 2021
fa6d819
UOE-6319: Upgraded prebid-server to 0.157.0 (#156)
sachin-pubmatic May 14, 2021
2037771
OTT-172: Set Default min Ads value to 1 from 2 (#161)
Pubmatic-Dhruv-Sonone May 25, 2021
80d3d40
UOE-6444:updating unruly URLs (#159)
PubMatic-OpenWrap May 25, 2021
a8aed1b
UOE-6240: Openwrap S2S: Send gpt slot name in extension field (#162)
sachin-pubmatic May 25, 2021
9860ee0
OTT-192: Ensure sURL (Event Tracker) and orig (OW Logger) parameter v…
Pubmatic-Dhruv-Sonone Jun 2, 2021
ca9b117
OTT-197: Log Partner bidder code in video event tracker (#168)
Pubmatic-Dhruv-Sonone Jun 15, 2021
7c2e2d2
OTT-223 Adding Client Configurations
pm-viral-vala Jul 6, 2021
a8fb2e7
UOE-6646: Added label adapter_name for tls_handshake_time stat
sachin-pubmatic Jul 9, 2021
b420a11
Fixed typo
sachin-pubmatic Jul 9, 2021
62934aa
OTT-227 Fixing Panic Issue for Prebid Adapter (#176)
pm-viral-vala Jul 9, 2021
c16692e
Merge pull request #177 from PubMatic-OpenWrap/UOE-6646
pm-isha-bharti Jul 14, 2021
6c8508d
OTT-216: add all SupportDeal features (#183)
Pubmatic-Dhruv-Sonone Jul 27, 2021
4ec85b0
UOE-6525: In-app OTT Add Support for dctr and pmzoneid (#170)
sachin-pubmatic Jul 27, 2021
721dfc1
UOE-6534: OW Prebid-server: Use fallback mechanism for get slot name …
sachin-pubmatic Jul 27, 2021
3c564c7
OTT-48 VAST Bidder Phase 1 (#186)
pm-viral-vala Jul 27, 2021
b594df4
UOE-6610: Upgrade prebid-server to 0.170.0 (#190)
sachin-pubmatic Aug 17, 2021
b14bfcd
UOE-6774: Fixed Spotx GDPR issue (#195)
sachin-pubmatic Aug 17, 2021
1ef324d
Handled NPE in interstitial.go (#196)
sachin-pubmatic Aug 18, 2021
2d39ba3
OTT-217 - Remove loggers for filtered VAST Tags
PubMatic-OpenWrap Aug 31, 2021
7053237
UOE-6744: Added code missed in previous prebid-server upgrade (#200)
sachin-pubmatic Aug 31, 2021
cf8805c
UOE-6853: Update ExtCTVBid to include skadn
pm-isha-bharti Sep 13, 2021
5111eb1
UOE-6853: Renaming ExtCTVBid to ExtOWBid
pm-isha-bharti Sep 13, 2021
a2763f2
Merge pull request #201 from PubMatic-OpenWrap/UOE-6853
pm-isha-bharti Sep 15, 2021
43b271a
Run validate.sh to format files & fixed unit test for bidderparams (#…
sachin-pubmatic Sep 15, 2021
cb1a1fb
UOE-6929: fix bug for size passed as 0 for multiformat banner not mapped
pm-isha-bharti Oct 8, 2021
ded4b16
Merge pull request #215 from PubMatic-OpenWrap/UOE-6929
pm-isha-bharti Oct 12, 2021
680f766
UOE-6719: Added scheduler for fetching gdpr vendor-list files (#210)
sachin-pubmatic Oct 12, 2021
ec60918
UOE-6855: Enabled pangle bidder (#207)
sachin-pubmatic Oct 12, 2021
928894d
OTT-244 OW OpenWrap OTT Inline Header Bidding (#227)
pm-viral-vala Jan 3, 2022
0081beb
OTT-245 We are getting Timeout errors for all the error on Vast Endpo…
pm-viral-vala Jan 3, 2022
46426e3
OTT-409 Supporting ';' in VAST Tag
pm-viral-vala Jan 14, 2022
515beff
OTT-409: Removed price node related changes looking at hot fix context
pm-shriprasad-marathe Jan 21, 2022
74d62fd
OTT-409: Removed pricing node related change
pm-shriprasad-marathe Jan 21, 2022
7be43b3
Merge pull request #233 from PubMatic-OpenWrap/OTT-409_only_hot_fix
pm-abhinav-sinha Jan 21, 2022
e3dce91
UOE-7297: Place skadn at bidreq.imp[].ext.skadn (#239)
pm-nilesh-chate Jan 27, 2022
b178cc3
Merge tag 'tags/v0.170.0' into nyc-fix-170-1
pm-nilesh-chate Jan 28, 2022
0402598
Merge pull request #240 from PubMatic-OpenWrap/nyc-fix-170-1
pm-nilesh-chate Jan 28, 2022
ce73f8d
Merge tag 'tags/v0.192.0' into prebid_v0.192.0-v1
pm-nilesh-chate Jan 31, 2022
915eacb
Merge pull request #243 from PubMatic-OpenWrap/prebid_v0.192.0-v1
pm-nilesh-chate Feb 10, 2022
05245c4
Add default pull request template (#245)
pm-nilesh-chate Feb 10, 2022
694a556
OTT-415: ifa_type for VAST bidder
pm-shriprasad-marathe Feb 11, 2022
f499e5f
Update validate.yml
ShriprasadM Feb 15, 2022
9b9e397
OTT-415: Reverted the change
pm-shriprasad-marathe Feb 15, 2022
4019dc7
OTT-415: Addressed Review Comments
pm-shriprasad-marathe Feb 15, 2022
7698bf7
Merge pull request #252 from PubMatic-OpenWrap/UOE-7300-ci-2
pm-nilesh-chate Feb 15, 2022
af21aa2
Revert "Merge pull request #252 from PubMatic-OpenWrap/UOE-7300-ci-2"
pm-nilesh-chate Feb 15, 2022
91c4d3b
UOE-7300: Revert unintended testcase
pm-nilesh-chate Feb 15, 2022
f108315
UOE-7300: Skip main test from coverage
pm-nilesh-chate Feb 15, 2022
2e833c6
UOE-7300: Fix pkg util/task test coverage
pm-nilesh-chate Feb 16, 2022
d67cce8
Merge branch 'master' into OTT-415_ifa_type
pm-shriprasad-marathe Feb 16, 2022
90a93a5
Merge pull request #247 from PubMatic-OpenWrap/OTT-415_ifa_type
Pubmatic-Dhruv-Sonone Feb 22, 2022
5beb9be
UOE-7051: Fix pubmatic aliases buyid targeting key #259 (#260)
pm-nilesh-chate Apr 5, 2022
13ede53
UOE-7610: Codify OW patch (#282)
pm-nilesh-chate May 4, 2022
747499e
UOE-7610: Add upgrade script (#284)
pm-nilesh-chate May 5, 2022
9686a9c
Merge branch 'master' into prebid_v0.193.0-3
pm-nilesh-chate May 6, 2022
7dbcaa4
Merge branch 'master' into prebid_v0.194.0-3
pm-nilesh-chate May 6, 2022
1cd5806
Merge branch 'master' into prebid_v0.195.0-3
pm-nilesh-chate May 6, 2022
6f667ae
Merge branch 'master' into prebid_v0.196.0-3
pm-nilesh-chate May 6, 2022
3fe352c
Merge branch 'master' into prebid_v0.197.0-3
pm-nilesh-chate May 6, 2022
1fabce2
Merge branch 'master' into prebid_v0.198.0-3
pm-nilesh-chate May 6, 2022
5e0f73c
Merge branch 'master' into prebid_v0.199.0-3
pm-nilesh-chate May 6, 2022
b39a402
Merge branch 'master' into prebid_v0.200.0-3
pm-nilesh-chate May 6, 2022
d2833af
Merge branch 'master' into prebid_v0.201.0-3
pm-nilesh-chate May 6, 2022
61cf336
Merge branch 'master' into prebid_v0.202.0-3
pm-nilesh-chate May 6, 2022
381dc0e
Merge branch 'master' into prebid_v0.203.0-3
pm-nilesh-chate May 6, 2022
6b18cc6
Merge branch 'master' into prebid_v0.204.0-3
pm-nilesh-chate May 6, 2022
8dc4256
Merge branch 'master' into prebid_v0.205.0-3
pm-nilesh-chate May 6, 2022
4c021b9
Merge branch 'master' into prebid_v0.206.0-3
pm-nilesh-chate May 6, 2022
601a2a0
Merge branch 'master' into prebid_v0.207.0-3
pm-nilesh-chate May 6, 2022
3e4744c
Merge branch 'master' into prebid_v0.208.0-3
pm-nilesh-chate May 6, 2022
c52fcc2
UOE-7719: Fill new GDPR ex.AuctionReq fields
pm-nilesh-chate May 6, 2022
ad16d3f
UOE-7728: Fix cacheSave and Load func(). Add tests
pm-nilesh-chate May 9, 2022
4b0fbd6
Merge pull request #286 from PubMatic-OpenWrap/prebid_v0.208.0-1
pm-nilesh-chate May 18, 2022
16f47c6
OTT-495 & OTT-499: Creating bidder requests for content object trans…
Pubmatic-Dhruv-Sonone May 18, 2022
b820e61
Release: OTT_Q2_7_June_2022 (#305)
ShriprasadM Jun 1, 2022
54a7be0
Merge branch 'master' into prebid_v0.209.0-4
pm-nilesh-chate Jun 8, 2022
4abf9cd
Merge branch 'master' into prebid_v0.210.0-4
pm-nilesh-chate Jun 8, 2022
a5ca3b1
Merge branch 'master' into prebid_v0.211.0-4
pm-nilesh-chate Jun 8, 2022
b6e5c27
Merge branch 'master' into prebid_v0.212.0-4
pm-nilesh-chate Jun 8, 2022
11b43f9
Merge branch 'master' into prebid_v0.213.0-4
pm-nilesh-chate Jun 8, 2022
31d0dd2
Release: OWS_Q2_21_June_2022 (#317)
pm-nikhil-vaidya Jun 14, 2022
6ea3250
Release: OWS_Q2_5_July_2022 (#324)
pm-nikhil-vaidya Jun 29, 2022
071e999
UOE-7905: Do not allow publishers to bypass GDPR (#326)
pm-nilesh-chate Jul 1, 2022
05e9fe3
UOE-7905: Do not allow publishers to bypass GDPR (#326) (#328)
pm-nilesh-chate Jul 7, 2022
f7c7648
Merge pull request #329 from PubMatic-OpenWrap/ci
pm-viral-vala Jul 12, 2022
0b19183
OTT-603: adding new test price granularity (#327)
pm-viral-vala Jul 13, 2022
8281aad
Merge remote-tracking branch 'origin/prebid_v0.213.0-1'
pm-nilesh-chate Jul 13, 2022
67cc2f9
Merge branch 'master' into prebid_v0.214.0-4
pm-nilesh-chate Jul 14, 2022
c33cd4c
Merge branch 'master' into prebid_v0.215.0-4
pm-nilesh-chate Jul 14, 2022
af09347
Merge branch 'master' into prebid_v0.216.0-4
pm-nilesh-chate Jul 14, 2022
face1af
Merge branch 'master' into prebid_v0.217.0-4
pm-nilesh-chate Jul 14, 2022
2143048
upgrade to v0.217.0
pm-nilesh-chate Jul 18, 2022
6c51bf5
OTT-641: adding test flag for price granularity (#333)
pm-viral-vala Jul 19, 2022
b968f2b
Merge pull request #332 from PubMatic-OpenWrap/prebid_v0.217.0-ci-1
pm-nilesh-chate Jul 27, 2022
260e22d
Merge pull request #334 from PubMatic-OpenWrap/ci
pm-nilesh-chate Aug 9, 2022
a0bc7ca
UOE-7958: Added Data field in ExtUser
pm-aadit-patil Aug 10, 2022
bd07e21
Merge pull request #336 from PubMatic-OpenWrap/UOE-7958-ci-2
pm-nilesh-chate Aug 12, 2022
9dc4767
OTT-652: Added changes for reading adunit from imp.tagID
pm-jaydeep-mohite Aug 12, 2022
439c564
OTT-652:Addressed review comments
pm-jaydeep-mohite Aug 16, 2022
c69ac48
Merge pull request #337 from PubMatic-OpenWrap/OTT-652-ci
PubMatic-OpenWrap Aug 17, 2022
139afba
Merge pull request #354 from PubMatic-OpenWrap/ci
pm-nilesh-chate Sep 2, 2022
f7545cb
Merge branch 'master' into prebid_v0.218.0-4
pm-nilesh-chate Sep 6, 2022
bc8e9aa
Merge branch 'master' into prebid_v0.219.0-4
pm-nilesh-chate Sep 6, 2022
bf3a8fd
Merge branch 'master' into prebid_v0.220.0-4
pm-nilesh-chate Sep 6, 2022
b4107a2
Merge branch 'master' into prebid_v0.221.0-4
pm-nilesh-chate Sep 6, 2022
c17007f
Merge branch 'master' into prebid_v0.222.0-4
pm-nilesh-chate Sep 6, 2022
0437a4e
Merge branch 'master' into prebid_v0.223.0-4
pm-nilesh-chate Sep 6, 2022
c5c71ab
Merge branch 'master' into prebid_v0.224.0-4
pm-nilesh-chate Sep 6, 2022
5f46770
refactor OW config and prometheus patch
pm-nilesh-chate Sep 8, 2022
2ebf1de
Merge pull request #357 from PubMatic-OpenWrap/prebid_v0.224.0-nyc-pa…
pm-nilesh-chate Sep 8, 2022
8c069f4
Reverting changes for TLSHandshakeTimer as per PR #178
pm-aadit-patil Sep 12, 2022
117067e
OTT-656: Changes for addressing review comments on PR raised to merge…
PubMatic-OpenWrap Sep 16, 2022
ae48713
OTT-737: Changes done for sending imp.bidfloor and imp.bidfloorCur as…
pm-jaydeep-mohite Sep 22, 2022
e7072b5
OTT-656: Changes for addressing review comments on PR raised to merge…
PubMatic-OpenWrap Sep 16, 2022
3447ba8
Merge remote-tracking branch 'origin/ci' into prebid_v0.224.0-nyc-1-m…
pm-aadit-patil Sep 22, 2022
d101e06
Merge pull request #365 from PubMatic-OpenWrap/prebid_v0.224.0-nyc-1-…
pm-aadit-patil Sep 22, 2022
65ff637
OTT-737: Added UT's
pm-jaydeep-mohite Sep 22, 2022
ae09aae
Merge pull request #364 from PubMatic-OpenWrap/OTT-737
PubMatic-OpenWrap Sep 22, 2022
dc3f27c
UOE-8097: Add testcases for user.ext.eid to used.eid changes and go.m…
pm-aadit-patil Sep 23, 2022
a3a2f19
OTT-737: Floors enabled flag should be considered if req.ext.prebid.f…
pm-jaydeep-mohite Sep 27, 2022
b5a3dae
Added few protective nil checks
pm-jaydeep-mohite Sep 27, 2022
078d81b
Reveted go.sum changes
pm-jaydeep-mohite Sep 27, 2022
ceb1dfa
Added condition to add floorRule in imp.Ext when valid rule is selected
pm-jaydeep-mohite Sep 27, 2022
04c61e1
Added UT's
pm-jaydeep-mohite Sep 27, 2022
46d20b6
Merge pull request #367 from PubMatic-OpenWrap/OTT-737_1
PubMatic-OpenWrap Sep 27, 2022
9d3f1ef
UOE-8168: Custom targeting support in pubmatic adapter
pm-isha-bharti Sep 29, 2022
713c168
UOE-8097:updating go.sum as per tag changes
pm-aadit-patil Sep 30, 2022
86edd45
Merge pull request #371 from PubMatic-OpenWrap/UOE-8097-5
pm-aadit-patil Sep 30, 2022
9d13564
Merge pull request #370 from PubMatic-OpenWrap/ci
pm-viral-vala Sep 30, 2022
a10de83
UOE-8168: Code review changes
pm-isha-bharti Sep 30, 2022
087ba0d
Merge pull request #369 from PubMatic-OpenWrap/UOE-8168-ci
pm-isha-bharti Oct 3, 2022
0b9fef0
UOE-8247: bug fix for amp targeting
pm-isha-bharti Oct 4, 2022
f19b2cc
Merge pull request #374 from PubMatic-OpenWrap/UOE-8257-ci
pm-isha-bharti Oct 4, 2022
8fa395d
OTT-698 :: Added account level configurations for floors feature (#372)
pm-nikhil-vaidya Oct 4, 2022
7c1f614
OTT-744: Updated enforceFloors() for enforcement based on enforcepbs …
PubMatic-OpenWrap Oct 6, 2022
747ba0e
OTT-698 :: Unit test cases updated (#375)
pm-nikhil-vaidya Oct 6, 2022
7c4a308
OTT-698 :: Modified MaxInt according to go version 16 (#377)
pm-nikhil-vaidya Oct 6, 2022
e5e96d8
UOE-8257: trimming keys in amp targeting
pm-isha-bharti Oct 6, 2022
29e6c9d
Merge pull request #378 from PubMatic-OpenWrap/UOE-8257-ci
pm-isha-bharti Oct 6, 2022
52c8cd8
OTT-744: Updated enforceFloors() for enforcement based on enforcepbs …
PubMatic-OpenWrap Oct 6, 2022
80aa748
Merge pull request #379 from PubMatic-OpenWrap/OTT-401_master
PubMatic-OpenWrap Oct 10, 2022
0674059
OTT-758: Added changes for rejected bids prometheus stats for rejecte…
PubMatic-OpenWrap Oct 13, 2022
c5a253f
Merge branch 'master' into ci
PubMatic-OpenWrap Oct 13, 2022
de0a182
Executed gofmt on conflict files
pm-jaydeep-mohite Oct 13, 2022
2ad582f
OpenWrap_Q4_18-October-22 #381
pm-nilesh-chate Oct 13, 2022
06fbfa0
UOE-4962: multi-currency support, add bid.ext.origbidcpmusd field (#382)
pm-nilesh-chate Oct 20, 2022
0b47178
Merge pull request #391 from PubMatic-OpenWrap/ci
pm-nilesh-chate Dec 2, 2022
008ee44
Test Commit
gobisakthivel-pubm Dec 13, 2022
25559b1
Test Adapter Commerce
gobisakthivel-pubm Dec 20, 2022
51508c0
Cofig for test bidder-commerce
gobisakthivel-pubm Dec 21, 2022
04ca6f0
Build Error Fix
gobisakthivel-pubm Dec 21, 2022
cbc7db8
Adding Multiple Test Bidders
gobisakthivel-pubm Dec 21, 2022
36366f6
Fetching tracking urls on Adapter level
gobisakthivel-pubm Dec 22, 2022
9d5fe13
Using Template for Macro Substition
gobisakthivel-pubm Dec 22, 2022
b9f575d
Prebid Preprocessing changes for CommerceMedia
gobisakthivel-pubm Dec 22, 2022
8a0b06b
Changes for MakeBids Default Response
gobisakthivel-pubm Dec 27, 2022
7640aa4
Supporting Multiple Bidders
gobisakthivel-pubm Dec 27, 2022
333ae49
Response Workflow changes
gobisakthivel-pubm Dec 28, 2022
9c1ba03
Removed isCommerceRequest Flag in prebid wherever possible
gobisakthivel-pubm Dec 28, 2022
b629b27
code cleanup
gobisakthivel-pubm Jan 1, 2023
0aba660
Fixfor Null HostName
gobisakthivel-pubm Jan 2, 2023
b55a5da
code cleanup
gobisakthivel-pubm Jan 5, 2023
25025a5
updated adapters
gobisakthivel-pubm Jan 10, 2023
ba8d444
prebid fix for bidderparams
gobisakthivel-pubm Jan 18, 2023
5824467
build fix
gobisakthivel-pubm Jan 18, 2023
296c364
static file changes
gobisakthivel-pubm Jan 22, 2023
7dcb159
Removed Commerce bidder
gobisakthivel-pubm Jan 23, 2023
8267f7b
FIx for IP Address case: comm-178
gobisakthivel-pubm Jan 24, 2023
5c62108
Review Comments
gobisakthivel-pubm Jan 30, 2023
48b6707
Merge pull request #423 from PubMatic-OpenWrap/commerce-testAdapter-c…
gobisakthivel-pubm Jan 30, 2023
938da1f
adbutler frame
gobisakthivel-pubm May 5, 2023
9deb856
initial changes
gobisakthivel-pubm May 6, 2023
3189679
adapter request impl
gobisakthivel-pubm May 8, 2023
c3ad4bf
structure changes
gobisakthivel-pubm May 9, 2023
61137cb
update
gobisakthivel-pubm May 9, 2023
38c4580
update
gobisakthivel-pubm May 9, 2023
f2d0ff4
Request Impl
gobisakthivel-pubm May 9, 2023
3c5df43
response structure
gobisakthivel-pubm May 9, 2023
bc7c6ca
response fix
gobisakthivel-pubm May 9, 2023
ef78ead
Request Response impl
gobisakthivel-pubm May 15, 2023
bd8505f
Request Response impl
gobisakthivel-pubm May 15, 2023
b040502
error case
gobisakthivel-pubm May 17, 2023
3a1f9e3
Tracking Impl
gobisakthivel-pubm May 23, 2023
1f4b6df
tracking fix
gobisakthivel-pubm May 23, 2023
84dbb6d
tracking change
gobisakthivel-pubm May 23, 2023
c285510
encoding fix
gobisakthivel-pubm May 23, 2023
e999352
encoding fixx
gobisakthivel-pubm May 23, 2023
ea3d837
code cleanup
gobisakthivel-pubm May 24, 2023
cbcaa45
isecure flag
gobisakthivel-pubm May 25, 2023
f29ed1e
constant update
gobisakthivel-pubm May 30, 2023
a7ebd3d
update constant
gobisakthivel-pubm Jun 1, 2023
9cf5ccc
request fixes
gobisakthivel-pubm Jun 6, 2023
b667089
Merge pull request #492 from PubMatic-OpenWrap/adbutler_request_impl
gobisakthivel-pubm Jun 12, 2023
0346be4
Merge pull request #508 from PubMatic-OpenWrap/ci-commerce-media
gobisakthivel-pubm Jun 12, 2023
4c6e7c7
targeting chage
gobisakthivel-pubm Jun 14, 2023
e1b5fec
change
gobisakthivel-pubm Jun 14, 2023
301d447
targeting name
gobisakthivel-pubm Jun 14, 2023
51352e5
name change
gobisakthivel-pubm Jun 14, 2023
b0e6e0c
name change
gobisakthivel-pubm Jun 14, 2023
b36939e
targeting fix
gobisakthivel-pubm Jun 22, 2023
fe34206
targeting fix
gobisakthivel-pubm Jun 22, 2023
de0208e
test flag
gobisakthivel-pubm Jun 26, 2023
4c787ce
test flag
gobisakthivel-pubm Jun 26, 2023
86d39e3
testrequest
gobisakthivel-pubm Jun 29, 2023
277c3d4
testrequest
gobisakthivel-pubm Jun 29, 2023
60a27b0
targting key name fix
gobisakthivel-pubm Jun 30, 2023
2ef74bc
targting key name fix
gobisakthivel-pubm Jun 30, 2023
5f811f1
test
gobisakthivel-pubm Jul 20, 2023
3f56ee9
product feed template and pageSource changes
gobisakthivel-pubm Sep 14, 2023
c9e3966
Merge branch 'master-commerce-media' into ci-commerce-media
gobisakthivel-pubm Sep 22, 2023
640742f
workaround for ui
gobisakthivel-pubm Sep 27, 2023
b8707cd
custom targeting refactor
gobisakthivel-pubm Oct 5, 2023
70dd21c
criteostaples skeleton
gobisakthivel-pubm Oct 19, 2023
ffc71c3
skleton update
gobisakthivel-pubm Oct 19, 2023
053331f
criteo adrequest
gobisakthivel-pubm Oct 19, 2023
d492fd1
import errors
gobisakthivel-pubm Oct 19, 2023
e4798d8
buld errors
gobisakthivel-pubm Oct 19, 2023
d14d168
erorr fix
gobisakthivel-pubm Oct 19, 2023
ebb2693
inital request fix
gobisakthivel-pubm Oct 19, 2023
de9d535
ext.bidder object changes
gobisakthivel-pubm Oct 23, 2023
9fd7023
response implemented
abhishekpathak-pubm Oct 24, 2023
5520071
constant changed
abhishekpathak-pubm Oct 24, 2023
d6c3e66
response workflow
gobisakthivel-pubm Oct 24, 2023
840c45a
dummy response
abhishekpathak-pubm Oct 25, 2023
29175e8
mock response
gobisakthivel-pubm Oct 25, 2023
d4740d5
mock data build fix
gobisakthivel-pubm Oct 25, 2023
d0e8802
refactor
gobisakthivel-pubm Oct 25, 2023
20096ac
change bidder name from criteostaples to criteoretail
gobisakthivel-pubm Oct 25, 2023
a66ecc6
adutler productdetails
gobisakthivel-pubm Oct 26, 2023
38cd5be
pagesource fix
gobisakthivel-pubm Oct 26, 2023
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @viral-vala @shriprasad-marathe @ganesh-salpure
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Description

Please add change description or link to ticket, docs, etc.

# Checklist:

- [ ] PR commit list is unique (rebase/pull with the origin branch to keep master clean).
- [ ] JIRA number is added in the PR title and the commit message.
- [ ] Updated the `header-bidding` repo with appropiate commit id.
- [ ] Documented the new changes.

For Prebid upgrade, refer: https://inside.pubmatic.com:8443/confluence/display/Products/Prebid-server+upgrade
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Download and prepare Prebid Server:

```bash
cd YOUR_DIRECTORY
git clone https://github.com/prebid/prebid-server src/github.com/prebid/prebid-server
cd src/github.com/prebid/prebid-server
git clone https://github.com/PubMatic-OpenWrap/prebid-server src/github.com/PubMatic-OpenWrap/prebid-server
cd src/github.com/PubMatic-OpenWrap/prebid-server
```

Run the automated tests:
Expand Down Expand Up @@ -60,11 +60,10 @@ of exported types.

Want to [add an adapter](https://docs.prebid.org/prebid-server/developers/add-new-bidder-go.html)? Found a bug? Great!

Report bugs, request features, and suggest improvements [on Github](https://github.com/prebid/prebid-server/issues).

Or better yet, [open a pull request](https://github.com/prebid/prebid-server/compare) with the changes you'd like to see.
Or better yet, [open a pull request](https://github.com/PubMatic-OpenWrap/prebid-server/compare) with the changes you'd like to see.

## IDE Recommendations

The quickest way to start developing Prebid Server in a reproducible environment isolated from your host OS
is by using Visual Studio Code with [Remote Container Setup](devcontainer.md).

37 changes: 37 additions & 0 deletions adapters/adbuttler/adbuttler.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package adbuttler

import (
"fmt"
"text/template"

"github.com/prebid/prebid-server/adapters"
"github.com/prebid/prebid-server/config"
"github.com/prebid/prebid-server/macros"
"github.com/prebid/prebid-server/openrtb_ext"
)

type AdButtlerAdapter struct {
endpoint *template.Template
}

// Builder builds a new instance of the AdButtler adapter for the given bidder with the given config.
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter) (adapters.Bidder, error) {

endpointtemplate, err := template.New("endpointTemplate").Parse(config.Endpoint)
if err != nil {
return nil, fmt.Errorf("unable to parse endpoint url template: %v", err)
}

bidder := &AdButtlerAdapter{
endpoint: endpointtemplate,
}
return bidder, nil
}

func (a *AdButtlerAdapter) buildEndpointURL(accountID, zoneID string) (string, error) {
endpointParams := macros.EndpointTemplateParams{
AccountID: accountID,
ZoneID: zoneID,
}
return macros.ResolveMacros(a.endpoint, endpointParams)
}
239 changes: 239 additions & 0 deletions adapters/adbuttler/adbuttler_request.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
package adbuttler

import (
"encoding/json"
"net/http"
"regexp"
"strconv"
"strings"
"time"

"github.com/mxmCherry/openrtb/v16/openrtb2"
"github.com/prebid/prebid-server/adapters"
)

type AdButlerRequest struct {
SearchString string `json:"search,omitempty"`
SearchType string `json:"search_type,omitempty"`
Params map[string][]string `json:"params,omitempty"`
Identifiers []string `json:"identifiers,omitempty"`
Target map[string]interface{} `json:"_abdk_json,omitempty"`
Limit int `json:"limit,omitempty"`
Source string `json:"source,omitempty"`
UserID string `json:"adb_uid,omitempty"`
IP string `json:"ip,omitempty"`
UserAgent string `json:"ua,omitempty"`
Referrer string `json:"referrer,omitempty"`
FloorCPC float64 `json:"bid_floor_cpc,omitempty"`
IsTestRequest bool `json:"test_request,omitempty"`

}

func isLowercaseNumbersDashes(s string) bool {
// Define a regular expression pattern to match lowercase letters, numbers, and dashes
pattern := "^[a-z0-9-]+$"
re := regexp.MustCompile(pattern)

// Use the MatchString function to check if the string matches the pattern
return re.MatchString(s)
}


func (a *AdButtlerAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {

commerceExt, siteExt, _,errors := adapters.ValidateCommRequest(request)
if len(errors) > 0 {
return nil, errors
}

var configValueMap = make(map[string]string)
var configTypeMap = make(map[string]int)
for _,obj := range commerceExt.Bidder.CustomConfig {
configValueMap[obj.Key] = obj.Value
configTypeMap[obj.Key] = obj.Type
}

var adButlerReq AdButlerRequest
//Assign Page Source if Present
if siteExt != nil {
if isLowercaseNumbersDashes(siteExt.Page) {
adButlerReq.Source = siteExt.Page
}
}

//Retrieve AccountID and ZoneID from Request and Build endpoint Url
var accountID, zoneID string
val, ok := configValueMap[BIDDERDETAILS_PREFIX + BD_ACCOUNT_ID]
if ok {
accountID = val
}

val, ok = configValueMap[BIDDERDETAILS_PREFIX + BD_ZONE_ID]
if ok {
zoneID = val
}

endPoint, err := a.buildEndpointURL(accountID, zoneID)
if err != nil {
return nil, []error{err}
}

adButlerReq.Target = make(map[string]interface{})
//Add User Targeting
if request.User != nil {
if(request.User.Yob > 0) {
now := time.Now()
age := int64(now.Year()) - request.User.Yob
adButlerReq.Target[USER_AGE] = age
}

if request.User.Gender != "" {
if strings.EqualFold(request.User.Gender, "M") {
adButlerReq.Target[USER_GENDER] = GENDER_MALE
} else if strings.EqualFold(request.User.Gender, "F") {
adButlerReq.Target[USER_GENDER] = GENDER_FEMALE
} else if strings.EqualFold(request.User.Gender, "O") {
adButlerReq.Target[USER_GENDER] = GENDER_OTHER
}
}
}

//Add Geo Targeting
if request.Device != nil && request.Device.Geo != nil {
if request.Device.Geo.Country != "" {
adButlerReq.Target[COUNTRY] = request.Device.Geo.Country
}
if request.Device.Geo.Region != "" {
adButlerReq.Target[REGION] = request.Device.Geo.Region
}
if request.Device.Geo.City != "" {
adButlerReq.Target[CITY] = request.Device.Geo.City
}
}
//Add Geo Targeting
if request.Device != nil {
switch request.Device.DeviceType {
case 1:
adButlerReq.Target[DEVICE] = DEVICE_COMPUTER
case 2:
adButlerReq.Target[DEVICE] = DEVICE_PHONE
case 3:
adButlerReq.Target[DEVICE] = DEVICE_TABLET
case 4:
adButlerReq.Target[DEVICE] = DEVICE_CONNECTEDDEVICE
}
}

//Add Page Source Targeting
if adButlerReq.Source != "" {
adButlerReq.Target[PAGE_SOURCE] = adButlerReq.Source
}

//Add Dynamic Targeting from AdRequest
for _,targetObj := range commerceExt.ComParams.Targeting {
key := targetObj.Name
adButlerReq.Target[key] = targetObj.Value
}
//Add Identifiers from AdRequest
for _,prefObj := range commerceExt.ComParams.Preferred {
adButlerReq.Identifiers = append(adButlerReq.Identifiers, prefObj.ProductID)
}

//Add Category Params from AdRequest
if len(adButlerReq.Identifiers) <= 0 && commerceExt.ComParams.Filtering != nil {
adButlerReq.Params = make(map[string][]string)
if commerceExt.ComParams.Filtering.Category != nil && len(commerceExt.ComParams.Filtering.Category) > 0 {
//Retailer Specific Category Name is present from Product Feed Template
val, ok = configValueMap[PRODUCTTEMPLATE_PREFIX + PD_TEMPLATE_CATEGORY]
if ok {
adButlerReq.Params[val] = commerceExt.ComParams.Filtering.Category
} else {
adButlerReq.Params[DEFAULT_CATEGORY] = commerceExt.ComParams.Filtering.Category
}
}

if commerceExt.ComParams.Filtering.Brand != nil && len(commerceExt.ComParams.Filtering.Brand) > 0 {
//Retailer Specific Brand Name is present from Product Feed Template
val, ok = configValueMap[PRODUCTTEMPLATE_PREFIX + PD_TEMPLATE_BRAND]
if ok {
adButlerReq.Params[val] = commerceExt.ComParams.Filtering.Brand
} else {
adButlerReq.Params[DEFAULT_BRAND] = commerceExt.ComParams.Filtering.Brand
}
}

if commerceExt.ComParams.Filtering.SubCategory != nil {
for _,subCategory := range commerceExt.ComParams.Filtering.SubCategory {
key := subCategory.Name
value := subCategory.Value
adButlerReq.Params[key] = value
}
}
}


//Assign Search Term if present along with searchType
if len(adButlerReq.Identifiers) <= 0 && commerceExt.ComParams.Filtering == nil && commerceExt.ComParams.SearchTerm != "" {
adButlerReq.SearchString = commerceExt.ComParams.SearchTerm
if commerceExt.ComParams.SearchType == SEARCHTYPE_EXACT ||
commerceExt.ComParams.SearchType == SEARCHTYPE_BROAD {
adButlerReq.SearchType = commerceExt.ComParams.SearchType
} else {
val, ok := configValueMap[SEARCHTYPE]
if ok {
adButlerReq.SearchType = val
} else {
adButlerReq.SearchType = SEARCHTYPE_DEFAULT
}
}
}

adButlerReq.IP = request.Device.IP
// Domain Name from Site Object if Prsent or App Obj
if request.Site != nil {
adButlerReq.Referrer = request.Site.Domain
} else {
adButlerReq.Referrer = request.App.Domain
}

// Take BidFloor from BidRequest - High Priority, Otherwise from Auction Config
if request.Imp[0].BidFloor > 0 {
adButlerReq.FloorCPC = request.Imp[0].BidFloor
} else {
val, ok := configValueMap[AUCTIONDETAILS_PREFIX + AD_FLOOR_PRICE]
if ok {
if floorPrice, err := strconv.ParseFloat(val, 64); err == nil {
adButlerReq.FloorCPC = floorPrice
}
}
}

//Test Request
if commerceExt.ComParams.TestRequest {
adButlerReq.IsTestRequest = true
}
adButlerReq.UserID = request.User.ID
adButlerReq.UserAgent = request.Device.UA
adButlerReq.Limit = commerceExt.ComParams.SlotsRequested

//Temporarily for Debugging
//u, _ := json.Marshal(adButlerReq)
//fmt.Println(string(u))

reqJSON, err := json.Marshal(adButlerReq)
if err != nil {
return nil, []error{err}
}

headers := http.Header{}
headers.Add("Content-Type", "application/json")

return []*adapters.RequestData{{
Method: "POST",
Uri: endPoint,
Body: reqJSON,
Headers: headers,
}}, nil

}

Loading
Loading