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 a more robust ad framework #2005

Merged
merged 2 commits into from
Apr 22, 2024
Merged

add a more robust ad framework #2005

merged 2 commits into from
Apr 22, 2024

Conversation

frzyc
Copy link
Owner

@frzyc frzyc commented Apr 21, 2024

Describe your changes

  • Add manual ad slots (top/bottom banner, and side rails)
  • Add a way to detect ad block
  • Add placeholder Ads for adblock/non-domain sites, and for dev.

Issue or discord link

Testing/validation

on dev (placeholder ads)

screencapture-localhost-4200-2024-04-21-18_59_55

on deployment (with placed ads)

WARNING: backup your prod database
https://frzyc.github.io/genshin-optimizer-beta
Ads are not fully filled, since the non-desired ads (content/siderail) ads are still enabled for prod

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

  • I have commented my code in hard-to understand areas.
  • I have made corresponding changes to README or wiki.
  • For front-end changes, I have updated the corresponding English translations.
  • I have run yarn run mini-ci locally to validate format and lint.
  • If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@frzyc frzyc requested a review from nguyentvan7 April 21, 2024 23:03
Copy link
Contributor

github-actions bot commented Apr 21, 2024

[sr-frontend] [Sun Apr 21 23:05:32 UTC 2024] - Deployed 31a3101 to https://genshin-optimizer-prs.github.io/pr/2005/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Apr 21 23:06:46 UTC 2024] - Deployed 31a3101 to https://genshin-optimizer-prs.github.io/pr/2005/frontend (Takes 3-5 minutes after this completes to be available)

[sr-frontend] [Sun Apr 21 23:30:12 UTC 2024] - Deployed 4402e66 to https://genshin-optimizer-prs.github.io/pr/2005/sr-frontend (Takes 3-5 minutes after this completes to be available)

[frontend] [Sun Apr 21 23:30:51 UTC 2024] - Deployed 4402e66 to https://genshin-optimizer-prs.github.io/pr/2005/frontend (Takes 3-5 minutes after this completes to be available)

[Mon Apr 22 18:09:29 UTC 2024] - Deleted deployment

}) {
const Comp = useMemo(() => {
const components: Array<FunctionComponent<{ children: ReactNode }>> = [GOAd]
if (height === undefined || canshowGoDevAd(height)) components.push(GODevAd)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't have to be this PR, but another fake ad for our playlist series would be nice too

return (
<Box
sx={{
backgroundColor: 'white !important',
Copy link
Collaborator

Choose a reason for hiding this comment

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

The white color is a bit jarring, but maybe that's the point

@frzyc frzyc merged commit 42cc9a5 into master Apr 22, 2024
7 checks passed
@frzyc frzyc deleted the go_ads branch April 22, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants