Skip to content

Commit

Permalink
Core: warn about missing GVLID on custom bidder aliases (#10451)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Sep 7, 2023
1 parent ac00929 commit c91f337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/adapterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ adapterManager.aliasBidAdapter = function (bidderCode, alias, options) {
} else {
let spec = bidAdapter.getSpec();
let gvlid = options && options.gvlid;
if (spec.gvlid != null && gvlid == null) {
logWarn(`Alias '${alias}' will NOT re-use the GVL ID of the original adapter ('${spec.code}', gvlid: ${spec.gvlid}). Functionality that requires TCF consent may not work as expected.`)
}
let skipPbsAliasing = options && options.skipPbsAliasing;
newAdapter = newBidder(Object.assign({}, spec, { code: alias, gvlid, skipPbsAliasing }));
_aliasRegistry[alias] = bidderCode;
Expand Down

0 comments on commit c91f337

Please sign in to comment.