web_adsense Shortcode
The web_adsense shortcode renders the adsense component.
The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.
Usage
[web_adsense]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
slot |
— | String unless stated otherwise | Add your Google Adsense ID. |
format |
auto |
auto, autorelaxed |
Selects how the field or value is rendered. |
device_visibility |
— | String unless stated otherwise | Applies the selected responsive visibility rule. |
Google Ads requirement
Configure the Google Ads identifiers under Settings → POM Theme → Integrations → Google Ads before using this component.
slot identifies the ad unit configured in the advertising account; it is not the global publisher ID. auto lets the advertising script choose a responsive format, while autorelaxed requests the corresponding relaxed/native presentation supported by the integration.
After placement, verify consent behavior, signed-out rendering, mobile width, layout shift, and pages where advertising should not appear. An empty block can be normal in preview, for blocked requests, or when no ad is served; use the browser console/network panel only with a test account and never paste account credentials into support material.
Verification
Limit web_adsense to trusted authors, review the supplied source carefully and confirm it does not block the rest of the page. Pay particular attention to slot and format.