- How to integrate Javascript Anti-Adblock ad channel code
- How to integrate PHP Anti-Adblock ad channel code
- How to integrate PHP Anti-Adblock ad channel code into WordPress based site
As a Publisher, you may choose one of two versions of Anti-Adblock codes - Javascript and PHP.
If your hosting provider supports PHP, we strongly recommend to use PHP version of Anti-Adblock code. Otherwise, you'll be forced to update the JS-code manually every time when the new domains will get banned by AdBlock.
Integrating Javascript Anti-Adblock ad channel code
Javascript code can be used on any hosts (including free services), but need to be replaced manuallyevery time after getting our domains in ablocking software filters (at least once per week).
Copy the Javascript code and paste it in the source code of your website pages right after the <body> tag.
Please note: do not use Standard & Anti-Adblock code on the same page at the same time! Anti-Adblock code already contains Standard code and it works for users without adblock as well as for users with installed adblocking software.
Integrating PHP Anti-Adblock ad channel code
It would need some development skills to implement that, but provides you unlimited anti-adblock support for an ad channel without need to replace code.
1) Download the PHP file pa_antiadblock.php containing your onclick ads code with anti-adblock support
2) Upload it on your server to the directory on server where your website PHP files are located
3) Insert this line into your .php file where you would normally put the ad serving tag (best place for onclick ads is right after <head> tag)
<?php echo include_once (dirname(__FILE__) . '/pa_antiadblock.php'); ?>
Integrating PHP Anti-Adblock ad channel code into WordPress based site
Please note: this method works only on WordPress based sites located on paid hostings. If you want to integrate our codes on Free WordPress hosting - contact their support for assistance.
There are two methods to install Anti-Adblock ad channel code into WordPress based site through our official plugin (recommended) or manually inserting code via Theme Editor.
Enable & manage ads with official plugin for Wordpress
1) Download and install the PropellerAds Official Plugin from WordPress repository (or from our hosting).
2) Activate the plugin through the "Plugins" menu in WordPress
3) Login to your Publisher account and choose Anti-Adblock ad channel from the list (or create a new one).
4) Find Anti-Adblock Token & Anti-Adblock Zone ID in the PHP code
5) Insert your Anti-Adblock Token & Anti-Adblock Zone ID and save settings.
Integrating PHP Anti-Adblock ad channel code into WordPress site manually
1)Upload the PHP file pa_antiadblock.php containing your onclick ads code with anti-adblock support to your active WordPress theme directory
/wp-content/themes/ACTIVE_THEME
2) Login to your Wordpress dashboard, go to Appearance and select Editor
3) Choose Header (header.php) from the files list
4) Insert this line right below <head> tag
<?php echo include_once (dirname(__FILE__) . '/pa_antiadblock.php'); ?>
If you are experiencing any problems with integration - please contact support from your account.
so how do you add it in blogger blogs?
ReplyDeleteThis is really an awesome blog. It is simple and very informative. Thank you for sharing this. Web Design & Development Company in Bangalore | Website Design Company in Bangalore | Web Designing Company in Bangalore | Web Design Companies in Bangalore
ReplyDeletehttps://tube24hours.com
ReplyDelete