Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add edition targeting to liveblog top sponsorship #27279

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

Jakeii
Copy link
Member

@Jakeii Jakeii commented Jul 3, 2024

What does this change?

Only set hasLiveblogTopSponsorship if the sponsorship/line-item has edition targeting and it matches

@Jakeii Jakeii requested a review from a team as a code owner July 3, 2024 15:21
Copy link
Contributor

@dskamiotis dskamiotis left a comment

Choose a reason for hiding this comment

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

It looks in order to me and tested locally with some println's

Comment on lines +311 to +313
val hasEditionTargeting = targeting.editions.nonEmpty

isLiveblogTopSlot && isLiveblogContentType && targetsOnlyAllowedSections && isMobileBreakpoint && isSponsorship && hasEditionTargeting
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it right to assume its looking at the targeting data received from GAM at this point?

@dskamiotis dskamiotis merged commit 7bd1ae4 into main Jul 9, 2024
6 checks passed
@dskamiotis dskamiotis deleted the jlk/add-edition-targeting-liveblog-sponsorship branch July 9, 2024 10:35
@prout-bot
Copy link
Collaborator

Seen on ADMIN-PROD (created by @Jakeii and merged by @dskamiotis 12 minutes and 1 second ago)

@prout-bot
Copy link
Collaborator

Seen on FRONTS-PROD (created by @Jakeii and merged by @dskamiotis 12 minutes and 11 seconds ago)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants