• Resolved marbs

    (@marbs)


    Sometimes Adsense does not deliver. I am wondering how I can solve this issue with a custom fallback ad.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    use a shortcode to separate AdSense and the fallback ad:

    AdSense ad
    [ADINSERTER FALLBACK="adsense" code="insert"]
    Alternative ad

    This will work when AdSense indicates “ad not served”:
    https://adinserter.pro/documentation/adsense-ads#replacing-blank-adsense-blocks

    Thread Starter marbs

    (@marbs)

    This is fantastic, thank you @spacetime

    Plugin Author Spacetime

    (@spacetime)

    ??

    This is fantastic

    Please say it here:
    https://www.ads-software.com/support/plugin/ad-inserter/reviews/#new-post

    Thank you!

    Thread Starter marbs

    (@marbs)

    @spacetime one little question. I’ve tried to apply device detection because I want to use as little blocks as possible but it seems not to work (doing something wrong):

    ADSENSE CODE
    
    [ADINSERTER FALLBACK="adsense" VIEWPORT="Desktop" code="insert"]
    <a href="https://mysite.com/register"><img src="https://mysite.com/wp-content/uploads/2022/04/PC-above-content.jpg" loading="lazy" alt="Sign Up"></a>
    
    [ADINSERTER FALLBACK="adsense" VIEWPORT="Mobile" code="insert"]
    <a href="https://mysite.com/register"><img src="https://mysite.com/wp-content/uploads/2022/04/mobile-above-content.jpg" loading="lazy" alt="Sign Up"></a>
    Plugin Author Spacetime

    (@spacetime)

    Hello,

    you can’t use viewport attribute in the FALLBACK separators (and vice versa).

    The priority of shortcode separators is the following:

    [ADINSERTER CHECK]
    [ADINSERTER COUNT]
    [ADINSERTER ROTATE]
    [ADINSERTER AMP]
    [ADINSERTER HEAD]
    [ADINSERTER VIEWPORT]
    [ADINSERTER FALLBACK]

    So you can try this way:

    [ADINSERTER VIEWPORT="Desktop" code="insert"]
      AdSense ad 1
      [ADINSERTER FALLBACK="adsense"]
      Fallback 1
    
    [ADINSERTER VIEWPORT="Mobile" code="insert"]
      AdSense ad 2
      [ADINSERTER FALLBACK="adsense"]
      Fallback 2
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to replace empty block with a fallback ad?’ is closed to new replies.