• Resolved hgcool

    (@hgcool)


    Hi,

    Adinserter plugin does not seem to work for AMP pages. I am using [ADINSERTER AMP] tag to insert code to AMP pages, but it doesn’t seem to work.

    Any help?

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

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

    (@spacetime)

    What settings for AMP plugin (mode) are you using?

    Plugin Author Spacetime

    (@spacetime)

    Are you still having issues?

    I’m having the same problem.

    Been trying to resolve it for days now.

    I’ve been using both ‘standard’ and ‘transitional’ mode of the AMP plugin and there are no ads on AMP pages!

    I used to have ads on normal html without a problem.

    There is no code added when I look at the source code of the AMP page (header and body code), even though I’ve put them in the plugin and enabled header and footer.

    There is code added however in non-AMP version and ad inserter label blocks works fine.

    Even when I add the code with another plugin or manually (by putting the custom html on the page in wordpress) still I get no ads on AMP version.

    Automatic ads for AMP pages are enabled in Adsense account.

    Here’s my debugging code from ‘log processing’ from the AMP version

    Ad Inserter 2.5.5

    INSTALLED: 2019-10-03 21:30:53 (0000-00-00 21:06:43, 0 days ago)
    GENERATED (WP time): 2019-10-04 18:37:36
    GENERATED (Server time): 2019-10-04 18:37:36
    PLUGIN CODE PROCESSING: 42.70 ms
    USER CODE PROCESSING: 0.00 ms
    TOTAL PROCESSING TIME: 42.70 ms
    SETTINGS: 2.5.5
    SETTINGS SIZE: 6578
    SETTINGS TIMESTAMP: 2019-10-04 17:40:34
    SETTINGS EXTRACT: 2.5.5-96
    EXTRACT TIMESTAMP: 2019-10-04 17:40:34
    EXTRACT SOURCE: SAVED SETTINGS
    USER: LOGGED-IN ADMINISTRATOR
    USERNAME: *****
    USER ROLES: administrator
    MIN.USER FOR EXCEPTIONS: administrator
    PAGE TYPE: STATIC PAGE
    PUBLISHED: 2019-07-28 11:51:12
    ID: 25
    POST TYPE: page
    CATEGORIES:
    TAGS:
    TAXONOMIES:
    POST META: _edit_lock:1570050314:1, _amp_validated_url_post_id:101
    AMP PAGE: YES
    URL: /?page_id=25&amp
    REFERER: madjarskodrzavljanstvo.com (https://madjarskodrzavljanstvo.com/?page_id=25&amp)
    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
    ADMIN DISABLE CACHING: ENABLED
    DO NOT CACHE CONSTANTS: DONOTCACHEPAGE DONOTCACHEOBJECT DONOTCACHEDB
    HEADER: ENABLED
    FOOTER: ENABLED
    AD BLOCKING DETECTION: DISABLED

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

    TOTAL BLOCKS

    BLOCKS FOR THIS PAGE TYPE

    TIME EVENT
    ======================================
    0 INITIALIZATION START
    33 AFTER REQUIRE: 33.69 ms
    0 LOAD SETTINGS START
    0 LOAD OPTIONS START
    0 LOAD OPTIONS END
    1 LOAD SETTINGS END
    0 AFTER LOAD SETTINGS: 35.86 ms
    0 AFTER LOAD GLOBALS: 35.87 ms
    0 INITIALIZATION END: 35.96 ms

    19 PLUGINS LOADED START
    0 PLUGINS LOADED END: 0.01 ms

    0 PLUGINS LOADED INSTALL DST START
    2 PLUGINS LOADED INSTALL DST END: 2.97 ms

    54 INIT HOOK START
    1 INIT HOOK END: 1.86 ms

    0 WP LOADED HOOK START
    0 WP LOADED HOOK END: 0.00 ms

    5 WP HOOK START
    1 PROCESS SHORTCODES [ADINSERTER AMP]
    0 SHORTCODE TEXT: “|amp|”
    0 SHORTCODE END: 0.12 ms

    0 WP HOOK END: 1.89 ms

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

    SERVER_ADDR: 198.23.57.139
    HTTP_CF_CONNECTING_IP:
    HTTP_CLIENT_IP:
    HTTP_X_FORWARDED_FOR:
    HTTP_X_FORWARDED:
    HTTP_X_CLUSTER_CLIENT_IP:
    HTTP_FORWARDED_FOR:
    HTTP_FORWARDED:
    REMOTE_ADDR: 109.122.123.168

    MULTISITE: NO
    site_url: https://madjarskodrzavljanstvo.com
    home_url: https://madjarskodrzavljanstvo.com
    ABSPATH: /home/www/madjarskodrzavljanstvo.com/
    WP_CONTENT_DIR: /home/www/madjarskodrzavljanstvo.com/wp-content

    PHP: 7.3.10
    mbstring: LOADED
    Default charset: UTF-8
    Memory Limit: 128M
    Upload Max Filesize: 10M
    Post Max Size: 20M
    Max Execution Time: 30
    Max Input Vars: 1000
    Display Errors:
    cURL: ENABLED
    fsockopen: ENABLED
    DOMDocument: YES

    Wordpress: 5.2.3
    Current Theme: Journalist Feedly 1.0

    A INSTALLED PLUGINS
    ======================================
    * Ad Inserter 2.5.5
    * AMP 1.3.0
    * Duplicator 1.3.22
    Insert Headers and Footers 1.4.4 (not active)
    * Really Simple SSL 3.2.5
    W3 Total Cache 0.10.1 (not active)

    I’d appreciate any help.

    Mike.

    Plugin Author Spacetime

    (@spacetime)

    It seems that AMP page is detected.

    Try to set Plugin priority to 10.
    https://adinserter.pro/documentation/plugin-settings

    Tried, same thing.

    Don’t know, maybe to try different AMP plugin?

    Here’s the log:

    Ad Inserter 2.5.5

    INSTALLED: 2019-10-03 21:30:53 (0000-00-00 21:18:26, 0 days ago)
    GENERATED (WP time): 2019-10-04 18:49:19
    GENERATED (Server time): 2019-10-04 18:49:19
    PLUGIN CODE PROCESSING: 38.59 ms
    USER CODE PROCESSING: 0.00 ms
    TOTAL PROCESSING TIME: 38.59 ms
    SETTINGS: 2.5.5
    SETTINGS SIZE: 6575
    SETTINGS TIMESTAMP: 2019-10-04 18:47:54
    SETTINGS EXTRACT: 2.5.5-96
    EXTRACT TIMESTAMP: 2019-10-04 18:47:54
    EXTRACT SOURCE: SAVED SETTINGS
    USER: LOGGED-IN ADMINISTRATOR
    USERNAME: *****
    USER ROLES: administrator
    MIN.USER FOR EXCEPTIONS: administrator
    PAGE TYPE: HOMEPAGE
    AMP PAGE: YES
    URL: /?amp
    REFERER: madjarskodrzavljanstvo.com (https://madjarskodrzavljanstvo.com/?amp)
    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: 10
    ADMIN DISABLE CACHING: ENABLED
    DO NOT CACHE CONSTANTS: DONOTCACHEPAGE DONOTCACHEOBJECT DONOTCACHEDB
    HEADER: ENABLED
    FOOTER: ENABLED
    AD BLOCKING DETECTION: DISABLED

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

    TOTAL BLOCKS

    BLOCKS FOR THIS PAGE TYPE

    TIME EVENT
    ======================================
    0 INITIALIZATION START
    31 AFTER REQUIRE: 31.78 ms
    0 LOAD SETTINGS START
    0 LOAD OPTIONS START
    0 LOAD OPTIONS END
    1 LOAD SETTINGS END
    0 AFTER LOAD SETTINGS: 33.84 ms
    0 AFTER LOAD GLOBALS: 33.86 ms
    0 INITIALIZATION END: 33.94 ms

    18 PLUGINS LOADED START
    0 PLUGINS LOADED END: 0.01 ms

    0 PLUGINS LOADED INSTALL DST START
    3 PLUGINS LOADED INSTALL DST END: 3.16 ms

    33 INIT HOOK START
    0 INIT HOOK END: 0.89 ms

    0 WP LOADED HOOK START
    0 WP LOADED HOOK END: 0.00 ms

    3 WP HOOK START
    0 PROCESS SHORTCODES [ADINSERTER AMP]
    0 SHORTCODE TEXT: “|amp|”
    0 SHORTCODE END: 0.12 ms

    0 WP HOOK END: 0.59 ms

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

    SERVER_ADDR: 198.23.57.139
    HTTP_CF_CONNECTING_IP:
    HTTP_CLIENT_IP:
    HTTP_X_FORWARDED_FOR:
    HTTP_X_FORWARDED:
    HTTP_X_CLUSTER_CLIENT_IP:
    HTTP_FORWARDED_FOR:
    HTTP_FORWARDED:
    REMOTE_ADDR: 109.122.123.168

    MULTISITE: NO
    site_url: https://madjarskodrzavljanstvo.com
    home_url: https://madjarskodrzavljanstvo.com
    ABSPATH: /home/www/madjarskodrzavljanstvo.com/
    WP_CONTENT_DIR: /home/www/madjarskodrzavljanstvo.com/wp-content

    PHP: 7.3.10
    mbstring: LOADED
    Default charset: UTF-8
    Memory Limit: 128M
    Upload Max Filesize: 10M
    Post Max Size: 20M
    Max Execution Time: 30
    Max Input Vars: 1000
    Display Errors:
    cURL: ENABLED
    fsockopen: ENABLED
    DOMDocument: YES

    Wordpress: 5.2.3
    Current Theme: Journalist Feedly 1.0

    A INSTALLED PLUGINS
    ======================================
    * Ad Inserter 2.5.5
    * AMP 1.3.0
    * Duplicator 1.3.22
    Insert Headers and Footers 1.4.4
    * Really Simple SSL 3.2.5
    W3 Total Cache 0.10.1

    Plugin Author Spacetime

    (@spacetime)

    Please submit a ticket and refer to this thread so we can check.

    Ye, but I’m using the free plugin, no license code…?

    Plugin Author Spacetime

    (@spacetime)

    No problem, refer to this thread.

    Thread Starter hgcool

    (@hgcool)

    Hey, Yes, I am still facing issues. I am using Transitional mode in AMP plugin.

    Appreciate your help on this!

    Hey bro, I’ve just fixed the same problem on my end.

    Here’s what I did, it’s worth a try:

    1) I’ve changed AMP to AMP for WP (https://wordpress.org/plugins/accelerated-mobile-pages/).

    2)They promoted the add plugin (Ads for WP – https://wordpress.org/plugins/ads-for-wp/), so I installed that too. There, I’ve just put it my adsense account code ca-pub-xxxxxx and selected adsense auto ads.

    3) Changed my wordpress theme to ‘Neve’ theme.

    Not sure which one did it, not I want to test it again, as long as it works, I’m good.

    Been working on this for a few days, tried many different things, this one finally worked!

    Good luck, Mihailo 🙂

    Plugin Author Spacetime

    (@spacetime)

    @hgcool

    can you try to set Plugin priority to 10:
    https://adinserter.pro/documentation/plugin-settings

    Plugin Author Spacetime

    (@spacetime)

    You can also try with the latest version which contains few fixes:
    https://downloads.wordpress.org/plugin/ad-inserter.zip

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘AD INSERTER not working for AMP pages’ is closed to new replies.