@jolibox/ads 1.1.29-beta.1 → 1.1.30

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.
@@ -4,6 +4,7 @@ import type { IAdsContext } from '../type/base';
4
4
  export declare class AdBreakAsyncProxy {
5
5
  private context;
6
6
  private continueCallback?;
7
+ private adIsShowingCallback?;
7
8
  private isBeforeAdCalled;
8
9
  private isBeforeRewardCalled;
9
10
  private isAdDismissedCalled;
@@ -32,5 +33,5 @@ export declare class AdBreakAsyncProxy {
32
33
  * @param clientParams Configuration for the ad break
33
34
  * @returns Promise resolving with continuation flag and last placement info
34
35
  */
35
- callAdBreakAndContinue<T extends IAFGAdBreakServerParams>(adsProvider: IAbstractAFGProvider, clientParams: IAdBreakParams, serverParam: T): Promise<[boolean, IPlacementInfo]>;
36
+ callAdBreakAndContinue<T extends IAFGAdBreakServerParams>(adsProvider: IAbstractAFGProvider, clientParams: IAdBreakParams, serverParam: T, onAdIsShowing?: (isShowing: boolean) => void): Promise<[boolean, IPlacementInfo]>;
36
37
  }
@@ -1,14 +1,14 @@
1
1
  export interface IGoogleAdSenseInitServerParams {
2
- provider: 'ADSENSE';
2
+ provider: 'ADSENSE' | 'ADSENSE_ADMOB';
3
3
  params: {
4
- type: 'ADSENSE' | 'ADMOB';
5
4
  clientId: string;
6
5
  channelId: string;
7
6
  unitId: string;
8
7
  admobInterstitialSlot?: string;
9
8
  admobRewardedSlot?: string;
9
+ admobOnly?: boolean;
10
10
  };
11
11
  }
12
12
  export interface IGoogleAdSenseAdBreakServerParams {
13
- provider: 'ADSENSE';
13
+ provider: 'ADSENSE' | 'ADSENSE_ADMOB';
14
14
  }
@@ -3,7 +3,7 @@ export interface IAppsRocketsInitServerParams {
3
3
  params: Record<string, unknown>;
4
4
  }
5
5
  export interface IAppsRocketsAdBreakServerParams {
6
- provider: 'ADSENSE';
6
+ provider: 'APPSROCKETS';
7
7
  params: {
8
8
  url: string;
9
9
  };
@@ -11,6 +11,8 @@ export declare class JoliboxAdsForGame {
11
11
  private adsActionDetection;
12
12
  private adsTrackSerializer;
13
13
  private initialized;
14
+ private adsIsShowing;
15
+ private lastAdBreak?;
14
16
  private initializedTimeStamp;
15
17
  constructor(context?: IAdsContext<'GAME'>);
16
18
  private getRequestContextData;
@@ -7,6 +7,7 @@ export type IAFGInitServerParams = IGoogleAdSenseInitServerParams | IOKSpinInitS
7
7
  export type IAFGAdBreakServerParams = IGoogleAdSenseAdBreakServerParams | IOKSpinAdBreakServerParams | IAppsRocketsAdBreakServerParams;
8
8
  export interface IAFGProviders {
9
9
  ADSENSE?: GoogleAdSenseProvider;
10
+ ADSENSE_ADMOB?: GoogleAdSenseProvider;
10
11
  OKSPIN?: OKSpinForGameProvider;
11
12
  APPSROCKETS?: AppsRocketsForGameProvider;
12
13
  }