Skip to content

Expect frontend to supply audio ad urls#15740

Open
davidfurey wants to merge 2 commits intomainfrom
df/podcast-ads-refactor
Open

Expect frontend to supply audio ad urls#15740
davidfurey wants to merge 2 commits intomainfrom
df/podcast-ads-refactor

Conversation

@davidfurey
Copy link
Copy Markdown
Member

@davidfurey davidfurey commented Apr 22, 2026

What does this change?

Rather than adding the https://flex.acast.com prefix to audio files in DCR, frontend will provide ad and ad-free urls for audio elements and audio atoms.

Do not merge until guardian/frontend#28747 is merged

Why?

We are pushing the generation of the URLs of audio assets containing ads to Concierge. This is because the logic is about to get more complicated. We'd like to centralise it before we make changes.

@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@davidfurey davidfurey added the feature Departmental tracking: work on a new feature label Apr 22, 2026
@davidfurey davidfurey force-pushed the df/podcast-ads-refactor branch from 7c6cc48 to f40d1a4 Compare April 22, 2026 15:39
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

Rather than adding flex.acast.com prefix, frontend should provide ad urls for audio elements and audio atoms
@davidfurey davidfurey force-pushed the df/podcast-ads-refactor branch from f40d1a4 to c34298a Compare April 24, 2026 13:35
urlWithAds: string,
shouldUseAcast?: boolean,
) => {
return shouldUseAcast ? urlWithAds : basicUrl;
Copy link
Copy Markdown
Contributor

@SiAdcock SiAdcock Apr 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might we want to move this logic up to the Wrapper, and have that determine the correct URL to use? I'm not sure if the audio component needs to know if it's running an Acast feed or not, it kust needs to know which URL it should use.

I appreciate this logic predates this change, so maybe we want to deal with it separately.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback, I've pushed a commit that moves the logic up to the wrapper.

Copy link
Copy Markdown
Contributor

@SiAdcock SiAdcock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor and probably unrelated comment, but looks good 💎

Responding to PR feedback
@arelra arelra added the run_chromatic Runs chromatic when label is applied label Apr 30, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants