@arkadiuminc/sdk 2.10.0 → 2.11.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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare class DisplayAd {
|
|
2
|
-
static
|
|
2
|
+
static domain: string;
|
|
3
|
+
static getInstance(domain?: string): DisplayAd;
|
|
3
4
|
protected _scriptLoaded: Promise<void>;
|
|
4
5
|
private ads;
|
|
5
|
-
constructor();
|
|
6
|
+
constructor(domain: string);
|
|
6
7
|
removeAllAds(): void;
|
|
7
8
|
show(containerId: string, dimensions: number[][]): void;
|
|
8
9
|
}
|
|
@@ -13,7 +13,7 @@ export interface GameAdsContract {
|
|
|
13
13
|
}): Promise<{
|
|
14
14
|
value: number;
|
|
15
15
|
}>;
|
|
16
|
-
showBannerAd(adId: string, dimensions: AdTypes[]): any;
|
|
16
|
+
showBannerAd?(adId: string, dimensions: AdTypes[]): any;
|
|
17
17
|
}
|
|
18
18
|
export declare enum AdTypes {
|
|
19
19
|
AD_300x250 = "AD_300x250",
|
|
@@ -32,7 +32,10 @@ export declare class GameAds implements GameAdsContract {
|
|
|
32
32
|
private interstitial;
|
|
33
33
|
private rewarded;
|
|
34
34
|
private preroll;
|
|
35
|
+
private banner;
|
|
35
36
|
constructor(rpcProvider: RpcProvider, auth: Auth);
|
|
37
|
+
setVideoAdsDomain(domain: string): void;
|
|
38
|
+
setDisplayAdsDomain(domain: string): void;
|
|
36
39
|
showPrerollAd({ duration }: {
|
|
37
40
|
duration?: number;
|
|
38
41
|
}): Promise<void>;
|
|
@@ -44,7 +47,6 @@ export declare class GameAds implements GameAdsContract {
|
|
|
44
47
|
}): Promise<{
|
|
45
48
|
value: number;
|
|
46
49
|
}>;
|
|
47
|
-
showBannerAd(): void;
|
|
48
50
|
}
|
|
49
51
|
export declare class GameAdsProxy implements GameAdsContract {
|
|
50
52
|
bannerSizes: typeof AdTypes;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ApiEnv } from "../backend/backend.api";
|
|
2
2
|
export declare class VideoAd {
|
|
3
|
-
static
|
|
3
|
+
static domain: string;
|
|
4
|
+
static getInstance(domain?: string): VideoAd;
|
|
4
5
|
protected _scriptLoaded: Promise<void>;
|
|
5
6
|
protected timer: any;
|
|
6
|
-
constructor();
|
|
7
|
+
constructor(domain: string);
|
|
7
8
|
preroll({ duration, env }: {
|
|
8
9
|
duration?: number | undefined;
|
|
9
10
|
env?: ApiEnv | undefined;
|