These are the constants that are used or can be used with Advanced Ads. Most of these constants can just be defined in your site’s wp-config.php file with a single line like this:

ADVADS_ADS_DISABLED

This constant is set in case ads are disabled. You can either set it manually in your theme or plugin or it is included using one of many options to bulk disable ads.

Sample code you can use to set the constant: (always test if it already exists!)

ADVADS_ALLOW_ADSENSE_ON_404

Set this constant in your wp-config.php file in order to allow AdSense ads to appear on 404 error pages.

ADVADS_BASE_PATH

Basic plugin path.

ADVADS_BASE_URL

Basic plugin URL.

ADVADS_CURRENT_CONTENT_LENGTH

Included in Advanced Ads Pro.

Length of the content when ad injection is used.

ADVADS_DISABLE_RESPONSIVE_IMAGES

Set this constant if you don’t want to create responsive images for image ads and images in rich content ads as introduced in WordPress 4.4.

ADVADS_SLUG

Slug and textdomain used in many places to identify the plugin.

ADVANCED_ADS_AD_DEBUG_FOR_ADMIN_ONLY

Define this constant with any value and only ad admin users will see the ad debug output.

ADVANCED_ADS_DISABLE_ANALYTICS_ANONYMIZE_IP

Set this contant if you don’t want anonymizeIp enabled by default with Analytics tracking features.

ADVANCED_ADS_DISABLE_CHANGE

Set this constant in order to prevent overriding attributes in the theme PHP functions or shortcodes to work.

ADVANCED_ADS_DISABLE_CODE_HIGHLIGHTING

Set this constant to disable code highlighting in the plain text ad type.

ADVANCED_ADS_DISABLE_FRONTEND_AD_WEIGHT_UPDATE

Set this constant in order to disable ad group weight updates in the frontend. Only on very high traffic sites it can happen that the ad weights get overridden through a frontend call while an admin saves them in the admin area, so the old value is restored and the update has no effect.

ADVANCED_ADS_DISABLE_SHORTCODE_BUTTON

Remove the shortcode icon from the TinyMCE interface for all users.

ADVANCED_ADS_DISALLOW_PHP

Set this constant to remove the option to use and execute PHP within ad code.

ADVANCED_ADS_ENABLE_REVISIONS

Set this constants in order to allow revisions for ads (only ad content).

ADVANCED_ADS_PRO_CUSTOM_POSITION_MOVE_INTO_HIDDEN

Set this constant in order to allow injection of ads into hidden elements. Especially meant for the Custom Position placement.

ADVANCED_ADS_PRO_PAGE_IMPR-EXDAYS

Set the cookie duration of the page impressions visitor condition in Advanced Ads Pro in days. Default: 3650 days (10 years).

ADVANCED_ADS_PRO_REFERRER_EXDAYS

Set the cookie duration of the URL referrer visitor condition in Advanced Ads Pro in days. Default: 365 days.

ADVANCED_ADS_RESPONSIVE_DISABLE_BROWSER_WIDTH

Disable the browser width visitor condition in the Responsive add-on.

ADVANCED_ADS_SHOW_LICENSE_RESPONSE

Set this constant to show license debug information in Advanced Ads > Settings > Licenses when trying to enable or disable a license. It will prevent the license activation to work, so remove it if no longer needed.

ADVANCED_ADS_SUPPRESS_PLUGIN_ERROR_NOTICES

Don’t show critical plugin errors in WordPress Admin.

ADVANCED_ADS_TRACKING_DEBUG

Define this constant in order to activate a tracking debug log. Find more details under Debug tracking here.

ADVANCED_ADS_TRACKING_NO_HOURLY_LIMIT

Set this constant in order to not spread impressions and clicks over a given period when an impression or click limit and an expiry date is set.

ADVANCED_ADS_TRACKING_NO_PUBLIC_STATS

Don’t generate a public stats page per ad.

ADVANCED_ADS_TRACKING_IGNORE_LOGGED_IN_USERS

Don’t track any activity from logged in users