Documentation Index
Fetch the complete documentation index at: https://docs.cloudx.io/llms.txt
Use this file to discover all available pages before exploring further.

Create an ad unit
You can create ad units from the Ad Units page in the sidebar or directly from an App page. Creating from an app page pre-selects the app for you. To create an ad unit:- Click + Add ad unit
- Name your ad unit that exactly matches the name in your SDK code
- Select which app this ad unit belongs to (if not already selected)
- Choose an ad format
- Configure format-specific settings
- Click Save
Ad formats
| Format | Size | Description |
|---|---|---|
| Banner | 320x50 | Standard banner ads with auto-refresh |
| MREC | 300x250 | Medium rectangle ads for content feeds |
| Interstitial | Full-screen | Full-screen ads for natural transitions |
| Rewarded | Full-screen | Video ads that reward users for watching (e.g., extra lives, in-game currency) |
Ad format settings
1. Banner, MREC:

- Reward amount - the number of items the user receives after watching the ad. For example, 10 coins or 1 extra life.
- Reward currency - the name of the reward. For example, coins, gems, or extra lives.
- Reward callback URL - a server-to-server callback URL that CloudX calls when a user completes a rewarded ad. Use this to verify rewards on your backend before granting them to the user. See Rewarded callbacks for supported macros.
Frequency caps
Use frequency caps to limit how many impressions the same user can see from a specific ad unit within a chosen time window. CloudX currently supports these windows for ad-unit caps:hourdaysession
Configure an ad-unit cap
- Open Ad Units
- Select the ad unit you want to update
- In the Frequency cap section, enable the cap
- Set Max impressions
- Select a Time window
- Click Save changes
2 / hourmeans the same user can see at most 2 impressions from that ad unit in a single hour
How enforcement works
Frequency caps are checked before the auction, but counted on impression. That means:- a request does not burn cap just because an auction ran
- the counter increments only after an ad is actually shown
- once the user is over cap, capped inventory returns no fill
Notes
- Session caps require the SDK to send a session ID with the ad request.
- Ad-unit caps are evaluated independently from segment caps. If both are configured, the request must pass both checks to serve.
- The Dashboard also supports segment caps and a default cap for unsegmented traffic from the Segments area.
Rewarded callbacks
CloudX sends an HTTP GET request to your callback URL each time a user completes a rewarded ad. Use this to verify the reward on your server before crediting the user. In the Reward callback URL field, paste a URL that includes any of the macros below. CloudX replaces each macro with the actual value before making the request. Example:Supported macros
| Macro | Description | URL-encoded |
|---|---|---|
{EVENT_ID} | Unique identifier for this reward event. | No |
{EVENT_TOKEN} | Verification token derived from the Event ID. Can be used for server-side callback verification. | No |
{AMOUNT} | Reward amount configured on the ad unit (numeric). Always present, defaults to 0. | No |
{CURRENCY} | Reward currency name configured on the ad unit. | Yes |
{CUSTOM_DATA} | Arbitrary string passed by the SDK. Use this to attach context such as game level or user state to the callback. | Yes |
{REVENUE} | Per-impression revenue value (numeric). Defaults to 0 if not available. | No |
Retry behavior
CloudX retries the callback up to 2 times if your server times out. Non-timeout errors (4xx, 5xx) are not retried. Make sure your endpoint responds within a few seconds.After creating an ad unit
Once your ad unit is created:- Reference it in your SDK code using the exact ad unit name
- Create line items to define which demand sources serve ads and at what price
- Configure network mappings to connect your ad unit to demand partners