@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.
- package/android/bigcrunch-ads/com/bigcrunch/ads/BigCrunchAds.kt +21 -4
- package/android/bigcrunch-ads/com/bigcrunch/ads/adapters/GoogleAdsAdapter.kt +8 -1
- package/android/bigcrunch-ads/com/bigcrunch/ads/core/AdOrchestrator.kt +37 -12
- package/android/bigcrunch-ads/com/bigcrunch/ads/core/AnalyticsClient.kt +213 -46
- package/android/bigcrunch-ads/com/bigcrunch/ads/core/BidRequestClient.kt +52 -17
- package/android/bigcrunch-ads/com/bigcrunch/ads/core/DeviceContext.kt +1 -1
- package/android/bigcrunch-ads/com/bigcrunch/ads/models/AdEvent.kt +81 -2
- package/android/bigcrunch-ads/com/bigcrunch/ads/models/PlacementConfig.kt +4 -1
- package/android/src/main/java/com/bigcrunch/ads/react/BigCrunchAdsModule.kt +57 -2
- package/ios/BigCrunchAds/Sources/Adapters/GoogleAdsAdapter.swift +7 -0
- package/ios/BigCrunchAds/Sources/BigCrunchAds.swift +29 -6
- package/ios/BigCrunchAds/Sources/BigCrunchRewarded.swift +10 -2
- package/ios/BigCrunchAds/Sources/Core/AdOrchestrator.swift +20 -4
- package/ios/BigCrunchAds/Sources/Core/AnalyticsClient.swift +193 -84
- package/ios/BigCrunchAds/Sources/Core/BidRequestClient.swift +54 -17
- package/ios/BigCrunchAds/Sources/Core/DeviceContext.swift +1 -1
- package/ios/BigCrunchAds/Sources/Models/AdEvent.swift +111 -3
- package/ios/BigCrunchAds/Sources/Models/PlacementConfig.swift +4 -1
- package/ios/BigCrunchAdsModule.m +6 -0
- package/ios/BigCrunchAdsModule.swift +39 -2
- package/ios/BigCrunchBannerViewManager.swift +1 -0
- package/lib/BigCrunchAds.d.ts +33 -2
- package/lib/BigCrunchAds.d.ts.map +1 -1
- package/lib/BigCrunchAds.js +35 -2
- package/lib/NativeBigCrunchAds.d.ts +3 -2
- package/lib/NativeBigCrunchAds.d.ts.map +1 -1
- package/lib/types/index.d.ts +40 -0
- package/lib/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/react-native-bigcrunch-ads.podspec +1 -1
- package/src/BigCrunchAds.ts +41 -2
- package/src/NativeBigCrunchAds.ts +5 -2
- package/src/types/index.ts +43 -0
package/src/types/index.ts
CHANGED
|
@@ -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
|
*/
|