/// <summary>Snippet for GetCampaignAsync</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 GetCampaignResourceNamesAsync()
        {
            // Create client
            CampaignServiceClient campaignServiceClient = await CampaignServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignName resourceName = CampaignName.FromCustomerCampaign("[CUSTOMER]", "[CAMPAIGN]");
            // Make the request
            Campaign response = await campaignServiceClient.GetCampaignAsync(resourceName);
        }
Exemple #2
0
        /// <summary>Snippet for GetCampaignAsync</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 GetCampaignAsync()
        {
            // Create client
            CampaignServiceClient campaignServiceClient = await CampaignServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/campaigns/[CAMPAIGN_ID]";
            // Make the request
            Campaign response = await campaignServiceClient.GetCampaignAsync(resourceName);
        }
        /// <summary>Snippet for GetCampaignAsync</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 GetCampaignRequestObjectAsync()
        {
            // Create client
            CampaignServiceClient campaignServiceClient = await CampaignServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignRequest request = new GetCampaignRequest
            {
                ResourceNameAsCampaignName = CampaignName.FromCustomerCampaign("[CUSTOMER_ID]", "[CAMPAIGN_ID]"),
            };
            // Make the request
            Campaign response = await campaignServiceClient.GetCampaignAsync(request);
        }
Exemple #4
0
        /// <summary>Snippet for GetCampaignAsync</summary>
        public async Task GetCampaignAsync()
        {
            // Snippet: GetCampaignAsync(string, CallSettings)
            // Additional: GetCampaignAsync(string, CancellationToken)
            // Create client
            CampaignServiceClient campaignServiceClient = await CampaignServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/campaigns/[CAMPAIGN]";
            // Make the request
            Campaign response = await campaignServiceClient.GetCampaignAsync(resourceName);

            // End snippet
        }
Exemple #5
0
        /// <summary>Snippet for GetCampaignAsync</summary>
        public async Task GetCampaignResourceNamesAsync()
        {
            // Snippet: GetCampaignAsync(CampaignName, CallSettings)
            // Additional: GetCampaignAsync(CampaignName, CancellationToken)
            // Create client
            CampaignServiceClient campaignServiceClient = await CampaignServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignName resourceName = CampaignName.FromCustomerCampaign("[CUSTOMER]", "[CAMPAIGN]");
            // Make the request
            Campaign response = await campaignServiceClient.GetCampaignAsync(resourceName);

            // End snippet
        }