question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AdSense module shows simultaneously as "unable to set up" and "connected" in banner notification

See original GitHub issue

Bug Description

The AdSense module is shown as simultaneously “unable to set up” and “connected” in success notices in certain situations.

Steps to reproduce

  1. Ensure AdSense is connected
  2. Enable any ad blocker
  3. Complete setup for another service (e.g. Analytics, Idea Hub) in order to get the “success” notification on the dashboard
  4. AdSense shows up in the list as simultaneously “connected” and “impossible to set up”

Screenshots

adsense-adblocker

Additional Context

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Plugin Version [e.g. 22]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • For cases where AdSense is already successfully connected, don’t display the ad blocker warning in the success notice.

Implementation Brief

in assets/js/components/ModulesListItem.js,

  • Expand the logic to not disable module here and the so an already connected (ie. setupComplete) module is not disabled.
  • Only render ModuleSettingsWarning compoment here when setupComplete is falsy. ie. { ! setupComplete && <ModuleSettingsWarning slug={ slug } context="modules-list" /> }.

Test Coverage

  • Not needed.

Visual Regression Changes

  • Not needed.

QA Brief

  • Follow steps to reproduce.
  • Adblock module should only show up as connected (not disabled/impossible to set up).
  • Test with Adblock Plus

Changelog entry

  • Update the modules list banner not to disable connected modules.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
cole10upcommented, Oct 6, 2021

QA ✅

Tested

Confirmed the bug here: image

Reset and ran the same test to pop the issue above. Confirmed the fix: image

Continued to setup all modules to confirm no other issues occurred with an ad blocker configured.

Sending to approval

0reactions
aaemnnosttvcommented, Sep 22, 2021

IB ✅

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to do if AdSense can't activate your account
To find out why your AdSense account can't be activated, either sign in to AdSense or read the email we sent you. The...
Read more >
Google AdSense not connected with google site kit
I am pasting code through Google Site Kit but in Site Kit setting shows Adsense is not connected. `I am trying to paste...
Read more >
Get started | Unity - Google Developers
This guide shows you how to use the native ads add-on to implement AdMob native ads in a Unity app, as well as...
Read more >
4 Reasons Why Ads Are Not Showing on My Website - Setupad
Sometimes, AdSense publishers may face a problem when the ads are not showing up on their blog because they have broken one or...
Read more >
Google Codelabs
Google Developers Codelabs provide a guided, tutorial, hands-on coding experience. Most codelabs will step you through the process of building a small ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found