Increase available ad weight in groups

We provide the code snippets and content on this page without any guarantee or support. In most cases, these pages are created on requests or based on individual solutions sent to us by other users. After it was published, we are only reviewing the code and content when we are made aware of an issue. Please let us know if you find one.

Please only use the codes if you understand them and know how to add custom code to your WordPress site.

By default, Advanced Ads sets the available ad weight for ads in groups to 10. This number increases if the amount of ads in the group is higher.

You can also add your own ad weight maximum using the code below.

 * Increase available ad weight in group settings
 * uses 100 if regular ad weight is lower
 * @param   integer $ad_weight current max ad weight.
 * @return  integer new ad weight.
function advads_increase_ad_weight( $ad_weight ) {
		return 100 <= $ad_weight ? $ad_weight : 100;
add_filter( 'advanced-ads-max-ad-weight', 'advads_increase_ad_weight' );

Make it better

Increase your ad management skills without spending more time.
Join over 150,000 publishers and AdOpts increasing their ad revenue.