AD INSERTER not working for AMP pages
-
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]
-
What settings for AMP plugin (mode) are you using?
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&
REFERER: madjarskodrzavljanstvo.com (https://madjarskodrzavljanstvo.com/?page_id=25&)
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: DISABLEDBLOCK 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 ms19 PLUGINS LOADED START
0 PLUGINS LOADED END: 0.01 ms0 PLUGINS LOADED INSTALL DST START
2 PLUGINS LOADED INSTALL DST END: 2.97 ms54 INIT HOOK START
1 INIT HOOK END: 1.86 ms0 WP LOADED HOOK START
0 WP LOADED HOOK END: 0.00 ms5 WP HOOK START
1 PROCESS SHORTCODES [ADINSERTER AMP]
0 SHORTCODE TEXT: “|amp|”
0 SHORTCODE END: 0.12 ms0 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.168MULTISITE: NO
site_url: https://madjarskodrzavljanstvo.com
home_url: https://madjarskodrzavljanstvo.com
ABSPATH: /home/www/madjarskodrzavljanstvo.com/
WP_CONTENT_DIR: /home/www/madjarskodrzavljanstvo.com/wp-contentPHP: 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: YESWordpress: 5.2.3
Current Theme: Journalist Feedly 1.0A 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.
It seems that AMP page is detected.
Try to set Plugin priority to 10.
https://adinserter.pro/documentation/plugin-settingsTried, 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: DISABLEDBLOCK 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 ms18 PLUGINS LOADED START
0 PLUGINS LOADED END: 0.01 ms0 PLUGINS LOADED INSTALL DST START
3 PLUGINS LOADED INSTALL DST END: 3.16 ms33 INIT HOOK START
0 INIT HOOK END: 0.89 ms0 WP LOADED HOOK START
0 WP LOADED HOOK END: 0.00 ms3 WP HOOK START
0 PROCESS SHORTCODES [ADINSERTER AMP]
0 SHORTCODE TEXT: “|amp|”
0 SHORTCODE END: 0.12 ms0 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.168MULTISITE: NO
site_url: https://madjarskodrzavljanstvo.com
home_url: https://madjarskodrzavljanstvo.com
ABSPATH: /home/www/madjarskodrzavljanstvo.com/
WP_CONTENT_DIR: /home/www/madjarskodrzavljanstvo.com/wp-contentPHP: 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: YESWordpress: 5.2.3
Current Theme: Journalist Feedly 1.0A 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.1Please submit a ticket and refer to this thread so we can check.
Ye, but I’m using the free plugin, no license code…?
No problem, refer to this thread.
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 🙂
can you try to set Plugin priority to 10:
https://adinserter.pro/documentation/plugin-settingsYou can also try with the latest version which contains few fixes:
https://downloads.wordpress.org/plugin/ad-inserter.zip
- The topic ‘AD INSERTER not working for AMP pages’ is closed to new replies.