ad_slot items between your content based on these settings. The SDK receives ad slots as part of the feed and handles rendering.
Both endpoints require a secret key only — portal JWTs are not accepted.
The ad config object
Attributes
Placement
Position of the first ad slot, counted in content items. A value of
3 means the first ad appears after the third content item.Ad source
VAST/VMAP ad tag URL. Passed through to the SDK in each ad slot so the client-side ad player can request creatives from your ad server.
Ad unit identifier from your ad platform (e.g., Google Ad Manager, AppLovin). When
nativeAdUnitId is set, native ad slots use that value instead.Skip behavior
Controls whether users can skip ads. Passed through to the SDK — set it to whatever your ad rendering layer expects (e.g.,
"skippable_after", "non_skippable", "always_skippable").Seconds the user must watch before a skip button appears. Only relevant when
skipPolicy allows skipping.Targeting
Key-value pairs passed through in every ad slot’s
targeting field. Use this for default targeting signals (content category, audience segment, etc.).Native ads
These fields configure native ad rendering. WhennativeEnabled is true, ad slots include adFormat: "native" and a nativeAssetKeys object mapping your ad platform’s response keys to the fields the SDK expects.
How ads appear in the feed
Whenenabled is true, the server inserts ad_slot items into feed responses. The placement algorithm:
- First ad — inserted after position
firstAdOffset - Recurring — another ad every
frequencycontent items - Page cap — no more than
maxPerPageper page
Ad slot shape
Each ad slot in the feed contains everything the client needs to request and render an ad:nativeEnabled is true, ad slots include native-specific fields:
enabled is false, no ad slots appear in the feed. You can update other config fields while ads are disabled — they take effect when you re-enable.