Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 693 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 693 Bytes

cordova-plugin-unity-ads

Usage

initialize

UnityAds.initialize(UnityAdsGameId: string, testMode: boolean, debugMode: boolean): Promise

Promise will be resolved on success and rejected on failure.

show ad

UnityAds.show(serverId?: string, videoAdPlacementId?: string): Promise

Promise will be resolved after video has been successfully watched. Promise will be rejected if video has been skiped or other failures.

How to update the SDK

  • Download the SDK version from Unity: Android & iOS
  • Copy the files into the libs folder