Пример #1
0
        // Adds negative keywords to the specified campaign or ad group.

        private async Task <AddNegativeKeywordsToEntitiesResponse> AddNegativeKeywordsToEntitiesAsync(IList <EntityNegativeKeyword> entityNegativeKeywords)
        {
            var request = new AddNegativeKeywordsToEntitiesRequest
            {
                EntityNegativeKeywords = entityNegativeKeywords
            };

            return(await Service.CallAsync((s, r) => s.AddNegativeKeywordsToEntitiesAsync(r), request));
        }
        // Adds negative keywords to the specified campaign or ad group. 

        private async Task<AddNegativeKeywordsToEntitiesResponse> AddNegativeKeywordsToEntitiesAsync(IList<EntityNegativeKeyword> entityNegativeKeywords)
        {
            var request = new AddNegativeKeywordsToEntitiesRequest
            {
                EntityNegativeKeywords = entityNegativeKeywords
            };

            return (await Service.CallAsync((s, r) => s.AddNegativeKeywordsToEntitiesAsync(r), request));
        }