• Resolved Tony Payne

    (@poddys)


    I have been struggling with the ad-inserter plugin and ads not displaying for almost a year. In frustration at not being able to figure this out, I’m finally asking for help as I would like to improve the revenue of my site, but ads seem to rarely show.

    Tonight I reset all ad-insterter settings, pasted my Adsense auto-code into the header, and I can see this is being output ok and there are no Javascript errors when pages load.

    I have no manually edited code blocks, because if I understand correctly from the documentation, all I need to do is add the Adsense code to the plugin header settings and activate it (green light).

    Activating the Log Processing in the debugging options, I get this in the page source:

    <!–

    Ad Inserter 2.4.8

    INSTALLED: 2018-04-09 07:01:44 (0000-09-23 13:39:23, 298 days ago)
    GENERATED (WP time): 2019-02-01 20:41:07
    GENERATED (Server time): 2019-02-01 20:41:07
    PLUGIN CODE PROCESSING: 38.05 ms
    USER CODE PROCESSING: 0.00 ms
    TOTAL PROCESSING TIME: 38.05 ms
    SETTINGS: 2.4.8
    SETTINGS SIZE: 6356
    SETTINGS TIMESTAMP: 2019-02-01 20:29:30
    SETTINGS EXTRACT: 2.4.8-96
    EXTRACT TIMESTAMP: 2019-02-01 20:29:30
    EXTRACT SOURCE: SAVED SETTINGS
    MULTISITE: NO
    USER: LOGGED-IN ADMINISTRATOR
    USERNAME: xxxxxxxxx
    USER ROLES: administrator
    MIN.USER FOR EXCEPTIONS: administrator
    PAGE TYPE: HOMEPAGE
    AMP PAGE: NO
    URL: /
    REFERER: https://www.thelaughline.com (https://www.thelaughline.com/)
    VIEWPORT 1: Desktop min width 980 px
    VIEWPORT 2: Tablet min width 768 px
    VIEWPORT 3: Phone min width 0 px
    SERVER-SIDE DETECTION: NOT USED
    CLIENT-SIDE DETECTION: NOT USED
    CLIENT-SIDE INSERTION: NOT USED
    BLOCK CLASS NAME: code-block
    INLINE STYLES: ENABLED
    DYNAMIC BLOCKS: Server-side
    PARAGRAPH COUNTING: Standard
    NO PAR. COUNTING INSIDE: blockquote, figure, li
    OUTPUT BUFFERING: Disabled
    AD LABEL: Advertisements
    MAIN CONTENT:
    PLUGIN PRIORITY: 99999
    HEADER: ENABLED
    FOOTER: DISABLED
    AD BLOCKING DETECTION: DISABLED

    BLOCK SETTINGS Po Pa Hp Cp Ap Sp AM Aj Fe 404 Wi Sh PHP

    EXCEPTIONS FOR BLOCKS ID TYPE TITLE URL

    TOTAL BLOCKS

    BLOCKS FOR THIS PAGE TYPE

    TIME EVENT
    ======================================
    0 INITIALIZATION START
    20 AFTER REQUIRE: 20.62 ms
    0 LOAD SETTINGS START
    0 LOAD OPTIONS START
    0 LOAD OPTIONS END
    2 LOAD SETTINGS END
    0 AFTER LOAD SETTINGS: 23.13 ms
    0 AFTER LOAD GLOBALS: 23.17 ms
    0 INITIALIZATION END: 23.29 ms

    110 PLUGINS LOADED START
    3 PLUGINS LOADED END: 3.10 ms

    95 WP LOADED HOOK START
    0 WP LOADED HOOK END: 0.01 ms

    6 WP HOOK START
    0 WP HOOK END: 0.31 ms

    42 HEAD HOOK START
    0 HEAD CODE: 266 characters
    0 HEAD HOOK END: 1.11 ms

    17 BEFORE POST HOOK START
    0 BEFORE POST HOOK END: 0.03 ms

    7 CONTENT HOOK START [1, IN THE LOOP]
    1 CONTENT HOOK END: 1.13 ms

    0 EXCERPT HOOK START [1]
    0 EXCERPT HOOK END: 0.24 ms

    7 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.04 ms

    1 CONTENT HOOK START [2, IN THE LOOP]
    0 CONTENT HOOK END: 0.64 ms

    0 EXCERPT HOOK START [2]
    0 EXCERPT HOOK END: 0.08 ms

    4 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    1 CONTENT HOOK START [3, IN THE LOOP]
    0 CONTENT HOOK END: 0.81 ms

    0 EXCERPT HOOK START [3]
    0 EXCERPT HOOK END: 0.07 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    2 CONTENT HOOK START [4, IN THE LOOP]
    3 CONTENT HOOK END: 3.51 ms

    0 EXCERPT HOOK START [4]
    0 EXCERPT HOOK END: 0.07 ms

    4 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [5, IN THE LOOP]
    0 CONTENT HOOK END: 0.51 ms

    0 EXCERPT HOOK START [5]
    0 EXCERPT HOOK END: 0.06 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [6, IN THE LOOP]
    0 CONTENT HOOK END: 0.57 ms

    0 EXCERPT HOOK START [6]
    0 EXCERPT HOOK END: 0.09 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [7, IN THE LOOP]
    0 CONTENT HOOK END: 0.32 ms

    0 EXCERPT HOOK START [7]
    0 EXCERPT HOOK END: 0.06 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [8, IN THE LOOP]
    0 CONTENT HOOK END: 0.55 ms

    0 EXCERPT HOOK START [8]
    0 EXCERPT HOOK END: 0.06 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [9, IN THE LOOP]
    0 CONTENT HOOK END: 0.25 ms

    0 EXCERPT HOOK START [9]
    0 EXCERPT HOOK END: 0.06 ms

    3 BETWEEN POSTS HOOK START
    0 BETWEEN POSTS HOOK END: 0.02 ms

    0 CONTENT HOOK START [10, IN THE LOOP]
    1 CONTENT HOOK END: 1.06 ms

    0 EXCERPT HOOK START [10]
    0 EXCERPT HOOK END: 0.08 ms

    3 AFTER POST HOOK START
    0 AFTER POST HOOK END: 0.04 ms

    27 FOOTER HOOK START
    0 FOOTER HOOK END: 0.02 ms

    0 FOOTER HOOK START
    0 FOOTER HOOK END: 0.10 ms

    INSERTION SUMMARY
    ======================================

    SERVER_ADDR: 162.253.225.143
    HTTP_CF_CONNECTING_IP:
    HTTP_CLIENT_IP:
    HTTP_X_FORWARDED_FOR: 81.103.249.227
    HTTP_X_FORWARDED:
    HTTP_X_CLUSTER_CLIENT_IP:
    HTTP_FORWARDED_FOR:
    HTTP_FORWARDED:
    REMOTE_ADDR: 81.103.249.227

    PHP: 7.2.14
    mbstring: LOADED
    Default charset: UTF-8
    Memory Limit: 256M
    Upload Max Filesize: 2M
    Post Max Size: 8M
    Max Execution Time: 600
    Max Input Vars: 1000
    Display Errors: E_ALL|E_STRICT
    cURL: ENABLED
    fsockopen: ENABLED
    DOMDocument: YES

    Wordpress: 5.0.3
    Current Theme: Customizr 4.1.26

    A INSTALLED PLUGINS
    ======================================
    * Ad Inserter 2.4.8
    * Akismet Anti-Spam 4.1.1
    * Async JavaScript 2.18.12.10
    * BackUpWordPress 3.8
    * Blackhole for Bad Bots 2.1
    Bulk Move 1.3.0
    * BulletProof Security Pro 13.8
    * Classic Editor 1.3
    Duplicator 1.3.4
    * GDPR Cookie Consent 1.7.3
    * Google Analytics 2.1.5
    Infolinks Official Plugin 3.2.2
    * Lexi 1.1
    * Media Library Assistant 2.78
    * minimax 0.3.7
    * Official StatCounter Plugin 2.0.6
    Share Buttons by AddThis 6.1.8
    * Smart Youtube PRO 4.3
    * Subscribe2 10.26
    User Role Editor 4.49
    WP-Cleanup 1.1.0
    * WP Crontrol 1.6.2
    * WP Facebook Auto Publish 2.1
    * WP Twitter Auto Publish 1.4
    * Yoast SEO 9.5

    –>

    I can’t see what I am doing wrong. Could it be the theme (Customizr 4.1.26) that is the problem?

    Please let me know if you need me to activate remote debug.

    Thanks in advance.

    The page I need help with: [log in to see the link]

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

    (@spacetime)

    You have javascript errors on pages – check browser console:

    Uncaught ReferenceError: jQuery is not defined

    This is very likely related to your theme.

    Code for AdSense auto ads seem to be properly inserted but the code doesn’t show ads.

    I would first try to fix errors.

    Thread Starter Tony Payne

    (@poddys)

    Thanks Spacetime. The plugin debug didn’t show any errors, but I do have Javascript deferred to the footer, so it might make a difference. Will check the console as well.

    Thread Starter Tony Payne

    (@poddys)

    I believe I have fixed the JQuery problem.It was loading sometimes, but not always. I have a plugin that tries to optimise the loading of javascript. Changed the settings and now it seems to load better. Still not seeing ads though (yet).

    Plugin Author Spacetime

    (@spacetime)

    Hard to say what is the reason, there are no more errors.
    The code seems to be properly inserted.

    Google decides when and what ads to show.

    Thread Starter Tony Payne

    (@poddys)

    I am right in not defining any block settings? As I understand it, Google decides where to place. Will see if having reset everything and fixed the JQuery loading problem if it now works.
    It could be the theme I am using, or potentially the shared hosting plan as well.
    Fingers crossed, and thanks for the help.

    Plugin Author Spacetime

    (@spacetime)

    Yes, you have code in the Header section – inserted on all pages:
    https://adinserter.pro/documentation/adsense-ads#auto-ads

    You are welcome!

    Thread Starter Tony Payne

    (@poddys)

    I think it’s working ok, because I see ads on some pages, but only about 1:10. Must just be Google deciding whether to insert ads or not. The length of the post doesn’t seem to matter as far as I can tell.
    I don’t know if switching to Guttenberg for new posts will make a difference or not. I’m still using the classic editor.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adsense Auto Ads Not Displaying’ is closed to new replies.