// Copyright (C) 2015 Google, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. using System; using GoogleMobileAds.Api; namespace GoogleMobileAds.Common { public interface IRewardBasedVideoAdClient { // Ad event fired when the reward based video ad has been received. event EventHandler OnAdLoaded; // Ad event fired when the reward based video ad has failed to load. event EventHandler OnAdFailedToLoad; // Ad event fired when the reward based video ad is opened. event EventHandler OnAdOpening; // Ad event fired when the reward based video ad has started playing. event EventHandler OnAdStarted; // Ad event fired when the reward based video ad has rewarded the user. event EventHandler OnAdRewarded; // Ad event fired when the reward based video ad is closed. event EventHandler OnAdClosed; // Ad event fired when the reward based video ad is leaving the application. event EventHandler OnAdLeavingApplication; // Ad event fired when the reward based video ad completes playing. event EventHandler OnAdCompleted; // Creates a reward based video ad and adds it to the view hierarchy. void CreateRewardBasedVideoAd(); // Requests a new ad for the reward based video ad. void LoadAd(AdRequest request, string adUnitId); // Determines whether the reward based video has loaded. bool IsLoaded(); // Returns the mediation adapter class name. string MediationAdapterClassName(); // Shows the reward based video ad on the screen. void ShowRewardBasedVideoAd(); // Sets the user id of current user. void SetUserId(string userId); } }