Configuration API Reference
The AdUnblock Configuration API provides access to the latest JavaScript configuration files needed for ad blocker detection on your website.
Base URL
Authentication
This API endpoint is publicly accessible and does not require authentication.
Caching
The API responses are cached for optimal performance and support standard HTTP caching headers for efficient client-side caching.
Server Tag Configuration
Get JavaScript Configuration
Retrieve the latest JavaScript files needed for ad blocker detection.
Response
The response is a JSON array containing JavaScript file URLs for ad blocker detection as strings.
Usage Example
Once you fetch the configuration, you can dynamically load the JavaScript files:
Caching Recommendations
- The API supports standard HTTP caching headers
- Implement conditional requests using
If-None-Match header with ETag
- Cache responses locally for better performance
- Check for updates periodically (e.g., every hour)
Valid Script Sources (Deprecated)
This endpoint is deprecated and will be removed in a future version. Please
use the /api/vendor_scripts endpoint instead.
Get Valid Script Sources
Retrieve a list of valid JavaScript source URLs for ad blocker detection.
Response
The response is a JSON array containing valid JavaScript source URLs as strings.
Migration Guide
If you’re currently using this endpoint, migrate to the new /api/vendor_scripts endpoint: