/** * Native Bridge for Apple Search Ads, Play Install Referrer, and Advertiser Info * * Conversion event routing to ad platforms (Meta, TikTok, Google) is handled * server-side via the postback system — no client-side ad SDKs needed. * * Supported Platforms: * - iOS: Apple Search Ads (AdServices), IDFA/ATT * - Android: Play Install Referrer, GAID */ /** * Apple Search Ads attribution data returned from AdServices API (iOS only) */ export interface AppleSearchAdsAttribution { attribution: boolean; orgId?: number; orgName?: string; campaignId?: number; campaignName?: string; adGroupId?: number; adGroupName?: string; keywordId?: number; keyword?: string; clickDate?: string; conversionType?: string; countryOrRegion?: string; } /** * Play Install Referrer data (Android only) */ export interface PlayInstallReferrerData { referrerUrl: string; referrerClickTimestamp: number; installBeginTimestamp: number; installCompleteTimestamp?: number; gclid?: string; fbclid?: string; ttclid?: string; utmSource?: string; utmMedium?: string; utmCampaign?: string; utmTerm?: string; utmContent?: string; referrer?: string; } /** * Check if native module is available */ export declare const isNativeModuleAvailable: () => boolean; /** * Get SDK availability status for all platforms */ export declare const getSDKAvailability: () => Promise<{ appleSearchAds: boolean; playInstallReferrer: boolean; }>; export declare const AppleSearchAdsNativeBridge: { /** * Get Apple Search Ads attribution data * Uses AdServices framework (iOS 14.3+) * Returns null if user didn't come from Apple Search Ads or on older iOS */ getAttribution(): Promise; }; export interface AdvertiserInfo { idfa?: string; idfv?: string; gaid?: string; att_status: number; advertiser_tracking_enabled: boolean; } export declare const AdvertiserInfoBridge: { /** * Get advertiser info (IDFA, IDFV, ATT status) * IDFA is only available when ATT is authorized (iOS 14+) * IDFV is always available on iOS */ getAdvertiserInfo(): Promise; }; export declare const PlayInstallReferrerNativeBridge: { /** * Check if Play Install Referrer is available * Only available on Android with Google Play Services */ isAvailable(): Promise; /** * Get install referrer data from Google Play * * Returns UTM parameters, click IDs (gclid, fbclid, ttclid), and timestamps * from the Google Play Store referrer. * * Call this on first app launch to capture install attribution. */ getInstallReferrer(): Promise; };