// Creates a NativeExpressAd with a custom position. public NativeExpressAdView(string adUnitId, AdSize adSize, int x, int y) { this.client = GoogleMobileAdsClientFactory.BuildNativeExpressAdClient(); this.client.CreateNativeExpressAdView(adUnitId, adSize, x, y); configureNativeExpressAdEvents(); }
// Creates a NativeExpressAd and adds it to the view hierarchy. public NativeExpressAdView(string adUnitId, AdSize adSize, AdPosition position) { this.client = GoogleMobileAdsClientFactory.BuildNativeExpressAdClient(); this.client.CreateNativeExpressAdView(adUnitId, adSize, position); this.client.OnAdLoaded += (sender, args) => this.OnAdLoaded(this, args); this.client.OnAdFailedToLoad += (sender, args) => this.OnAdFailedToLoad(this, args); this.client.OnAdOpening += (sender, args) => this.OnAdOpening(this, args); this.client.OnAdClosed += (sender, args) => this.OnAdClosed(this, args); this.client.OnAdLeavingApplication += (sender, args) => this.OnAdLeavingApplication(this, args); }
// Token: 0x06000281 RID: 641 RVA: 0x0000DFD6 File Offset: 0x0000C3D6 public NativeExpressAdView(string adUnitId, AdSize adSize, AdPosition position) { this.client = GoogleMobileAdsClientFactory.BuildNativeExpressAdClient(); this.client.CreateNativeExpressAdView(adUnitId, adSize, position); this.configureNativeExpressAdEvents(); }