コード例 #1
0
		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);
			
		}
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
		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);
			
		}