• Dev
  • $ 100 bounty - Fix Ads extension

xasharma Between the ads are not working

This and the sidebar haven't been implemented yet, which explains exactly why they don't work.

If the header and footer do, that means my method does and I can implement the between posts and sidebar later today.

I'll try to hide the big gaps when no ad has been shown, as well as fixing the ads on initial load, but it might prove difficult.

    MikeJones

    Try Disabling all previous ads extensions ... install this one davwheat clear cache , migrate

    it worked for me ... check your Adsense id and ad unit setting

      xasharma SO all are disabled:

      I also ran:

      ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$ sudo php flarum cache:clear
      Clearing the cache...
      ubuntu@ip-172-31-92-154:/var/www/tendigitgrid.com$ sudo php flarum recache:clear
      ReCache cleared!

      I did look in my composer.json and saw this for @davwheat extension, is this line correct:

      "davwheat/flarum-ext-ads": "*",

        MikeJones NO idea bro

        Try a simple html banner ad

        <div>
         <img " src="https://i.imgur.com/oz4nnBF.png" style="width:100%">
        </div>

          MikeJones

          Just got home. I'm seeing the ad code on your forum, but it's showing that the spots are "unfilled" meaning Google hasn't found any ads for your site.

          Are you sure that you've added your domain on AdSense and it's been approved?

            xasharma so that works, wounder why google isnt working. WHat does your code look lthat you are using for hte ad slots?

            davwheat Yes 100% sure my website is approved. I have had ads on in for over a year.

              MikeJones

              <center>
              <!-- Header ad Homepage -->
              <ins class="adsbygoogle"
                   style="display:block"
                   data-ad-client="ca-pub-5941506786539927"
                   data-ad-slot="xxxxxxxxxxx"
                   data-ad-format="auto"
                   data-full-width-responsive="true"></ins>
              </center>

                xasharma so your code

                <center>
                <!-- Header ad Homepage -->
                <ins class="adsbygoogle"
                     style="display:block"
                     data-ad-client="xxxxxxxxxxx"
                     data-ad-slot="xxxxxxxxxxx"
                     data-ad-format="auto"
                     data-full-width-responsive="true"></ins>
                </center>

                my code:

                <ins class="adsbygoogle"
                   style="display:block"
                   data-ad-client="xxxxxxxxxxx"
                   data-ad-slot="xxxxxxxxxxx"
                   data-ad-format="auto"
                   available-width="auto"
                   data-full-width-responsive="true"></ins>

                Your code seems to work lol. MInor change 🤷‍♂️