Exemplo n.º 1
0
        // Gets the negative keywords that are only associated with the specified campaigns or ad groups.

        private async Task <GetNegativeKeywordsByEntityIdsResponse> GetNegativeKeywordsByEntityIdsAsync(
            IList <long> entityIds,
            string entityType,
            long parentEntityId)
        {
            var request = new GetNegativeKeywordsByEntityIdsRequest
            {
                EntityIds      = entityIds,
                EntityType     = entityType,
                ParentEntityId = parentEntityId
            };

            return(await Service.CallAsync((s, r) => s.GetNegativeKeywordsByEntityIdsAsync(r), request));
        }
        // Gets the negative keywords that are only associated with the specified campaigns or ad groups. 

        private async Task<GetNegativeKeywordsByEntityIdsResponse> GetNegativeKeywordsByEntityIdsAsync(
            IList<long> entityIds,
            string entityType,
            long parentEntityId)
        {
            var request = new GetNegativeKeywordsByEntityIdsRequest
            {
                EntityIds = entityIds,
                EntityType = entityType,
                ParentEntityId = parentEntityId
            };

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