Layouts (formerly: Pages)
Last edited: 2025/05/17
Layouts (formerly known as “Pages”) allow you to control which Ad Units receive ad requests based on defined triggers. You can also specify settings that apply at the Layout level. These settings will override Domain and Ad Unit level settings (see: Which setting applies to the ad unit when the parameter is set at multiple levels?).
What is Layout
A Layout is a "smart" container for Ad Units. It acts as a list of Ad Units that should be called when specific triggering criteria are met.
In other words, it allows you to send ad requests (with all necessary targeting) only when certain conditions are met - for example, if a user lands on a specific URL or belongs to a predefined group (such as non-subscribers).
The main reason for that is that in such scenario Layouts can decrease the size of the JavaScript sent by Yieldbird Tag and make it execute faster which can result in better Core Web Vitals (First Input Delay) and give Prebid Bidders more time to bid.
Defining a Layout
- Go to Inventory > Layout, click ‘Add New’.
- Select the Domain for which you want to create the Layout.
- Optionally, you can disable Only send ad requests for Ad Units assigned to the Layout.
- If enabled: When a Layout is detected on a given pageview, the Yieldbird Platform will send ad requests to GAM only for the Ad Units assigned to that Layout.
- If disabled: Ad requests will be sent to GAM for all Ad Units available on the URL, but the Yieldbird Platform (including all modules) will operate only on the Ad Units assigned to the Layout.
- Define the Triggers for the Layout. You can trigger a Layout based on:
- URL (full path, partial path, or regular expression)
- Custom Variable (any variable used in your website architecture)
To trigger the Layout based on URL:
- Enable ‘URL’ Trigger
- Write the {URL path} to be recognized
- Choose how the system should interpret the path:
- Include – matches any URL containing the defined path
- Exact match – matches one specific URL only
- Regular expression – uses regex to define complex patterns
- Include or Exact Match:
/article/image/
as Exact match → matcheshttps://example.com/article/image
/article/image/
as Include match → matcheshttps://example.com/article/image/12
andhttps://example.com/article/image/
- Regular Expression (regex):
https://example.com/UK/article
https://example.com/IT/feed
/\w+/article.*
/\w+/feed.*
Examples of usage:
Use regex for URLs like:
To separate articles and feeds by country:
Use multiple expressions with " OR " (space + OR + space, in caps) e.g.:
/\w+/article.* OR /\w+/feed.*
⚠️ Incorrect formats like
"or"
,"OR "
, or" .OR "
will not work.
Exemplary use cases of Layouts
- Limiting Prebid Timeout on URLs where users stay for a shorter time (e.g., gallery pages) - helps reduce lost ad requests caused by longer Prebid processing.
- Controlling Ad Unit visibility based on user groups - for example, showing fewer ads to subscribers while keeping full ad setup for non-subscribers.