@thealteroffice/react-native-adgeist 0.0.31-beta → 0.0.32-beta
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/Adgeist.podspec +1 -1
- package/README.md +2 -41
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/adgeist/components/HTML5AdViewManagerImpl.kt +4 -0
- package/android/src/main/java/com/adgeist/modules/AdgeistImpl.kt +11 -25
- package/android/src/main/java/com/adgeist/utils/CreativeExtensions.kt +0 -46
- package/android/src/newarch/java/com/Adgeist.kt +17 -63
- package/android/src/oldarch/java/com/Adgeist.kt +17 -64
- package/ios/Adgeist.mm +0 -4
- package/ios/AdgeistImpl.swift +17 -68
- package/lib/module/constants.js +3 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/index.js +0 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/AdgeistProvider.js +3 -3
- package/lib/module/providers/AdgeistProvider.js.map +1 -1
- package/lib/module/specs/NativeAdgeist.js.map +1 -1
- package/lib/typescript/src/constants.d.ts +3 -1
- package/lib/typescript/src/constants.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/providers/AdgeistProvider.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeAdgeist.d.ts +0 -1
- package/lib/typescript/src/specs/NativeAdgeist.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/constants.ts +4 -1
- package/src/index.tsx +0 -4
- package/src/providers/AdgeistProvider.tsx +8 -3
- package/src/specs/NativeAdgeist.ts +0 -2
- package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAdgeistSpec.java +0 -88
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerDelegate.java +0 -55
- package/android/app/build/generated/source/codegen/java/com/facebook/react/viewmanagers/HTML5AdNativeComponentManagerInterface.java +0 -24
- package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -36
- package/android/app/build/generated/source/codegen/jni/RNAdgeistSpec-generated.cpp +0 -104
- package/android/app/build/generated/source/codegen/jni/RNAdgeistSpec.h +0 -31
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/ComponentDescriptors.cpp +0 -22
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/ComponentDescriptors.h +0 -24
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/EventEmitters.cpp +0 -60
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/EventEmitters.h +0 -49
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.cpp +0 -28
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/Props.h +0 -69
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI-generated.cpp +0 -150
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/RNAdgeistSpecJSI.h +0 -179
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/ShadowNodes.cpp +0 -17
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/ShadowNodes.h +0 -32
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/States.cpp +0 -16
- package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNAdgeistSpec/States.h +0 -29
- package/android/libs/adgeistkit-beta-release.aar +0 -0
- package/lib/module/components/deprecated/BannerAdView.js +0 -375
- package/lib/module/components/deprecated/BannerAdView.js.map +0 -1
- package/lib/module/types/CPMAdResponse.js +0 -2
- package/lib/module/types/CPMAdResponse.js.map +0 -1
- package/lib/module/utmtracker/index.js +0 -25
- package/lib/module/utmtracker/index.js.map +0 -1
- package/lib/typescript/src/components/deprecated/BannerAdView.d.ts +0 -17
- package/lib/typescript/src/components/deprecated/BannerAdView.d.ts.map +0 -1
- package/lib/typescript/src/types/CPMAdResponse.d.ts +0 -29
- package/lib/typescript/src/types/CPMAdResponse.d.ts.map +0 -1
- package/lib/typescript/src/utmtracker/index.d.ts +0 -6
- package/lib/typescript/src/utmtracker/index.d.ts.map +0 -1
- package/src/components/deprecated/BannerAdView.tsx +0 -527
- package/src/types/CPMAdResponse.ts +0 -31
- package/src/utmtracker/index.ts +0 -26
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React, { useCallback, useEffect, useState, useRef } from 'react';
|
|
4
|
-
import { Image, Linking, StyleSheet, Text, View, TouchableWithoutFeedback, ActivityIndicator, Dimensions } from 'react-native';
|
|
5
|
-
import Video from 'react-native-video';
|
|
6
|
-
import Adgeist from "../../specs/NativeAdgeist.js";
|
|
7
|
-
import { useAdgeistContext } from "../../providers/AdgeistProvider.js";
|
|
8
|
-
import { normalizeUrl } from "../../utilities.js";
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
export const BannerAd = ({
|
|
11
|
-
dataAdSlot,
|
|
12
|
-
dataSlotType = 'banner',
|
|
13
|
-
dataBuyType = 'FIXED',
|
|
14
|
-
width = 0,
|
|
15
|
-
height = 0,
|
|
16
|
-
isResponsive = false,
|
|
17
|
-
onAdLoadError,
|
|
18
|
-
onAdLoadSuccess
|
|
19
|
-
}) => {
|
|
20
|
-
const [adData, setAdData] = useState(null);
|
|
21
|
-
const [isMuted, setIsMuted] = useState(true);
|
|
22
|
-
const [error, setError] = useState(null);
|
|
23
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
24
|
-
const [hasImpression, setHasImpression] = useState(false);
|
|
25
|
-
const [hasView, setHasView] = useState(false);
|
|
26
|
-
const [isPaused, setIsPaused] = useState(true);
|
|
27
|
-
const [isManuallyControlled, setIsManuallyControlled] = useState(false);
|
|
28
|
-
const renderStartTime = useRef(Date.now());
|
|
29
|
-
const adRef = useRef(null);
|
|
30
|
-
const visibilityStartTime = useRef(null);
|
|
31
|
-
const timeToVisible = useRef(null);
|
|
32
|
-
const viewTime = useRef(0);
|
|
33
|
-
const lastCheckTime = useRef(Date.now());
|
|
34
|
-
const currentVisibilityRatio = useRef(0);
|
|
35
|
-
const videoRef = useRef(null);
|
|
36
|
-
const {
|
|
37
|
-
isInitialized,
|
|
38
|
-
isTestEnvironment
|
|
39
|
-
} = useAdgeistContext();
|
|
40
|
-
let creativeBrandName;
|
|
41
|
-
let creativeUrl;
|
|
42
|
-
let creativeTitle;
|
|
43
|
-
let creativeDescription;
|
|
44
|
-
let ctaUrl;
|
|
45
|
-
let bidMeta = '';
|
|
46
|
-
let bidId;
|
|
47
|
-
let campaignId;
|
|
48
|
-
let adSpaceId = dataAdSlot;
|
|
49
|
-
if (dataBuyType === 'FIXED') {
|
|
50
|
-
creativeTitle = adData?.creatives?.[0]?.title;
|
|
51
|
-
creativeDescription = adData?.creatives?.[0]?.description;
|
|
52
|
-
creativeBrandName = adData?.advertiser?.name;
|
|
53
|
-
creativeUrl = adData?.creatives?.[0]?.fileUrl;
|
|
54
|
-
ctaUrl = adData?.creatives?.[0]?.ctaUrl;
|
|
55
|
-
bidMeta = adData?.metaData;
|
|
56
|
-
bidId = adData?.id;
|
|
57
|
-
campaignId = adData?.campaignId;
|
|
58
|
-
} else {
|
|
59
|
-
let cpmData = adData?.data;
|
|
60
|
-
let creativeData = cpmData?.seatBid?.[0]?.bid?.[0]?.ext;
|
|
61
|
-
creativeTitle = creativeData?.creativeTitle;
|
|
62
|
-
creativeDescription = creativeData?.creativeDescription;
|
|
63
|
-
creativeBrandName = undefined; // Not available in CPM response
|
|
64
|
-
creativeUrl = creativeData?.creativeUrl;
|
|
65
|
-
ctaUrl = creativeData?.ctaUrl;
|
|
66
|
-
bidId = cpmData?.id;
|
|
67
|
-
campaignId = cpmData?.seatBid?.[0]?.bid?.[0]?.id;
|
|
68
|
-
}
|
|
69
|
-
const fetchAd = useCallback(async () => {
|
|
70
|
-
if (!isInitialized) return;
|
|
71
|
-
try {
|
|
72
|
-
setIsLoading(true);
|
|
73
|
-
setError(null);
|
|
74
|
-
setHasImpression(false);
|
|
75
|
-
setHasView(false);
|
|
76
|
-
const response = await Adgeist.fetchCreative(dataAdSlot, dataBuyType, isTestEnvironment);
|
|
77
|
-
const creative = response;
|
|
78
|
-
setAdData(creative.data);
|
|
79
|
-
onAdLoadSuccess?.(creative.data);
|
|
80
|
-
} catch (err) {
|
|
81
|
-
const error = err instanceof Error ? err : new Error('Ad load failed');
|
|
82
|
-
setError(error);
|
|
83
|
-
setHasImpression(false);
|
|
84
|
-
setHasView(false);
|
|
85
|
-
onAdLoadError?.(error);
|
|
86
|
-
} finally {
|
|
87
|
-
setIsLoading(false);
|
|
88
|
-
}
|
|
89
|
-
}, [isInitialized, dataBuyType, dataAdSlot, isTestEnvironment, onAdLoadError, onAdLoadSuccess]);
|
|
90
|
-
const trackImpressionOnMediaLoad = useCallback(async () => {
|
|
91
|
-
if (hasImpression || !bidId || !campaignId) return;
|
|
92
|
-
try {
|
|
93
|
-
const renderTime = Date.now() - renderStartTime.current;
|
|
94
|
-
await Adgeist.trackImpression(campaignId, adSpaceId, bidId, bidMeta, dataBuyType, isTestEnvironment, renderTime);
|
|
95
|
-
setHasImpression(true);
|
|
96
|
-
} catch (err) {
|
|
97
|
-
console.error('Failed to track impression:', err);
|
|
98
|
-
}
|
|
99
|
-
}, [hasImpression, bidId, campaignId, adSpaceId, dataBuyType, bidMeta, isTestEnvironment]);
|
|
100
|
-
const trackView = useCallback(async () => {
|
|
101
|
-
if (hasView || !hasImpression || !bidId || !campaignId) return;
|
|
102
|
-
try {
|
|
103
|
-
const currentViewTime = viewTime.current;
|
|
104
|
-
const currentTimeToVisible = timeToVisible.current || 0;
|
|
105
|
-
const visibility = currentVisibilityRatio.current;
|
|
106
|
-
if (currentViewTime >= (dataSlotType === 'video' ? 2000 : 1000) && visibility >= 0.5 && timeToVisible.current !== null) {
|
|
107
|
-
await Adgeist.trackView(campaignId, adSpaceId, bidId, bidMeta, dataBuyType, isTestEnvironment, currentViewTime, visibility, 0, currentTimeToVisible);
|
|
108
|
-
setHasView(true);
|
|
109
|
-
}
|
|
110
|
-
} catch (err) {
|
|
111
|
-
console.error('Failed to track view:', err);
|
|
112
|
-
}
|
|
113
|
-
}, [hasView, hasImpression, bidId, campaignId, adSpaceId, dataBuyType, bidMeta, isTestEnvironment, dataSlotType]);
|
|
114
|
-
const togglePlayPause = useCallback(() => {
|
|
115
|
-
setIsManuallyControlled(true);
|
|
116
|
-
setIsPaused(prev => !prev);
|
|
117
|
-
}, []);
|
|
118
|
-
const checkVisibility = useCallback(() => {
|
|
119
|
-
if (!adRef.current || !hasImpression) return;
|
|
120
|
-
adRef.current.measure((_x, _y, _width, height, _pageX, pageY) => {
|
|
121
|
-
const window = Dimensions.get('window');
|
|
122
|
-
const windowHeight = window.height;
|
|
123
|
-
const adTop = pageY;
|
|
124
|
-
const adBottom = pageY + height;
|
|
125
|
-
const windowTop = 0;
|
|
126
|
-
const windowBottom = windowHeight;
|
|
127
|
-
const visibleTop = Math.max(adTop, windowTop);
|
|
128
|
-
const visibleBottom = Math.min(adBottom, windowBottom);
|
|
129
|
-
const visibleHeight = Math.max(0, visibleBottom - visibleTop);
|
|
130
|
-
const visibilityRatio = height > 0 ? visibleHeight / height : 0;
|
|
131
|
-
currentVisibilityRatio.current = visibilityRatio;
|
|
132
|
-
const currentTime = Date.now();
|
|
133
|
-
const deltaTime = currentTime - lastCheckTime.current;
|
|
134
|
-
lastCheckTime.current = currentTime;
|
|
135
|
-
if (visibilityRatio >= 0.5 && timeToVisible.current === null) {
|
|
136
|
-
timeToVisible.current = currentTime - renderStartTime.current;
|
|
137
|
-
}
|
|
138
|
-
if (visibilityRatio >= 0.5) {
|
|
139
|
-
viewTime.current += deltaTime;
|
|
140
|
-
if (!visibilityStartTime.current) {
|
|
141
|
-
visibilityStartTime.current = currentTime;
|
|
142
|
-
}
|
|
143
|
-
if (dataSlotType === 'video' && isPaused && !isManuallyControlled) {
|
|
144
|
-
setIsPaused(false);
|
|
145
|
-
}
|
|
146
|
-
} else {
|
|
147
|
-
visibilityStartTime.current = null;
|
|
148
|
-
if (dataSlotType === 'video' && !isPaused) {
|
|
149
|
-
setIsPaused(true);
|
|
150
|
-
setIsManuallyControlled(false);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
if (!hasView && viewTime.current >= (dataSlotType === 'video' ? 2000 : 1000) && visibilityRatio >= 0.5) {
|
|
154
|
-
trackView();
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}, [hasImpression, trackView, dataSlotType, isPaused, hasView, isManuallyControlled]);
|
|
158
|
-
const handleClick = useCallback(async () => {
|
|
159
|
-
if (!adData || dataBuyType == 'CPM' && !adData.data?.seatBid?.length || !bidId || !campaignId) return;
|
|
160
|
-
try {
|
|
161
|
-
Adgeist.trackClick(campaignId, adSpaceId, bidId, bidMeta, dataBuyType, isTestEnvironment);
|
|
162
|
-
await Linking.openURL(normalizeUrl(ctaUrl));
|
|
163
|
-
} catch (err) {
|
|
164
|
-
console.error('Failed to handle ad click:', err);
|
|
165
|
-
}
|
|
166
|
-
}, [adData, bidId, campaignId, adSpaceId, bidMeta, dataBuyType, isTestEnvironment, ctaUrl]);
|
|
167
|
-
useEffect(() => {
|
|
168
|
-
renderStartTime.current = Date.now();
|
|
169
|
-
lastCheckTime.current = Date.now();
|
|
170
|
-
fetchAd();
|
|
171
|
-
}, [fetchAd]);
|
|
172
|
-
useEffect(() => {
|
|
173
|
-
if (!hasImpression) return;
|
|
174
|
-
if (dataSlotType === 'banner' && hasView) return;
|
|
175
|
-
const intervalId = setInterval(checkVisibility, 200);
|
|
176
|
-
return () => {
|
|
177
|
-
clearInterval(intervalId);
|
|
178
|
-
};
|
|
179
|
-
}, [hasImpression, checkVisibility, dataSlotType, hasView]);
|
|
180
|
-
if (isLoading) {
|
|
181
|
-
return /*#__PURE__*/_jsx(View, {
|
|
182
|
-
style: [styles.loadingOverlayContainer, !isResponsive && {
|
|
183
|
-
width: width,
|
|
184
|
-
height: height
|
|
185
|
-
}],
|
|
186
|
-
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
187
|
-
size: "large",
|
|
188
|
-
color: "#63AA75"
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
if (creativeUrl || error) return null;
|
|
193
|
-
return /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
194
|
-
accessible: true,
|
|
195
|
-
accessibilityLabel: "Ad Banner",
|
|
196
|
-
style: {
|
|
197
|
-
width: '100%',
|
|
198
|
-
height: '100%'
|
|
199
|
-
},
|
|
200
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
201
|
-
ref: adRef,
|
|
202
|
-
style: [styles.adContainer, !isResponsive && {
|
|
203
|
-
width: width,
|
|
204
|
-
height: height
|
|
205
|
-
}],
|
|
206
|
-
children: [dataSlotType === 'banner' ? /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
207
|
-
onPress: handleClick,
|
|
208
|
-
children: /*#__PURE__*/_jsx(Image, {
|
|
209
|
-
style: styles.creative,
|
|
210
|
-
source: {
|
|
211
|
-
uri: creativeUrl
|
|
212
|
-
},
|
|
213
|
-
accessibilityLabel: "Ad Creative",
|
|
214
|
-
resizeMode: "contain",
|
|
215
|
-
onLoad: trackImpressionOnMediaLoad,
|
|
216
|
-
onError: e => {
|
|
217
|
-
console.error('Image load error:', e.nativeEvent.error);
|
|
218
|
-
setError(new Error('Failed to load ad image'));
|
|
219
|
-
}
|
|
220
|
-
})
|
|
221
|
-
}) : /*#__PURE__*/_jsxs(View, {
|
|
222
|
-
style: styles.videoCreative,
|
|
223
|
-
children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
224
|
-
onPress: handleClick,
|
|
225
|
-
children: /*#__PURE__*/_jsx(Video, {
|
|
226
|
-
ref: videoRef,
|
|
227
|
-
source: {
|
|
228
|
-
uri: creativeUrl
|
|
229
|
-
},
|
|
230
|
-
resizeMode: "contain",
|
|
231
|
-
style: {
|
|
232
|
-
width: '100%',
|
|
233
|
-
height: '100%'
|
|
234
|
-
},
|
|
235
|
-
repeat: true,
|
|
236
|
-
muted: isMuted,
|
|
237
|
-
paused: isPaused,
|
|
238
|
-
onLoad: trackImpressionOnMediaLoad,
|
|
239
|
-
onError: () => {
|
|
240
|
-
setError(new Error('Failed to load ad video'));
|
|
241
|
-
}
|
|
242
|
-
})
|
|
243
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
244
|
-
style: styles.videoControls,
|
|
245
|
-
children: [/*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
246
|
-
onPress: togglePlayPause,
|
|
247
|
-
children: /*#__PURE__*/_jsx(Image, {
|
|
248
|
-
style: styles.playPauseIcon,
|
|
249
|
-
source: {
|
|
250
|
-
uri: isPaused ? 'https://d2cfeg6k9cklz9.cloudfront.net/ad-icons/Play.png' : 'https://d2cfeg6k9cklz9.cloudfront.net/ad-icons/Pause.png'
|
|
251
|
-
},
|
|
252
|
-
accessibilityLabel: isPaused ? 'Paused video' : 'Playing video'
|
|
253
|
-
})
|
|
254
|
-
}), /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
255
|
-
onPress: () => setIsMuted(!isMuted),
|
|
256
|
-
children: /*#__PURE__*/_jsx(Image, {
|
|
257
|
-
style: styles.soundIcon,
|
|
258
|
-
source: {
|
|
259
|
-
uri: isMuted ? 'https://d2cfeg6k9cklz9.cloudfront.net/ad-icons/Muted.png' : 'https://d2cfeg6k9cklz9.cloudfront.net/ad-icons/Unmuted.png'
|
|
260
|
-
},
|
|
261
|
-
accessibilityLabel: isMuted ? 'Unmute video' : 'Mute video'
|
|
262
|
-
})
|
|
263
|
-
})]
|
|
264
|
-
})]
|
|
265
|
-
}), /*#__PURE__*/_jsxs(View, {
|
|
266
|
-
style: styles.adContent,
|
|
267
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
268
|
-
style: styles.contentContainer,
|
|
269
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
270
|
-
style: styles.title,
|
|
271
|
-
numberOfLines: 1,
|
|
272
|
-
ellipsizeMode: "tail",
|
|
273
|
-
children: creativeTitle
|
|
274
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
275
|
-
style: styles.description,
|
|
276
|
-
numberOfLines: 1,
|
|
277
|
-
ellipsizeMode: "tail",
|
|
278
|
-
children: creativeDescription
|
|
279
|
-
}), creativeBrandName && /*#__PURE__*/_jsx(Text, {
|
|
280
|
-
style: styles.brandName,
|
|
281
|
-
numberOfLines: 1,
|
|
282
|
-
ellipsizeMode: "tail",
|
|
283
|
-
children: creativeBrandName || 'The Brand Name'
|
|
284
|
-
})]
|
|
285
|
-
}), /*#__PURE__*/_jsx(TouchableWithoutFeedback, {
|
|
286
|
-
onPress: handleClick,
|
|
287
|
-
children: /*#__PURE__*/_jsx(Image, {
|
|
288
|
-
style: styles.linkButton,
|
|
289
|
-
source: {
|
|
290
|
-
uri: 'https://d2cfeg6k9cklz9.cloudfront.net/ad-icons/Button.png'
|
|
291
|
-
},
|
|
292
|
-
accessibilityLabel: "Visit Advertiser Site"
|
|
293
|
-
})
|
|
294
|
-
})]
|
|
295
|
-
})]
|
|
296
|
-
})
|
|
297
|
-
});
|
|
298
|
-
};
|
|
299
|
-
const styles = StyleSheet.create({
|
|
300
|
-
adContainer: {
|
|
301
|
-
backgroundColor: '#FFFFFF',
|
|
302
|
-
borderRadius: 5
|
|
303
|
-
},
|
|
304
|
-
loadingOverlayContainer: {
|
|
305
|
-
alignItems: 'center',
|
|
306
|
-
justifyContent: 'center'
|
|
307
|
-
},
|
|
308
|
-
creative: {
|
|
309
|
-
resizeMode: 'contain',
|
|
310
|
-
borderTopLeftRadius: 5,
|
|
311
|
-
backgroundColor: '#FFFFFF',
|
|
312
|
-
borderTopRightRadius: 5,
|
|
313
|
-
width: '100%',
|
|
314
|
-
height: '70%'
|
|
315
|
-
},
|
|
316
|
-
videoCreative: {
|
|
317
|
-
position: 'relative',
|
|
318
|
-
width: '100%',
|
|
319
|
-
height: '70%'
|
|
320
|
-
},
|
|
321
|
-
videoControls: {},
|
|
322
|
-
playPauseIcon: {
|
|
323
|
-
position: 'absolute',
|
|
324
|
-
bottom: 8,
|
|
325
|
-
left: 10,
|
|
326
|
-
width: 30,
|
|
327
|
-
height: 30
|
|
328
|
-
},
|
|
329
|
-
soundIcon: {
|
|
330
|
-
position: 'absolute',
|
|
331
|
-
bottom: 10,
|
|
332
|
-
right: 10,
|
|
333
|
-
width: 30,
|
|
334
|
-
height: 30
|
|
335
|
-
},
|
|
336
|
-
adContent: {
|
|
337
|
-
width: '100%',
|
|
338
|
-
height: '30%',
|
|
339
|
-
backgroundColor: '#FFFFFF',
|
|
340
|
-
flexDirection: 'row',
|
|
341
|
-
justifyContent: 'space-between',
|
|
342
|
-
paddingVertical: 10,
|
|
343
|
-
paddingRight: 10,
|
|
344
|
-
paddingLeft: 20,
|
|
345
|
-
alignItems: 'center',
|
|
346
|
-
borderBottomLeftRadius: 5,
|
|
347
|
-
borderBottomRightRadius: 5
|
|
348
|
-
},
|
|
349
|
-
contentContainer: {
|
|
350
|
-
flex: 1,
|
|
351
|
-
marginRight: 10
|
|
352
|
-
},
|
|
353
|
-
title: {
|
|
354
|
-
color: '#1A1A1A',
|
|
355
|
-
fontSize: 16,
|
|
356
|
-
fontWeight: '600'
|
|
357
|
-
},
|
|
358
|
-
description: {
|
|
359
|
-
color: '#4A4A4A',
|
|
360
|
-
fontSize: 15,
|
|
361
|
-
marginBottom: 4
|
|
362
|
-
},
|
|
363
|
-
brandName: {
|
|
364
|
-
color: '#6B7280',
|
|
365
|
-
fontSize: 14,
|
|
366
|
-
textTransform: 'capitalize',
|
|
367
|
-
opacity: 0.8
|
|
368
|
-
},
|
|
369
|
-
linkButton: {
|
|
370
|
-
width: 80,
|
|
371
|
-
height: 40,
|
|
372
|
-
objectFit: 'contain'
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
//# sourceMappingURL=BannerAdView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useEffect","useState","useRef","Image","Linking","StyleSheet","Text","View","TouchableWithoutFeedback","ActivityIndicator","Dimensions","Video","Adgeist","useAdgeistContext","normalizeUrl","jsx","_jsx","jsxs","_jsxs","BannerAd","dataAdSlot","dataSlotType","dataBuyType","width","height","isResponsive","onAdLoadError","onAdLoadSuccess","adData","setAdData","isMuted","setIsMuted","error","setError","isLoading","setIsLoading","hasImpression","setHasImpression","hasView","setHasView","isPaused","setIsPaused","isManuallyControlled","setIsManuallyControlled","renderStartTime","Date","now","adRef","visibilityStartTime","timeToVisible","viewTime","lastCheckTime","currentVisibilityRatio","videoRef","isInitialized","isTestEnvironment","creativeBrandName","creativeUrl","creativeTitle","creativeDescription","ctaUrl","bidMeta","bidId","campaignId","adSpaceId","creatives","title","description","advertiser","name","fileUrl","metaData","id","cpmData","data","creativeData","seatBid","bid","ext","undefined","fetchAd","response","fetchCreative","creative","err","Error","trackImpressionOnMediaLoad","renderTime","current","trackImpression","console","trackView","currentViewTime","currentTimeToVisible","visibility","togglePlayPause","prev","checkVisibility","measure","_x","_y","_width","_pageX","pageY","window","get","windowHeight","adTop","adBottom","windowTop","windowBottom","visibleTop","Math","max","visibleBottom","min","visibleHeight","visibilityRatio","currentTime","deltaTime","handleClick","length","trackClick","openURL","intervalId","setInterval","clearInterval","style","styles","loadingOverlayContainer","children","size","color","accessible","accessibilityLabel","ref","adContainer","onPress","source","uri","resizeMode","onLoad","onError","e","nativeEvent","videoCreative","repeat","muted","paused","videoControls","playPauseIcon","soundIcon","adContent","contentContainer","numberOfLines","ellipsizeMode","brandName","linkButton","create","backgroundColor","borderRadius","alignItems","justifyContent","borderTopLeftRadius","borderTopRightRadius","position","bottom","left","right","flexDirection","paddingVertical","paddingRight","paddingLeft","borderBottomLeftRadius","borderBottomRightRadius","flex","marginRight","fontSize","fontWeight","marginBottom","textTransform","opacity","objectFit"],"sourceRoot":"../../../../src","sources":["components/deprecated/BannerAdView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,OAAO;AACvE,SACEC,KAAK,EACLC,OAAO,EACPC,UAAU,EACVC,IAAI,EACJC,IAAI,EACJC,wBAAwB,EACxBC,iBAAiB,EACjBC,UAAU,QACL,cAAc;AACrB,OAAOC,KAAK,MAAM,oBAAoB;AACtC,OAAOC,OAAO,MAAM,8BAA2B;AAC/C,SAASC,iBAAiB,QAAQ,oCAAiC;AACnE,SAASC,YAAY,QAAQ,oBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAgB/C,OAAO,MAAMC,QAAiC,GAAGA,CAAC;EAChDC,UAAU;EACVC,YAAY,GAAG,QAAQ;EACvBC,WAAW,GAAG,OAAO;EACrBC,KAAK,GAAG,CAAC;EACTC,MAAM,GAAG,CAAC;EACVC,YAAY,GAAG,KAAK;EACpBC,aAAa;EACbC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG5B,QAAQ,CAClC,IACF,CAAC;EACD,MAAM,CAAC6B,OAAO,EAAEC,UAAU,CAAC,GAAG9B,QAAQ,CAAU,IAAI,CAAC;EACrD,MAAM,CAAC+B,KAAK,EAAEC,QAAQ,CAAC,GAAGhC,QAAQ,CAAe,IAAI,CAAC;EACtD,MAAM,CAACiC,SAAS,EAAEC,YAAY,CAAC,GAAGlC,QAAQ,CAAU,KAAK,CAAC;EAC1D,MAAM,CAACmC,aAAa,EAAEC,gBAAgB,CAAC,GAAGpC,QAAQ,CAAU,KAAK,CAAC;EAClE,MAAM,CAACqC,OAAO,EAAEC,UAAU,CAAC,GAAGtC,QAAQ,CAAU,KAAK,CAAC;EACtD,MAAM,CAACuC,QAAQ,EAAEC,WAAW,CAA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nBC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,EAAE;IACfX,UAAU,EAAE,QAAQ;IACpBY,sBAAsB,EAAE,CAAC;IACzBC,uBAAuB,EAAE;EAC3B,CAAC;EACDrB,gBAAgB,EAAE;IAChBsB,IAAI,EAAE,CAAC;IACPC,WAAW,EAAE;EACf,CAAC;EACD9G,KAAK,EAAE;IACLkE,KAAK,EAAE,SAAS;IAChB6C,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACD/G,WAAW,EAAE;IACXiE,KAAK,EAAE,SAAS;IAChB6C,QAAQ,EAAE,EAAE;IACZE,YAAY,EAAE;EAChB,CAAC;EACDvB,SAAS,EAAE;IACTxB,KAAK,EAAE,SAAS;IAChB6C,QAAQ,EAAE,EAAE;IACZG,aAAa,EAAE,YAAY;IAC3BC,OAAO,EAAE;EACX,CAAC;EACDxB,UAAU,EAAE;IACVtI,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACV8J,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/CPMAdResponse.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import Adgeist from "../specs/NativeAdgeist.js";
|
|
4
|
-
class AdgeistError extends Error {
|
|
5
|
-
constructor(message, code) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.name = 'AdgeistError';
|
|
8
|
-
this.code = code;
|
|
9
|
-
Object.setPrototypeOf(this, AdgeistError.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @param uri - string
|
|
15
|
-
* @throws AdgeistError if the operation fails
|
|
16
|
-
*/
|
|
17
|
-
export const trackConversionsWithDeepLinks = uri => {
|
|
18
|
-
try {
|
|
19
|
-
Adgeist.trackDeeplinkUtm(uri);
|
|
20
|
-
} catch (error) {
|
|
21
|
-
const err = error instanceof Error ? error : new Error('Failed to set user details');
|
|
22
|
-
throw new AdgeistError(err.message);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Adgeist","AdgeistError","Error","constructor","message","code","name","Object","setPrototypeOf","prototype","trackConversionsWithDeepLinks","uri","trackDeeplinkUtm","error","err"],"sourceRoot":"../../../src","sources":["utmtracker/index.ts"],"mappings":";;AAAA,OAAOA,OAAO,MAAM,2BAAwB;AAE5C,MAAMC,YAAY,SAASC,KAAK,CAAC;EAG/BC,WAAWA,CAACC,OAAe,EAAEC,IAAa,EAAE;IAC1C,KAAK,CAACD,OAAO,CAAC;IACd,IAAI,CAACE,IAAI,GAAG,cAAc;IAC1B,IAAI,CAACD,IAAI,GAAGA,IAAI;IAChBE,MAAM,CAACC,cAAc,CAAC,IAAI,EAAEP,YAAY,CAACQ,SAAS,CAAC;EACrD;AACF;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMC,6BAA6B,GAAIC,GAAW,IAAW;EAClE,IAAI;IACFX,OAAO,CAACY,gBAAgB,CAACD,GAAG,CAAC;EAC/B,CAAC,CAAC,OAAOE,KAAc,EAAE;IACvB,MAAMC,GAAG,GACPD,KAAK,YAAYX,KAAK,GAAGW,KAAK,GAAG,IAAIX,KAAK,CAAC,4BAA4B,CAAC;IAC1E,MAAM,IAAID,YAAY,CAACa,GAAG,CAACV,OAAO,CAAC;EACrC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FIXEDADRESPONSE } from '../../types/FixedAdResponse';
|
|
3
|
-
import type { CPMADRESPONSE } from '../../types/CPMAdResponse';
|
|
4
|
-
interface AdBannerProps {
|
|
5
|
-
dataAdSlot: string;
|
|
6
|
-
dataSlotType?: 'banner' | 'video';
|
|
7
|
-
dataBuyType?: 'FIXED' | 'CPM';
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
isResponsive?: boolean;
|
|
11
|
-
responsiveType?: 'SQUARE' | 'VERTICAL' | 'WIDE';
|
|
12
|
-
onAdLoadError?: (error: Error) => void;
|
|
13
|
-
onAdLoadSuccess?: (adData: FIXEDADRESPONSE | CPMADRESPONSE) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const BannerAd: React.FC<AdBannerProps>;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=BannerAdView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BannerAdView.d.ts","sourceRoot":"","sources":["../../../../../src/components/deprecated/BannerAdView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAexE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,UAAU,aAAa;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAChD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,GAAG,aAAa,KAAK,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAma5C,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export interface CPMADRESPONSE {
|
|
2
|
-
success: boolean;
|
|
3
|
-
message: string;
|
|
4
|
-
data?: BidResponseData;
|
|
5
|
-
}
|
|
6
|
-
interface BidResponseData {
|
|
7
|
-
id: string;
|
|
8
|
-
seatBid: SeatBid[];
|
|
9
|
-
bidId: string;
|
|
10
|
-
cur: string;
|
|
11
|
-
}
|
|
12
|
-
interface SeatBid {
|
|
13
|
-
bidId: string;
|
|
14
|
-
bid: Bid[];
|
|
15
|
-
}
|
|
16
|
-
interface Bid {
|
|
17
|
-
id: string;
|
|
18
|
-
impId: string;
|
|
19
|
-
price: number;
|
|
20
|
-
ext: BidExtension;
|
|
21
|
-
}
|
|
22
|
-
interface BidExtension {
|
|
23
|
-
creativeUrl: string;
|
|
24
|
-
ctaUrl: string;
|
|
25
|
-
creativeTitle: string;
|
|
26
|
-
creativeDescription: string;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=CPMAdResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CPMAdResponse.d.ts","sourceRoot":"","sources":["../../../../src/types/CPMAdResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,GAAG,EAAE,CAAC;CACZ;AAED,UAAU,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,YAAY,CAAC;CACnB;AAED,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utmtracker/index.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GAAI,KAAK,MAAM,KAAG,IAQ3D,CAAC"}
|