-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show ads on mobile discussion (#1239)
* Insert ad into comments * Insert unique ids for comments-expanded mobile ads Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Fix imports * Use setTimeout to load elements in the DOM Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Added a function that removes dynamically inserted ads in comments Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Remove existing slots on page change custom event Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Remove ad slots from dfp Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Resize label and center discussion ads Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Add destroySlots and timeout to wait for updated ul element * Separate and tidy logic Co-authored-by: Dina Hafez <dina.hafez@guardian.co.uk> * Post rebase tidy up * Don't use fastdom for getCommentsColumn() * Remove unnecessary void * Get comments-expanded ads working after rebase * Remove setTimeout as no longer needed Co-authored-by: Dina Hafez <dina.hafez@guardian.co.uk> * Check if user is in variant Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Add changeset Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Add comments-expanded to slot config Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Reserve space for the mobile comments expanded Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Add check so that comments section never ends in an ad * Don't insert slots if there are already some present on the page * Replace comments-column class with data-attribute Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> * Add adSizes.empty to mobile comments-expanded slot * Use switch instead of AB test --------- Co-authored-by: Emma Imber <108270776+emma-imber@users.noreply.github.com> Co-authored-by: Emma Imber <emma-jo.imber@guardian.co.uk>
- Loading branch information
1 parent
d1445e6
commit d285016
Showing
6 changed files
with
127 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@guardian/commercial': minor | ||
--- | ||
|
||
Add AB test to insert ads in mobile discussion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters