public virtual void RequestInterstitialAd (string serverParameter, string serverLabel, GADCustomEventRequest request) { if (serverParameter == null) throw new ArgumentNullException ("serverParameter"); if (serverLabel == null) throw new ArgumentNullException ("serverLabel"); if (request == null) throw new ArgumentNullException ("request"); var nsserverParameter = NSString.CreateNative (serverParameter); var nsserverLabel = NSString.CreateNative (serverLabel); if (IsDirectBinding) { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selRequestInterstitialAdWithParameterLabelRequest_Handle, nsserverParameter, nsserverLabel, request.Handle); } else { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selRequestInterstitialAdWithParameterLabelRequest_Handle, nsserverParameter, nsserverLabel, request.Handle); } NSString.ReleaseNative (nsserverParameter); NSString.ReleaseNative (nsserverLabel); }
public virtual void RequestInterstitialAd(string serverParameter, string serverLabel, GADCustomEventRequest request) { if (serverParameter == null) { throw new ArgumentNullException("serverParameter"); } if (serverLabel == null) { throw new ArgumentNullException("serverLabel"); } if (request == null) { throw new ArgumentNullException("request"); } var nsserverParameter = NSString.CreateNative(serverParameter); var nsserverLabel = NSString.CreateNative(serverLabel); if (IsDirectBinding) { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr(this.Handle, selRequestInterstitialAdWithParameterLabelRequest_Handle, nsserverParameter, nsserverLabel, request.Handle); } else { MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr(this.SuperHandle, selRequestInterstitialAdWithParameterLabelRequest_Handle, nsserverParameter, nsserverLabel, request.Handle); } NSString.ReleaseNative(nsserverParameter); NSString.ReleaseNative(nsserverLabel); }
public virtual void RequestBannerAd(GADAdSize adSize, string serverParameter, string serverLabel, GADCustomEventRequest request) { if (serverParameter == null) { throw new ArgumentNullException("serverParameter"); } if (serverLabel == null) { throw new ArgumentNullException("serverLabel"); } if (request == null) { throw new ArgumentNullException("request"); } var nsserverParameter = NSString.CreateNative(serverParameter); var nsserverLabel = NSString.CreateNative(serverLabel); if (IsDirectBinding) { ApiDefinition.Messaging.void_objc_msgSend_GADAdSize_IntPtr_IntPtr_IntPtr(this.Handle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } else { ApiDefinition.Messaging.void_objc_msgSendSuper_GADAdSize_IntPtr_IntPtr_IntPtr(this.SuperHandle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } NSString.ReleaseNative(nsserverParameter); NSString.ReleaseNative(nsserverLabel); }
public virtual void RequestBannerAd (GADAdSize adSize, string serverParameter, string serverLabel, GADCustomEventRequest request) { if (serverParameter == null) throw new ArgumentNullException ("serverParameter"); if (serverLabel == null) throw new ArgumentNullException ("serverLabel"); if (request == null) throw new ArgumentNullException ("request"); var nsserverParameter = NSString.CreateNative (serverParameter); var nsserverLabel = NSString.CreateNative (serverLabel); if (IsDirectBinding) { ApiDefinition.Messaging.void_objc_msgSend_GADAdSize_IntPtr_IntPtr_IntPtr (this.Handle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } else { ApiDefinition.Messaging.void_objc_msgSendSuper_GADAdSize_IntPtr_IntPtr_IntPtr (this.SuperHandle, selRequestBannerAdParameterLabelRequest_Handle, adSize, nsserverParameter, nsserverLabel, request.Handle); } NSString.ReleaseNative (nsserverParameter); NSString.ReleaseNative (nsserverLabel); }