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

AdKernel adapter aliases #4057

Merged
merged 1 commit into from
Aug 2, 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
9 changes: 8 additions & 1 deletion modules/adkernelBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import find from 'core-js/library/fn/array/find';
import includes from 'core-js/library/fn/array/includes';
import {parse as parseUrl} from '../src/url';

/*
* In case you're AdKernel whitelable platform's client who needs branded adapter to
* work with Adkernel platform - DO NOT COPY THIS ADAPTER UNDER NEW NAME
*
* Please contact prebid@adkernel.com and we'll add your adapter as an alias.
*/

const VIDEO_TARGETING = ['mimes', 'minduration', 'maxduration', 'protocols',
'startdelay', 'linearity', 'boxingallowed', 'playbackmethod', 'delivery',
'pos', 'api', 'ext'];
Expand All @@ -16,7 +23,7 @@ const VERSION = '1.3';
export const spec = {

code: 'adkernel',
aliases: ['headbidding'],
aliases: ['headbidding', 'adsolut', 'oftmediahb'],
supportedMediaTypes: [BANNER, VIDEO],
isBidRequestValid: function(bidRequest) {
return 'params' in bidRequest &&
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/adkernelBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ describe('Adkernel adapter', function () {

describe('adapter configuration', () => {
it('should have aliases', () => {
expect(spec.aliases).to.have.lengthOf(1);
expect(spec.aliases[0]).to.be.equal('headbidding');
expect(spec.aliases).to.have.lengthOf(3);
expect(spec.aliases).to.be.eql(['headbidding', 'adsolut', 'oftmediahb']);
});
});
});