What is Adspect¶
Adspect is an easy-to-use cloud-based service for protecting affiliate campaigns (CPA offers, landing pages) from “bad” traffic. By bad traffic we mean:
- moderators and policy teams of ad networks
- click fraud, ubiquitous in display ads and popunder
- spy services used by competitors to steal your creatives and landing pages
- content scrapers
- credential stuffing bots
- bots of antivirus companies
- and other flavors of unwanted or outright hostile visitors
You may find additional information in our FAQ.
We work with all traffic sources, both existing and those that will appear in future–our filtering algorithms are perfectly universal and equally efficient across all possible origins of traffic. We support all the largest advertising networks, including:
- Facebook and Instagram
- Google Ads
- Microsoft Advertising (Bing Ads)
- and hundreds of others
We also protect your landing pages and offers from various antivirus, security, and ad scoring companies, including:
- Google Safe Browsing
- Integral Ad Science
- Kaspersky Labs
- residential and mobile proxies, including Luminati and GeoSurf
- and many others
We support several types of integration that differ in technical details and use cases:
- Forward PHP integration via a standalone
- Reverse PHP integration via including a
<script>HTML tag embedding using a remote
More details will be given later in the Integration chapter.
Forward PHP Integration¶
In forward PHP integration filtering is done by a special
index.php file that you place in your landing page directory
or elsewhere accessible via HTTP. This file acts as an entry point for web traffic and is wired to our servers that
process clicks and make decisions. Depending on filtering decision a visitor may be directed to your actual page or to
a “white page”, that is, a page that contains no sensitive content. In other words, Adspect acts as an intermediary stage
in your traffic flow, actively filtering unwanted traffic from legitimate visitors.
Traffic flow chart
Forward PHP integration is the most common type of integration.
Reverse PHP Integration¶
There’s also a slightly different reverse PHP integration that uses a
filter.php file which is included into your
PHP page file (normally your white page) via a single line of PHP code. Traffic lands directly on this page, our code
filter.php file inspects it and chooses either to keep the visitor on the page or display a different one.
Traffic flow chart
Reverse PHP integration is useful for integrating Adspect into sites based on WordPress or similar CMS (content management systems.)
Traffic flow chart
You will also need to download a PHP file called
ajax.php and host it somewhere, but its final location does not
matter as it will be linked into the white page using a
<script> HTML tag.
Adspect PHP Files¶
The fact that we use PHP scripts to filter traffic naturally implies that you need a PHP-enabled web hosting provider or
a tracker with support for landing pages written in PHP. Our files are referred to throughout the documentation as
ajax.php, but you may rename them however you like.
The code is carefully written to be compatible with a wide variety of web hosting environments, ranging from virtual hosting and VPS to dedicated servers and Amazon AWS. Both Windows and Unix-like operating systems are supported, to the extent supported by PHP. PHP 7 is highly recommended, PHP 5 is also supported.
Do not use Namecheap shared hosting! Please see the Best Practices chapter for details.
Common Adspect workflow for affiliate marketing campaigns consists of the following steps:
- Create an Adspect stream for your campaign;
- Choose an appropriate integration method and follow instructions on the integration page;
- Set the stream to the All Money mode and test it to make sure that money page is displayed correctly;
- Set the stream to the All White mode and test it to make sure that white page is displayed correctly;
- Set the stream to the Filtering mode and test it to make sure that you get forwarded to money page without any errors (temporarily disable any manual filters that may block you);
- Set the stream to the On Review mode;
- Create an ad campaign and submit it for review;
- Wait for campaign approval and switch the stream into Filtering mode;
- Run traffic and explore statistics in the Reporting section.