Skip to content

Commit

Permalink
kargo adapter - adding prebid version to requests (prebid#9620)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrusiecki authored and jorgeluisrocha committed May 18, 2023
1 parent a884c64 commit 1739a21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { BANNER, VIDEO } from '../src/mediaTypes.js';
const BIDDER_CODE = 'kargo';
const HOST = 'https://krk.kargo.com';
const SYNC = 'https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}';
const PREBID_VERSION = '$prebid.version$';
const SYNC_COUNT = 5;
const GVLID = 972;
const SUPPORTED_MEDIA_TYPES = [BANNER, VIDEO];
Expand Down Expand Up @@ -58,7 +59,8 @@ export const spec = {
width: window.screen.width,
height: window.screen.height
},
prebidRawBidRequests: validBidRequests
prebidRawBidRequests: validBidRequests,
prebidVersion: PREBID_VERSION
}, spec._getAllMetadata(bidderRequest, tdid));

// User Agent Client Hints / SUA
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/kargoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ describe('kargo adapter tests', function () {
usp: '1---'
},
pageURL: 'https://www.prebid.org',
prebidVersion: '$prebid.version$',
prebidRawBidRequests: [
{
bidId: 1,
Expand Down

0 comments on commit 1739a21

Please sign in to comment.