Skip to content

Commit

Permalink
Single Adform adapter (#6840)
Browse files Browse the repository at this point in the history
* Adf Bid Adapter: banner and video media type support added (#6726)


(cherry picked from commit 6580bf4)

* single adform bid adapter

* Revert "Adf Bid Adapter: banner and video media type support added (#6726)"

This reverts commit 0ada455.
  • Loading branch information
braizhas authored May 31, 2021
1 parent 6957925 commit 1001c00
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 798 deletions.
5 changes: 4 additions & 1 deletion modules/adfBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ import { config } from '../src/config.js';

const BIDDER_CODE = 'adf';
const GVLID = 50;
const BIDDER_ALIAS = [ { code: 'adformOpenRTB', gvlid: GVLID } ];
const BIDDER_ALIAS = [
{ code: 'adformOpenRTB', gvlid: GVLID },
{ code: 'adform', gvlid: GVLID }
];
const NATIVE_ASSET_IDS = { 0: 'title', 2: 'icon', 3: 'image', 5: 'sponsoredBy', 4: 'body', 1: 'cta' };
const NATIVE_PARAMS = {
title: {
Expand Down
213 changes: 0 additions & 213 deletions modules/adformBidAdapter.js

This file was deleted.

30 changes: 0 additions & 30 deletions modules/adformBidAdapter.md

This file was deleted.

11 changes: 7 additions & 4 deletions test/spec/modules/adfBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
// jshint esversion: 6, es3: false, node: true
import {assert, expect} from 'chai';
import {spec} from 'modules/adfBidAdapter.js';
import { NATIVE } from 'src/mediaTypes.js';
import { assert } from 'chai';
import { spec } from 'modules/adfBidAdapter.js';
import { config } from 'src/config.js';
import { createEidsArray } from 'modules/userId/eids.js';

describe('Adf adapter', function () {
let serverResponse, bidRequest, bidResponses;
let bids = [];

describe('backwards-compatibility', function () {
it('should have adformOpenRTB alias defined', function () {
assert.equal(spec.aliases[0].code, 'adformOpenRTB');
assert.equal(spec.aliases[0].gvlid, 50);
});

it('should have adform alias defined', function () {
assert.equal(spec.aliases[1].code, 'adform');
assert.equal(spec.aliases[1].gvlid, 50);
});
});

describe('isBidRequestValid', function () {
Expand Down
Loading

0 comments on commit 1001c00

Please sign in to comment.