public Advertisement(IAdEvent adEvent, IAdListener listener) { this.adEvent = adEvent; this.adCallbacks = new AdCallbacks( (error) => listener.OnError(error), () => listener.OnStarted(), () => listener.OnCompleted(), () => listener.OnClosed(), () => listener.OnInterstitialClicked(), (reward, count) => listener.OnRewardPending(reward, count), () => listener.OnRewardedVideoStarted(), () => listener.OnRewardedVideoEnded()); }
public Advertisement(IAdEvent adEvent, AdCallbacks adCallbacks) { this.adEvent = adEvent; this.adCallbacks = adCallbacks; }