Skip to content

Commit

Permalink
Fix having multiple Criteo standalone ads on one page (#11285)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spark-NF authored and zhouyx committed Sep 27, 2017
1 parent 55725b1 commit a47109c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ads/criteo.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ export function criteo(global, data) {
}, () => {});
setTargeting(global, data, null);
} else if (data.tagtype === 'standalone') {
computeInMasterFrame(window, 'call-standalone', resultCallback => {
Criteo.PubTag.Adapters.AMP.Standalone(data, resultCallback, targ => {
setTargeting(global, data, targ);
});
}, () => {});
Criteo.PubTag.Adapters.AMP.Standalone(data, () => {}, targ => {
setTargeting(global, data, targ);
});
} else if (!data.tagtype || data.tagtype === 'passback') {
Criteo.DisplayAd({
zoneid: data.zone,
Expand Down

0 comments on commit a47109c

Please sign in to comment.