Пример #1
0
        /// <summary>
        /// Gets the specified budgets from the account's shared budget library.
        /// </summary>
        /// <param name="budgetIds">The identifiers of the budgets you want to retrieve.
        /// If you leave BudgetIds nil or empty, then the operation will return all budgets
        /// that are available to be shared with campaigns in the account.</param>
        /// <returns></returns>
        private async Task <GetBudgetsByIdsResponse> GetBudgetsByIdsAsync(IList <long> budgetIds)
        {
            var request = new GetBudgetsByIdsRequest
            {
                BudgetIds = budgetIds
            };

            return(await CampaignService.CallAsync((s, r) => s.GetBudgetsByIdsAsync(r), request));
        }
Пример #2
0
 /// <summary>
 /// Gets the specified budgets from the account's shared budget library.
 /// </summary>
 /// <param name="budgetIds">The identifiers of the budgets you want to retrieve. 
 /// If you leave BudgetIds nil or empty, then the operation will return all budgets 
 /// that are available to be shared with campaigns in the account.</param>
 /// <returns></returns>
 private async Task<GetBudgetsByIdsResponse> GetBudgetsByIdsAsync(IList<long> budgetIds)
 {
     var request = new GetBudgetsByIdsRequest
     {
         BudgetIds = budgetIds
     };
     
     return (await CampaignService.CallAsync((s, r) => s.GetBudgetsByIdsAsync(r), request));
 }