// Apply opportunties for the specified account.

        private void ApplyOpportunitiesAsync(long accountId, IList <string> opportunityKeys)
        {
            var request = new ApplyOpportunitiesRequest
            {
                AccountId       = accountId,
                OpportunityKeys = opportunityKeys
            };

            OptimizerService.CallAsync((s, r) => s.ApplyOpportunitiesAsync(r), request);
        }
        // Apply opportunties for the specified account.

        private void ApplyOpportunitiesAsync(long accountId, IList<string> opportunityKeys)
        {
            var request = new ApplyOpportunitiesRequest
            {
                AccountId = accountId,
                OpportunityKeys = opportunityKeys
            };

            OptimizerService.CallAsync((s, r) => s.ApplyOpportunitiesAsync(r), request);
        }