koah_flutter 0.1.0
koah_flutter: ^0.1.0 copied to clipboard
A Flutter package for integrating Koah ads into your application to display relevant, contextual advertising content.
0.0.5 #
- Unified
requestAdAPI (v2). NewKoah.requestAd(adContext: ..., size: ..., cacheKey: ...),Koah.prefetchAd(...), andKoah.cancelPrefetchAd(cacheKey), plus publicKoahAdContext(.conversation/.article/.feed/.static_),KoahAdSize, andKoahAdResulttypes. Posts to a new/ad_requestsendpoint that uses the discriminated context for matching, copy selection, and format eligibility — same wire shape as iOS 0.7.0 and Android 0.0.16. Cached entries respect the server'sexpires_at. KoahCard.withContext(adContext: ..., size: ..., cacheKey: ...)constructor. New context-based widget initializer that drives the V2 path.KoahCard.fromCache(messageId: ...)continues to read from cache for both legacy and V2 entries.- Deprecations (no behavior change).
Koah.fetchAd/process/prefetch/resolveAd/cancelPrefetchand the legacy primaryKoahCard(query:messageId:...)constructor are marked@Deprecatedwith replacement guidance. They continue to work against the older/queryendpoint for now.
0.0.4 #
- New Event Callback System: Added
KoahEventsealed class with lifecycle events (NoAdFill,AdServed,AdViewed,ImpressionTracked,AdClicked). Use theonEventparameter onKoahSuffixto handle events. - Redesigned KoahSuffix Widget: New three-section layout with header (logo, brand, domain, "Ad" label), body (ad text), and CTA button.
- Breaking: Refactored
KoahStyleconfiguration - now usesKoahHeaderStyle,KoahBodyStyle, andKoahCtaStyleinstead of previous fields.KoahContainerStylenow uses individual properties instead of a singleBoxDecoration.
0.0.2 #
- Fix dart conventions. Add formatting and switch from printing to using a logger.
0.0.1 #
- Initial Suffix Ad component with impression tracking, auth management, url launching, styling, and basic widget lifecycle.