Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 1.86 KB

cwireBidAdapter.md

File metadata and controls

74 lines (61 loc) · 1.86 KB

Overview

Module Name:  C-WIRE Bid Adapter
Module Type:  Bidder Adapter
Maintainer: [email protected]

Description

Prebid.js Adapter for C-Wire.

Configuration

Below, the list of C-WIRE params and where they can be set.

Param name URL parameter AdUnit config Type Required
pageId x number NO
domainId x number YES
placementId x number NO
cwgroups x string NO
cwcreative x string NO
cwdebug x boolean NO
cwfeatures x string NO

adUnit configuration

var adUnits = [
  {
    code: 'target_div_id', // REQUIRED 
    bids: [{
      bidder: 'cwire',
      mediaTypes: {
        banner: {
          sizes: [[400, 600]],
        }
      },
      params: {
        domainId: 1422,               // required - number
        placementId: 2211521,         // optional - number
      }
    }]
  }
];
// old version for the compatibility
var adUnits = [
    {
        code: 'target_div_id', // REQUIRED
        bids: [{
            bidder: 'cwire',
            mediaTypes: {
                banner: {
                    sizes: [[400, 600]],
                }
            },
            params: {
                pageId: 1422,               // required - number
                placementId: 2211521,       // required - number
            }
        }]
    }
];

URL parameters

For debugging and testing purposes url parameters can be set.

Example:

https://www.some-site.com/article.html?cwdebug=true&cwfeatures=feature1,feature2&cwcreative=1234