From bce01ae8944b43421899defe9898797d095dbd8c Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Thu, 2 May 2024 12:57:29 +0100 Subject: [PATCH 1/2] Moved im below inline1 --- src/insert/spacefinder/article.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insert/spacefinder/article.ts b/src/insert/spacefinder/article.ts index 65ec218ef..7514a9ea1 100644 --- a/src/insert/spacefinder/article.ts +++ b/src/insert/spacefinder/article.ts @@ -498,14 +498,14 @@ const init = async (fillAdSlot: FillAdSlot): Promise => { return Promise.resolve(false); } + await addInlineAds(fillAdSlot); + const im = window.guardian.config.page.hasInlineMerchandise ? attemptToAddInlineMerchAd(fillAdSlot) : Promise.resolve(false); const inlineMerchAdded = await im; if (inlineMerchAdded) await waitForAdvert('dfp-ad--im'); - await addInlineAds(fillAdSlot); - await initCarrot(); return im; From cab862a458a8b196bc780027dc022717d536f8c5 Mon Sep 17 00:00:00 2001 From: Dina Hafez Date: Thu, 2 May 2024 13:02:52 +0100 Subject: [PATCH 2/2] Add changeset --- .changeset/two-dolls-call.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/two-dolls-call.md diff --git a/.changeset/two-dolls-call.md b/.changeset/two-dolls-call.md new file mode 100644 index 000000000..8800b49b9 --- /dev/null +++ b/.changeset/two-dolls-call.md @@ -0,0 +1,5 @@ +--- +'@guardian/commercial': minor +--- + +Move im below inline1 to reduce revenue impact when the im won't serve ads"