Skip to content

Commit

Permalink
Gamoshi: Add adasta new bidder alias (prebid#3949)
Browse files Browse the repository at this point in the history
* Add support for multi-format ad units. Add favoredMediaType property to params.

* Add tests for gdpr consent.

* Add adId to outbids

* Modify media type resolving

* Refactor multi-format ad units handler.

* Add adasta - new bidder alias for gamoshi

* Unify rtb endpoints

* Modify adasta alias code
  • Loading branch information
sa1omon authored and sa1omon committed Nov 28, 2019
1 parent ecc8b2a commit f64bfa2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/gamoshiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import {Renderer} from '../src/Renderer';
import {BANNER, VIDEO} from '../src/mediaTypes';

const ENDPOINTS = {
'viewdeos': 'https://rtb.viewdeos.com',
'cleanmedia': 'https://bidder.cleanmediaads.com',
'gamoshi': 'https://rtb.gamoshi.io',
'gambid': 'https://rtb.gamoshi.io',
'gamoshi': 'https://rtb.gamoshi.io'
};

const DEFAULT_TTL = 360;
Expand Down Expand Up @@ -45,7 +42,7 @@ export const helper = {

export const spec = {
code: 'gamoshi',
aliases: ['gambid', 'cleanmedia', 'viewdeos'],
aliases: ['gambid', 'cleanmedia', 'viewdeos', 'adastaMedia'],
supportedMediaTypes: ['banner', 'video'],

isBidRequestValid: function (bid) {
Expand All @@ -61,7 +58,7 @@ export const spec = {
buildRequests: function (validBidRequests, bidderRequest) {
return validBidRequests.map(bidRequest => {
const {adUnitCode, auctionId, mediaTypes, params, sizes, transactionId} = bidRequest;
const baseEndpoint = params['rtbEndpoint'] || ENDPOINTS[bidRequest.bidder] || ENDPOINTS['gamoshi'];
const baseEndpoint = params['rtbEndpoint'] || ENDPOINTS['gamoshi'];
const rtbEndpoint = `${baseEndpoint}/r/${params.supplyPartnerId}/bidr?rformat=open_rtb&reqformat=rtb_json&bidder=prebid` + (params.query ? '&' + params.query : '');
let url = config.getConfig('pageUrl') || bidderRequest.refererInfo.referer;

Expand Down

0 comments on commit f64bfa2

Please sign in to comment.