Exemplo n.º 1
0
 public virtual void ReadFrom(XElement xE)
 {
     Selector = null;
     foreach (var xItem in xE.Elements())
     {
         var localName = xItem.Name.LocalName;
         if (localName == "selector")
         {
             Selector = new PendingInvitationSelector();
             Selector.ReadFrom(xItem);
         }
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns the pending invitations for the customer IDs in the selector.
        /// @param selector the manager customer ids (inviters) or the client customer ids (invitees)
        /// @throws ApiException when there is at least one error with the request
        /// </summary>
        public async Task <IEnumerable <PendingInvitation> > GetPendingInvitationsAsync(PendingInvitationSelector selector)
        {
            var binding = new ManagedCustomerServiceSoapBinding("https://adwords.google.com/api/adwords/mcm/v201609/ManagedCustomerService", _config.AccessToken, _config.Timeout, _config.EnableGzipCompression, _netUtil, _logger);
            var inData  = new SoapData <ManagedCustomerServiceRequestHeader, ManagedCustomerServiceGetPendingInvitations>();

            inData.Header = new ManagedCustomerServiceRequestHeader();
            AssignHeaderValues(inData.Header);
            inData.Body          = new ManagedCustomerServiceGetPendingInvitations();
            inData.Body.Selector = selector;
            var outData = await binding.GetPendingInvitationsAsync(inData).ConfigureAwait(false);

            return(outData.Body.Rval);
        }