public IAsyncResult BeginDeleteAdspace(DeleteAdspaceRequest DeleteAdspaceRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("DeleteAdspace", new object[1]
       {
     (object) DeleteAdspaceRequest
       }, callback, asyncState);
 }
 public int DeleteAdspace(sessionType session, int adspaceId)
 {
     DeleteAdspaceRequest DeleteAdspaceRequest = new DeleteAdspaceRequest();
       DateTime utcNow = DateTime.UtcNow;
       DeleteAdspaceRequest.nonce = Signature.GetNonce();
       DeleteAdspaceRequest.connectId = session.connectId;
       DeleteAdspaceRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "deleteadspace", DeleteAdspaceRequest.nonce);
       DeleteAdspaceRequest.timestamp = Signature.GetZDateTime(utcNow);
       DeleteAdspaceRequest.adspaceId = adspaceId;
       DeleteAdspaceResponse deleteAdspaceResponse = this.publisherService.DeleteAdspace(DeleteAdspaceRequest);
       if (deleteAdspaceResponse == null)
     return 0;
       else
     return deleteAdspaceResponse.count;
 }