@smoud/playable-sdk 1.2.0 → 1.2.1
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/README.md +4 -0
- package/defines.d.ts +7 -1
- package/dist/esm/index.js +5 -1
- package/dist/iife/index.js +5 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,9 @@ It's powerful, unified SDK that seamlessly integrates multiple ad network SDKs,
|
|
|
46
46
|
- Remerge
|
|
47
47
|
- Tencent
|
|
48
48
|
- YouAppi
|
|
49
|
+
- DT Exchange
|
|
49
50
|
- Aarki
|
|
51
|
+
- Bidease
|
|
50
52
|
|
|
51
53
|
### Protocol Support
|
|
52
54
|
|
|
@@ -177,7 +179,9 @@ Supported **Ad Networks**:
|
|
|
177
179
|
- `remerge`
|
|
178
180
|
- `tencent`
|
|
179
181
|
- `youappi`
|
|
182
|
+
- `digitalturbine`
|
|
180
183
|
- `aarki`
|
|
184
|
+
- `bidease`
|
|
181
185
|
|
|
182
186
|
See more details in [`GitHub repository.`](https://github.com/smoudjs/playable-scripts?tab=readme-ov-file#installation)
|
|
183
187
|
|
package/defines.d.ts
CHANGED
|
@@ -71,7 +71,9 @@ declare const AD_NETWORK:
|
|
|
71
71
|
| 'remerge'
|
|
72
72
|
| 'tencent'
|
|
73
73
|
| 'youappi'
|
|
74
|
-
| '
|
|
74
|
+
| 'digitalturbine'
|
|
75
|
+
| 'aarki'
|
|
76
|
+
| 'bidease';
|
|
75
77
|
|
|
76
78
|
declare const AD_PROTOCOL: 'mraid' | 'dapi' | 'nucleo' | 'none';
|
|
77
79
|
declare const GOOGLE_PLAY_URL: string;
|
|
@@ -104,6 +106,10 @@ interface Window {
|
|
|
104
106
|
clickOpen?: Function;
|
|
105
107
|
};
|
|
106
108
|
|
|
109
|
+
// Bidease functions
|
|
110
|
+
initGame?: Function;
|
|
111
|
+
trackClick?: Function;
|
|
112
|
+
|
|
107
113
|
BIGABID_BIDTIMEMACROS?: Record<string, string>
|
|
108
114
|
INMOBI_DSPMACROS?: Record<string, string>
|
|
109
115
|
REMERGE_BIDTIMEMACROS?: Record<string, string>
|
package/dist/esm/index.js
CHANGED
|
@@ -505,6 +505,8 @@ var _sdk = class _sdk {
|
|
|
505
505
|
orientation: this.isLandscape ? "landscape" : "portrait",
|
|
506
506
|
buildID: BUILD_HASH
|
|
507
507
|
});
|
|
508
|
+
} else if ("bidease" === AD_NETWORK && window.initGame) {
|
|
509
|
+
window.initGame();
|
|
508
510
|
}
|
|
509
511
|
fireVolumeChange(_sdk.volume);
|
|
510
512
|
_sdk.resize();
|
|
@@ -578,6 +580,8 @@ var _sdk = class _sdk {
|
|
|
578
580
|
emitEvent("install");
|
|
579
581
|
if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
|
|
580
582
|
window.TencentGDT.clickOpen();
|
|
583
|
+
} else if ("bidease" === AD_NETWORK && window.trackClick) {
|
|
584
|
+
window.trackClick();
|
|
581
585
|
} else if ("mraid" === AD_PROTOCOL && isMraid()) {
|
|
582
586
|
mraid.open(destinationUrl);
|
|
583
587
|
} else if ("dapi" === AD_PROTOCOL && isDapi()) {
|
|
@@ -706,7 +710,7 @@ var _sdk = class _sdk {
|
|
|
706
710
|
}
|
|
707
711
|
};
|
|
708
712
|
/** Current version of the SDK */
|
|
709
|
-
_sdk.version = "1.2.
|
|
713
|
+
_sdk.version = "1.2.1";
|
|
710
714
|
/** Current maximum width of the playable ad container in pixels */
|
|
711
715
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
712
716
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/iife/index.js
CHANGED
|
@@ -507,6 +507,8 @@
|
|
|
507
507
|
orientation: this.isLandscape ? "landscape" : "portrait",
|
|
508
508
|
buildID: BUILD_HASH
|
|
509
509
|
});
|
|
510
|
+
} else if ("bidease" === AD_NETWORK && window.initGame) {
|
|
511
|
+
window.initGame();
|
|
510
512
|
}
|
|
511
513
|
fireVolumeChange(_sdk.volume);
|
|
512
514
|
_sdk.resize();
|
|
@@ -580,6 +582,8 @@
|
|
|
580
582
|
emitEvent("install");
|
|
581
583
|
if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
|
|
582
584
|
window.TencentGDT.clickOpen();
|
|
585
|
+
} else if ("bidease" === AD_NETWORK && window.trackClick) {
|
|
586
|
+
window.trackClick();
|
|
583
587
|
} else if ("mraid" === AD_PROTOCOL && isMraid()) {
|
|
584
588
|
mraid.open(destinationUrl);
|
|
585
589
|
} else if ("dapi" === AD_PROTOCOL && isDapi()) {
|
|
@@ -708,7 +712,7 @@
|
|
|
708
712
|
}
|
|
709
713
|
};
|
|
710
714
|
/** Current version of the SDK */
|
|
711
|
-
_sdk.version = "1.2.
|
|
715
|
+
_sdk.version = "1.2.1";
|
|
712
716
|
/** Current maximum width of the playable ad container in pixels */
|
|
713
717
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
714
718
|
/** Current maximum height of the playable ad container in pixels */
|
package/dist/index.js
CHANGED
|
@@ -532,6 +532,8 @@ var _sdk = class _sdk {
|
|
|
532
532
|
orientation: this.isLandscape ? "landscape" : "portrait",
|
|
533
533
|
buildID: BUILD_HASH
|
|
534
534
|
});
|
|
535
|
+
} else if ("bidease" === AD_NETWORK && window.initGame) {
|
|
536
|
+
window.initGame();
|
|
535
537
|
}
|
|
536
538
|
fireVolumeChange(_sdk.volume);
|
|
537
539
|
_sdk.resize();
|
|
@@ -605,6 +607,8 @@ var _sdk = class _sdk {
|
|
|
605
607
|
emitEvent("install");
|
|
606
608
|
if ("tencent" === AD_NETWORK && window.TencentGDT && window.TencentGDT.clickOpen) {
|
|
607
609
|
window.TencentGDT.clickOpen();
|
|
610
|
+
} else if ("bidease" === AD_NETWORK && window.trackClick) {
|
|
611
|
+
window.trackClick();
|
|
608
612
|
} else if ("mraid" === AD_PROTOCOL && isMraid()) {
|
|
609
613
|
mraid.open(destinationUrl);
|
|
610
614
|
} else if ("dapi" === AD_PROTOCOL && isDapi()) {
|
|
@@ -733,7 +737,7 @@ var _sdk = class _sdk {
|
|
|
733
737
|
}
|
|
734
738
|
};
|
|
735
739
|
/** Current version of the SDK */
|
|
736
|
-
_sdk.version = "1.2.
|
|
740
|
+
_sdk.version = "1.2.1";
|
|
737
741
|
/** Current maximum width of the playable ad container in pixels */
|
|
738
742
|
_sdk.maxWidth = Math.floor(window.innerWidth);
|
|
739
743
|
/** Current maximum height of the playable ad container in pixels */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoud/playable-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "It's unified Playable SDK that supports MRAID, Google, Facebook, Vungle, and many more Ad Networks, simplifying playable ad development with a standardized interface for seamless cross-network compatibility.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|