Skip to content

Commit

Permalink
needs to be set at ad level, not at high level
Browse files Browse the repository at this point in the history
  • Loading branch information
maddoxnelson committed Jul 22, 2018
1 parent 361ef0f commit f304c88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/arcads.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/services/headerbidding.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export function fetchBids({
const prebidBids = new Promise((resolve) => {
if (wrapper.prebid && wrapper.prebid.enabled) {
const timeout = wrapper.prebid.timeout || 700;
if (wrapper.prebid.slotSuffix) {
adInfo.adSlot = `${slotName}${wrapper.prebid.slotSuffix}`;
if (bidding.prebid.slotSuffix) {
adInfo.adSlot = `${slotName}${bidding.prebid.slotSuffix}`;
}

queuePrebidCommand.bind(this, fetchPrebidBids(ad, id, timeout, adInfo, prerender, () => {
Expand All @@ -103,7 +103,7 @@ export function fetchBids({

const amazonBids = new Promise((resolve) => {
if (wrapper.amazon && wrapper.amazon.enabled) {
const targetedSlotName = wrapper.amazon.slotSuffix ? `${slotName}${wrapper.amazon.slotSuffix}` : slotName;
const targetedSlotName = bidding.amazon.slotSuffix ? `${slotName}${bidding.amazon.slotSuffix}` : slotName;

fetchAmazonBids(id, targetedSlotName, dimensions, () => {
resolve('Fetched Amazon ads!');
Expand Down

0 comments on commit f304c88

Please sign in to comment.