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

Clickonometrics Bid Adapter: gvlid #9367

Merged
merged 18 commits into from
Dec 22, 2022
Merged
Changes from all 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
5 changes: 3 additions & 2 deletions modules/ccxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {getStorageManager} from '../src/storageManager.js';
const BIDDER_CODE = 'ccx'
const storage = getStorageManager({bidderCode: BIDDER_CODE});
const BID_URL = 'https://delivery.clickonometrics.pl/ortb/prebid/bid'
const GVLID = 773;
const SUPPORTED_VIDEO_PROTOCOLS = [2, 3, 5, 6]
const SUPPORTED_VIDEO_MIMES = ['video/mp4', 'video/x-flv']
const SUPPORTED_VIDEO_PLAYBACK_METHODS = [1, 2, 3, 4]
Expand All @@ -19,8 +20,7 @@ function _getDeviceObj () {

function _getSiteObj (bidderRequest) {
let site = {}
// TODO: does the fallback to window.location make sense?
let url = bidderRequest?.refererInfo?.page || window.location.href
let url = bidderRequest?.refererInfo?.page || ''
if (url.length > 0) {
url = url.split('?')[0]
}
Expand Down Expand Up @@ -140,6 +140,7 @@ function _buildResponse (bid, currency, ttl) {

export const spec = {
code: BIDDER_CODE,
gvlid: GVLID,
supportedMediaTypes: ['banner', 'video'],

isBidRequestValid: function (bid) {
Expand Down