get_ad_breaks
List the ad breaks on an asset.
get_ad_breaks
List the ad breaks on an asset.
Safety class: A · API type: admin · Min version: —
ConfinementRead-only; safe anywhere.
Signatures
def get_ad_breaks(sdk, asset_id):
"""Return the asset's ad breaks, or None if it does not resolve."""
return sdk.get_asset_ad_breaks(asset_id)export async function getAdBreaks(sdk, assetId) {
// Return the asset's ad breaks.
return await sdk.getAssetAdBreaks(assetId);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | |
asset_id | assetId | str | yes | e.g. <asset-uuid> |
Returns
dict | None — the asset's ad breaks (list/dict). None if not found.
Errors
- 401 unauthenticated
- 404 not found -> None
See also: Python ↔ JS naming map · Return shapes.
