Skip to content

Commit

Permalink
Clickonometrics Bid Adapter: gvlid (prebid#9367)
Browse files Browse the repository at this point in the history
* adomain support

* adomain support

* adomain support

* adomain support

* adomain support

* video params

* docs changes

* Clickonometrics adapter update

* Revert "Revert "Clickonometrics Bid Adapter : add gvlid (prebid#9198)" (prebid#9216)"

This reverts commit 6d114e8.

* Test fix
  • Loading branch information
mjaworskiccx authored and jorgeluisrocha committed May 18, 2023
1 parent de4a498 commit d74b7c7
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit d74b7c7

Please sign in to comment.