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

Add Go2Net Adapter Alias #3763

Merged
merged 3 commits into from
Apr 20, 2019
Merged
Show file tree
Hide file tree
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/admixerBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import * as utils from '../src/utils';
import {registerBidder} from '../src/adapters/bidderFactory';

const BIDDER_CODE = 'admixer';
const ALIASES = ['go2net'];
const ENDPOINT_URL = '//inv-nets.admixer.net/prebid.1.0.aspx';
export const spec = {
code: BIDDER_CODE,
aliases: [],
aliases: ALIASES,
supportedMediaTypes: ['banner', 'video'],
/**
* Determines whether or not the given bid request is valid.
Expand All @@ -28,7 +29,7 @@ export const spec = {
referrer: encodeURIComponent(utils.getTopWindowUrl()),
};
bidderRequest.forEach((bid) => {
if (bid.bidder === BIDDER_CODE) {
if (bid.bidder === BIDDER_CODE || ALIASES.indexOf(bid.bidder) > -1) {
payload.imps.push(bid);
}
});
Expand Down
29 changes: 29 additions & 0 deletions modules/go2net.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Overview

Module Name: Go2Net Bidder Adapter
Module Type: Bidder Adapter
Maintainer: vprytuzhalova@go2net.com.ua

# Description

Connects to Go2Net demand source to fetch bids.
Banner and Video formats are supported.
Please use ```go2net``` as the bidder code.

# Ad Unit Example
```
var adUnits = [
{
code: 'desktop-banner-ad-div',
sizes: [[300, 250]], // a display size
bids: [
{
bidder: "go2net",
params: {
zone: 'fb3d34d0-7a88-4a4a-a5c9-8088cd7845f4'
}
}
]
}
];
```