Ejemplo n.º 1
0
        // Gets associations between a campaign and a shared entity such as a negative keyword list.
        // You can request associations by shared entity identifiers.

        private async Task <GetSharedEntityAssociationsBySharedEntityIdsResponse> GetSharedEntityAssociationsBySharedEntityIdsAsync(
            string entityType,
            IList <long> sharedEntityIds,
            string sharedEntityType)
        {
            var request = new GetSharedEntityAssociationsBySharedEntityIdsRequest
            {
                EntityType       = entityType,
                SharedEntityIds  = sharedEntityIds,
                SharedEntityType = sharedEntityType
            };

            return(await Service.CallAsync((s, r) => s.GetSharedEntityAssociationsBySharedEntityIdsAsync(r), request));
        }
        // Gets associations between a campaign and a shared entity such as a negative keyword list. 
        // You can request associations by shared entity identifiers.

        private async Task<GetSharedEntityAssociationsBySharedEntityIdsResponse> GetSharedEntityAssociationsBySharedEntityIdsAsync(
            string entityType,
            IList<long> sharedEntityIds,
            string sharedEntityType)
        {
            var request = new GetSharedEntityAssociationsBySharedEntityIdsRequest
            {
                EntityType = entityType,
                SharedEntityIds = sharedEntityIds,
                SharedEntityType = sharedEntityType
            };

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