Widget: Configs Ads


About

Configs Ads is a widget that contains general ad configuration. This configuration will be used in Widget Ad, Ad Top Of Post, Ad Bottom Of Post, and Ad In Post.



Specification




Configuration



Description

lazy_load
Ad script loading system. When the lazy load system is active, the ad script loading process will begin after the first interaction. The first interaction here can be one of the following:

  1. Mouseover (Cursor/Pointer is on the browser screen)
  2. Click
  3. Scroll

This lazy system will only be applied on the first visit. For subsequent visits (e.g., user refreshes or opens another page), loading will proceed normally (immediately).


Value Description
no Lazy status:
Not active

Advantages:
  • Ads will be processed immediately
  • Ads appear faster compared to other values

Disadvantages:
  • Low Page Speed Insights score and causes CLS issues

Choose this value if you don't care about Page Speed Insights score and want to fully optimize ad loading speed

yes Lazy status:
Active

Advantages:
  • Fully safe from Page Speed Insights issues

Disadvantages:
  • Ads may appear slightly delayed due to waiting for the first interaction.

Choose this value if you prioritize Page Speed Insights score over ad loading speed



adsense_ad_client
Adsense Ad Client. This configuration must be defined. Here are the steps to view the AdSense ad client:

  1. Log in to the AdSense dashboard, in the Ads > By site menu, click edit on the site list - (View).
  2. In the opened interface, click Get code - (View).
  3. You can see the Ad Client information in the ad code, example ca-pub-1234567890123456 - (View).


adsense_auto_ads_enabled
Currently, there are 3 types of Adsense auto ads, namely In-Page Ads, Anchor Ads, and Vignette Ads. Change this configuration value to yes if you enable one or more of the 3 types of ads above. You can read the guide for setting Adsense auto ads at: Setting AdSense.

IMPORTANT! Ensure this configuration value is no if no Adsense auto ad types are enabled.

remove_unfilled
Value Description
no Keep displaying unfilled ad elements. This value does not cause reflow.
yes All unfilled ads will be removed. This value can cause reflow.
auto Only remove unfilled ads below the viewport. This value does not cause reflow but unfilled ads within and above the viewport remain available.

Description:
  1. Unfilled Ad An empty ad (only displaying a blank space). This can occur when the AdSense system does not find relevant ads for the page content.

  2. Reflow A change in the position of elements on the page. Elements at the bottom will be pushed up due to the removal of elements above them.

unfilled_placeholder
Text that will be displayed in unfilled ads. This is also used for various errors that cause ads not displayed - (View).
Have Question?