Пример #1
0
        /// <summary>Snippet for MutateFeedItemSetsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateFeedItemSetsAsync()
        {
            // Create client
            FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <FeedItemSetOperation> operations = new FeedItemSetOperation[]
            {
                new FeedItemSetOperation(),
            };
            // Make the request
            MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(customerId, operations);
        }
Пример #2
0
        /// <summary>Snippet for MutateFeedItemSetsAsync</summary>
        public async Task MutateFeedItemSetsAsync()
        {
            // Snippet: MutateFeedItemSetsAsync(string, IEnumerable<FeedItemSetOperation>, CallSettings)
            // Additional: MutateFeedItemSetsAsync(string, IEnumerable<FeedItemSetOperation>, CancellationToken)
            // Create client
            FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <FeedItemSetOperation> operations = new FeedItemSetOperation[]
            {
                new FeedItemSetOperation(),
            };
            // Make the request
            MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(customerId, operations);

            // End snippet
        }
        /// <summary>Snippet for MutateFeedItemSetsAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task MutateFeedItemSetsRequestObjectAsync()
        {
            // Create client
            FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new FeedItemSetOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(request);
        }
Пример #4
0
        /// <summary>Snippet for MutateFeedItemSetsAsync</summary>
        public async Task MutateFeedItemSetsRequestObjectAsync()
        {
            // Snippet: MutateFeedItemSetsAsync(MutateFeedItemSetsRequest, CallSettings)
            // Additional: MutateFeedItemSetsAsync(MutateFeedItemSetsRequest, CancellationToken)
            // Create client
            FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new FeedItemSetOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(request);

            // End snippet
        }