Skip to content

Commit

Permalink
AdMatic Bidder: added User-Snyc url for alias (prebid#9261)
Browse files Browse the repository at this point in the history
* Admatic Bidder Adaptor

* Update admaticBidAdapter.md

* Update admaticBidAdapter.md

* remove floor parameter

* Update admaticBidAdapter.js

* Admatic Bid Adapter: alias and bid floor features activated

* Admatic adapter: host param control changed

* Alias name changed.

* Revert "Admatic adapter: host param control changed"

This reverts commit de7ac85.

* added alias feature and host param

* Revert "added alias feature and host param"

This reverts commit 6ec8f45.

* Revert "Alias name changed."

This reverts commit 661c54f.

* Revert "Admatic Bid Adapter: alias and bid floor features activated"

This reverts commit 7a2e0e2.

* Revert "Update admaticBidAdapter.js"

This reverts commit 7a845b7.

* Revert "remove floor parameter"

This reverts commit 7a23b05.

* Admatic adapter: host param control && Add new Bidder

* Revert "Admatic adapter: host param control && Add new Bidder"

This reverts commit 3c797b1.

* commit new features

* Update admaticBidAdapter.js

* updated for coverage

* sync updated

* Update adloader.js

* AdMatic Bidder: development of user sync url

* Update admaticBidAdapter.js
  • Loading branch information
fatihkaya84 authored and jorgeluisrocha committed May 18, 2023
1 parent b6c9558 commit 18edd68
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/admaticBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getValue, logError, deepAccess, getBidIdParameter, isArray } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, VIDEO } from '../src/mediaTypes.js';
const SYNC_URL = 'https://cdn.serve.admatic.com.tr/showad/sync.html';
let SYNC_URL = '';
const BIDDER_CODE = 'admatic';
export const spec = {
code: BIDDER_CODE,
Expand Down Expand Up @@ -59,6 +59,15 @@ export const spec = {
};

if (payload) {
switch (bidderName) {
case 'pixad':
SYNC_URL = 'https://static.pixad.com.tr/sync.html';
break;
default:
SYNC_URL = 'https://cdn.serve.admatic.com.tr/showad/sync.html';
break;
}

return { method: 'POST', url: `https://${host}/pb?bidder=${bidderName}`, data: payload, options: { contentType: 'application/json' } };
}
},
Expand Down

0 comments on commit 18edd68

Please sign in to comment.