How to integrate OnclickAds code with Anti-Adblock support? - monlife

Hot

Post Top Ad

Monday 23 October 2017

How to integrate OnclickAds code with Anti-Adblock support?

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.
Integrating Anti-Adblock Javascript code
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.
Integrating Anti-Adblock PHP 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 Anti-Adblock PHP code - paste in code

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
 Where to find Anti-Adblock Token & ZoneID
5) Insert your Anti-Adblock Token & Anti-Adblock Zone ID and save settings.
 Insert Anti-Adblock Token & Zone ID

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'); ?>
 Integrating Anti-Adblock PHP code into Wordpress
If you are experiencing any problems with integration - please contact support from your account. 

Read also:

How to get new Anti-Adblock code for OnclickAds (popunder)?

How to get the code with Anti-Adblock support for existing ad channels?

3 comments:

Post Top Ad