Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions dotcom-rendering/src/layouts/InteractiveLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import { Hide } from '@guardian/source/react-components';
import { StraightLines } from '@guardian/source-development-kitchen/react-components';
import React from 'react';
import { AdPortals } from '../components/AdPortals.importable';
import { AdSlot, MobileStickyContainer } from '../components/AdSlot.web';
import { AppsFooter } from '../components/AppsFooter.importable';
import { ArticleBody } from '../components/ArticleBody';
Expand Down Expand Up @@ -313,11 +312,6 @@ export const InteractiveLayout = (props: WebProps | AppsProps) => {
</>
)}
<main data-layout="InteractiveLayout">
{isApps && renderAds && (
<Island priority="critical">
<AdPortals />
</Island>
)}
<Section
fullWidth={true}
showTopBorder={false}
Expand Down
8 changes: 8 additions & 0 deletions dotcom-rendering/src/model/enhance-ad-placeholders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ export const enhanceAdPlaceholders =
(elements: FEElement[]): FEElement[] => {
if (shouldHideAds) return elements;

// Ads are intentionally disabled for apps interactive articles
if (
renderingTarget === 'Apps' &&
format.design === ArticleDesign.Interactive
) {
return elements;
}

// In galleries the AdPlaceholders are inserted in both
// Web & App because the same logic is used for both
if (format.design === ArticleDesign.Gallery) {
Expand Down
Loading