Skip to content

Latest commit

 

History

History
79 lines (75 loc) · 2.42 KB

mgidXBidAdapter.md

File metadata and controls

79 lines (75 loc) · 2.42 KB

Overview

Module Name: MgidX Bidder Adapter
Module Type: MgidX Bidder Adapter
Maintainer: [email protected]

Description

One of the easiest way to gain access to MGID demand sources - MGIDX header bidding adapter. MGIDX header bidding adapter connects with MGID demand sources to fetch bids for display placements

Test Parameters

    var adUnits = [
                // Will return static test banner
                {
                    code: 'adunit1',
                    mediaTypes: {
                        banner: {
                            sizes: [ [300, 250], [320, 50] ],
                        }
                    },
                    bids: [
                        {
                            bidder: 'mgidX',
                            params: {
                                placementId: 'testBanner',
                            }
                        }
                    ]
                },
                {
                    code: 'addunit2',
                    mediaTypes: {
                        video: {
                            playerSize: [ [640, 480] ],
                            context: 'instream',
                            minduration: 5,
                            maxduration: 60,
                        }
                    },
                    bids: [
                        {
                            bidder: 'mgidX',
                            params: {
                                placementId: 'testVideo',
                            }
                        }
                    ]
                },
                {
                    code: 'addunit3',
                    mediaTypes: {
                        native: {
                            title: {
                                required: true
                            },
                            body: {
                                required: true
                            },
                            icon: {
                                required: true,
                                size: [64, 64]
                            }
                        }
                    },
                    bids: [
                        {
                            bidder: 'mgidX',
                            params: {
                                placementId: 'testNative',
                            }
                        }
                    ]
                }
            ];