Skip to content

Latest commit

 

History

History
112 lines (91 loc) · 3.09 KB

cleanmedianetBidAdapter.md

File metadata and controls

112 lines (91 loc) · 3.09 KB

Overview

Module Name:  CleanMedia Bid Adapter
Module Type:  Bidder Adapter
Maintainer:   [email protected]

Description

Connects to CleanMedia's Programmatic advertising platform as a service.

CleanMedia bid adapter supports Banner & Outstream Video. The only required parameter (in the params section) is the supplyPartnerId parameter.

Test Parameters

var adUnits = [

   // Banner adUnit
   {
     code: 'banner-div',
     sizes: [[300, 250]],
     bids: [{
       bidder: 'cleanmedianet',
       params: {

         // ID of the supply partner you created in the CleanMedia dashboard
         supplyPartnerId: '1253',

         // OPTIONAL: custom bid floor
         bidfloor: 0.01,

         // OPTIONAL: if you know the ad position on the page, specify it here
         //           (this corresponds to "Ad Position" in OpenRTB 2.3, section 5.4)
         //adpos: 1,

         // OPTIONAL: whether this is an interstitial placement (0 or 1)
         //           (see "instl" property in "Imp" object in the OpenRTB 2.3, section 3.2.2)
         //instl: 0
       }
     }]
   },

   // Video outstream adUnit
   {
     code: 'video-outstream',
     mediaTypes: {
       video: {
         context: 'outstream',
         playerSize: [300, 250]
       }
     },
     bids: [ {
       bidder: 'CleanMedia',
       params: {

         // ID of the supply partner you created in the dashboard
         supplyPartnerId: '1254',

         // OPTIONAL: custom bid floor
         bidfloor: 0.01,

         // OPTIONAL: if you know the ad position on the page, specify it here
         //           (this corresponds to "Ad Position" in OpenRTB 2.3, section 5.4)
         //adpos: 1,

         // OPTIONAL: whether this is an interstitial placement (0 or 1)
         //           (see "instl" property in "Imp" object in the OpenRTB 2.3, section 3.2.2)
         //instl: 0
       }
     }]
   },
   
   // Multi-Format adUnit
   {
        code: 'banner-div',
        mediaTypes: {
               video: {
                 context: 'outstream',
                 playerSize: [300, 250]
               },
               banner: {
                sizes: [[300, 250]]
               }
             },
        bids: [{
          bidder: 'CleanMedia',
          params: {
   
            // ID of the supply partner you created in the CleanMedia dashboard
            supplyPartnerId: '1253',
      
            // OPTIONAL: custom bid floor
            bidfloor: 0.01,
   
            // OPTIONAL: if you know the ad position on the page, specify it here
            //           (this corresponds to "Ad Position" in OpenRTB 2.3, section 5.4)
            //adpos: 1,
   
            // OPTIONAL: whether this is an interstitial placement (0 or 1)
            //           (see "instl" property in "Imp" object in the OpenRTB 2.3, section 3.2.2)
            //instl: 0,
            
            // OPTIONAL: enable enforcement bids of a specific media type (video, banner)
            //           in this ad placement
            // query: 'key1=value1&k2=value2',
            // favoredMediaType: 'video',
          }
        }]
      },
];