@bigcrunch/react-native-ads 0.11.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/android/bigcrunch-ads/com/bigcrunch/ads/BigCrunchAds.kt +21 -4
  2. package/android/bigcrunch-ads/com/bigcrunch/ads/adapters/GoogleAdsAdapter.kt +8 -1
  3. package/android/bigcrunch-ads/com/bigcrunch/ads/core/AdOrchestrator.kt +37 -12
  4. package/android/bigcrunch-ads/com/bigcrunch/ads/core/AnalyticsClient.kt +213 -46
  5. package/android/bigcrunch-ads/com/bigcrunch/ads/core/BidRequestClient.kt +52 -17
  6. package/android/bigcrunch-ads/com/bigcrunch/ads/core/DeviceContext.kt +1 -1
  7. package/android/bigcrunch-ads/com/bigcrunch/ads/models/AdEvent.kt +81 -2
  8. package/android/bigcrunch-ads/com/bigcrunch/ads/models/PlacementConfig.kt +4 -1
  9. package/android/src/main/java/com/bigcrunch/ads/react/BigCrunchAdsModule.kt +57 -2
  10. package/ios/BigCrunchAds/Sources/Adapters/GoogleAdsAdapter.swift +7 -0
  11. package/ios/BigCrunchAds/Sources/BigCrunchAds.swift +29 -6
  12. package/ios/BigCrunchAds/Sources/BigCrunchRewarded.swift +10 -2
  13. package/ios/BigCrunchAds/Sources/Core/AdOrchestrator.swift +20 -4
  14. package/ios/BigCrunchAds/Sources/Core/AnalyticsClient.swift +193 -84
  15. package/ios/BigCrunchAds/Sources/Core/BidRequestClient.swift +54 -17
  16. package/ios/BigCrunchAds/Sources/Core/DeviceContext.swift +1 -1
  17. package/ios/BigCrunchAds/Sources/Models/AdEvent.swift +111 -3
  18. package/ios/BigCrunchAds/Sources/Models/PlacementConfig.swift +4 -1
  19. package/ios/BigCrunchAdsModule.m +6 -0
  20. package/ios/BigCrunchAdsModule.swift +39 -2
  21. package/ios/BigCrunchBannerViewManager.swift +1 -0
  22. package/lib/BigCrunchAds.d.ts +33 -2
  23. package/lib/BigCrunchAds.d.ts.map +1 -1
  24. package/lib/BigCrunchAds.js +35 -2
  25. package/lib/NativeBigCrunchAds.d.ts +3 -2
  26. package/lib/NativeBigCrunchAds.d.ts.map +1 -1
  27. package/lib/types/index.d.ts +40 -0
  28. package/lib/types/index.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/react-native-bigcrunch-ads.podspec +1 -1
  31. package/src/BigCrunchAds.ts +41 -2
  32. package/src/NativeBigCrunchAds.ts +5 -2
  33. package/src/types/index.ts +43 -0
@@ -12,6 +12,11 @@ export * from './ads';
12
12
  */
13
13
  export type Environment = 'production' | 'sandbox';
14
14
 
15
+ /**
16
+ * Account type for the current user
17
+ */
18
+ export type AccountType = 'guest' | 'logged_in' | 'paid' | 'subscriber' | 'free';
19
+
15
20
  /**
16
21
  * Ad formats supported by the SDK
17
22
  */
@@ -57,6 +62,44 @@ export interface InitializationOptions {
57
62
  sessionTimeout?: number;
58
63
  }
59
64
 
65
+ /**
66
+ * Content metadata for a screen/page view
67
+ *
68
+ * Matches the `page_meta_data` fields in the BigCrunch analytics schema.
69
+ */
70
+ export interface PageMetaData {
71
+ /** Canonical page URL */
72
+ url?: string;
73
+ /** Content author */
74
+ author?: string;
75
+ /** Page/screen title */
76
+ title?: string;
77
+ /** Featured image URL */
78
+ thumbnailUrl?: string;
79
+ /** Content section/category */
80
+ articleSection?: string;
81
+ /** Comma-separated keywords */
82
+ keywords?: string;
83
+ /** Content creation date (ISO 8601) */
84
+ dateCreated?: string;
85
+ /** Content last modified date (ISO 8601) */
86
+ dateModified?: string;
87
+ /** Content publication date (ISO 8601) */
88
+ datePublished?: string;
89
+ }
90
+
91
+ /**
92
+ * Options for customizing screen view tracking
93
+ */
94
+ export interface ScreenViewOptions {
95
+ /** Override the auto-generated page URL (must be a valid web URL) */
96
+ pageUrl?: string;
97
+ /** Content metadata for this screen/page */
98
+ pageMeta?: PageMetaData;
99
+ /** Custom key-value dimensions attached to analytics events */
100
+ customDimensions?: Record<string, string>;
101
+ }
102
+
60
103
  /**
61
104
  * Ad request options
62
105
  */