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.
Introduction
Tags let you route a single ad request to a specific subset of line items. The SDK attaches an array of tag values to the ad request, and only line items configured with a matching tag compete for that impression. A typical use case is reserving inventory for a house ad or fallback campaign:- The SDK tags a request with
tags = ["house_ad"] - Only line items with the house_ad tag are eligible
- All other line items — even higher-priority ones — are skipped for that request
How matching works
CloudX uses strict isolation between tagged and untagged traffic. The presence or absence of a tag on the request fully decides which line items compete.| Request tags | Line item tags | Result |
|---|---|---|
| empty | empty | Eligible |
| empty | non-empty | Skipped |
| non-empty | empty | Skipped |
| non-empty | non-empty, any matching tag | Eligible |
| non-empty | non-empty, no matching tags | Skipped |
Create or edit tags for line items
Tags are part of the Advanced (Optional) step on the line item form.- Open Line Items and click + Add line item, or edit an existing line item
- Complete General and Targeting as usual
- Expand Advanced (Optional)
- In the Tags section, click any tag chip to toggle it on or off
- To add a new tag, click + Create new tag, enter a name (e.g.
Catch All), and click Add - Click Save

A line item with no tags selected only serves requests that arrive without tags. A line item with one or more tags selected only serves requests whose
tags array contains at least one matching value.Send a tag from the SDK
UsesetExtraParameter on the ad object to attach a tag array before calling load. You can change the values between loads — the SDK captures them at the time of load, and subsequent updates take effect on the next load call.
Minimum SDK versions
- Android —
setExtraParameteris available starting in Android SDK 3.2.0 - iOS —
setExtraParameteris available starting in iOS SDK 3.4.0
Android
setExtraParameter is available on banners (CloudXAdView), interstitials and rewarded ads (CloudXFullscreenAd), and native ads (CloudXNativeAdLoader).
Kotlin:
null:
iOS
setExtraParameter is available on banners (CLXBannerAdView, CLXBanner), fullscreen ads (CLXFullscreenAd), and native ads (CLXNativeAdLoader).
Swift:
nil / null:
Validate your setup
After wiring up the SDK and saving the line item, confirm the end-to-end flow before relying on tags in production:- In the dashboard, set the line item status to Active
- In your app build, call
setExtraParameter("tags", ["..."])beforeload - Trigger an ad request and confirm an impression serves from the expected line item
Common patterns
House ads / fallback inventory. Create a line item with the house_ad tag, and have the app sendtags = ["house_ad"] whenever it wants the house creative to win. All other requests stay on your regular monetization pool.
Audience cohorts. Tag VIP or high-LTV users with tags = ["vip"] from your app code and configure premium line items with the vip tag to serve them.
Combined routing. Send multiple values such as tags = ["vip", "house_ad"] when a request should be eligible for line items configured with either tag.