admoai library

Classes

AdMoai
AdMoaiClient
AdMoaiError
AdMoaiWarning
Advertiser
APIResponse<T>
APIResponseBody<T>
App
AppConfig
AppDetails
Clearable
Content
Creative
CreativeJourney
Read-only Journey Takeover Ads metadata attached to a Journey-served Creative under the response key journey. Field names match the decision-engine v20251101 CreativeJourney contract exactly.
CustomKeyValue
Decision
DecisionRequest
DecisionRequestBuilder
Destination
Device
DeviceConfig
DeviceDetails
Distance
One Sponsored Pin search: a point, exactly one shape around it, and an optional cap.
DistanceBounds
A rectangle to search inside, in degrees.
HTTPRequest
Location
MatchedPoint
One Advertiser Location a Sponsored Pin creative is promoting.
MatchedPointTracking
One Matched Point's three beacon lists.
Metadata
Placement
SDKConfig
Targeting
Template
ThirdPartyTracker
One fixed third-party tracker entry, exactly as the engine serialized it (tracking.thirdPartyTrackers[], served additively under X-Decision-Version: 2025-11-01).
Tracking
TrackingItem
User
UserConfig
VastData
VerificationScriptResource

Enums

Format
HTTPMethod
HTTPStatus
JourneyOpt
Explicit runtime opt control for Journey Takeover Ads.
Priority
Ad priority as returned by the engine.
TrackingType

Extensions

ContentListExtension on List<Content>
CreativeMatchedPoints on Creative
The Advertiser Locations this creative is promoting, nearest first (Sponsored Pin Locations, epic #3138). Empty for every creative that is not a Sponsored Pin creative.
DecisionNoAd on Decision
JourneyHelper on Creative
Convenience read-only accessors for Journey Takeover Ads metadata on a Creative. Follows the same extension pattern as VideoHelper / OMHelper, keeping Creative lean. All getters are null-safe and expose server-owned values only — the SDK never mutates Journey state or infers progression/completion/billing from them.
OMHelper on Creative
VideoHelper on Creative

Constants

matchedPointsContentKey → const String
The contents key the engine puts Matched Points under.
sdkVersion → const String

Functions

getAppDetails() → Future<AppDetails>
getDeviceDetails() → Future<DeviceDetails>
journeySessionIdRejectionReason(String sessionId) → String?
Returns a PII-safe rejection reason token when sessionId would be silently treated as absent by the decision-engine (disabling Journey), or null when it is acceptable.