Exemple #1
0
        /// <summary>Snippet for GetCampaignDraftAsync</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 GetCampaignDraftResourceNamesAsync()
        {
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignDraftName resourceName = CampaignDraftName.FromCustomerBaseCampaignDraft("[CUSTOMER_ID]", "[BASE_CAMPAIGN_ID]", "[DRAFT_ID]");
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(resourceName);
        }
Exemple #2
0
        /// <summary>Snippet for GetCampaignDraftAsync</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 GetCampaignDraftAsync()
        {
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/campaignDrafts/[BASE_CAMPAIGN_ID]~[DRAFT_ID]";
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(resourceName);
        }
Exemple #3
0
        /// <summary>Snippet for GetCampaignDraftAsync</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 GetCampaignDraftRequestObjectAsync()
        {
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignDraftRequest request = new GetCampaignDraftRequest
            {
                ResourceNameAsCampaignDraftName = CampaignDraftName.FromCustomerCampaignDraft("[CUSTOMER]", "[CAMPAIGN_DRAFT]"),
            };
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(request);
        }
Exemple #4
0
        /// <summary>Snippet for GetCampaignDraftAsync</summary>
        public async Task GetCampaignDraftAsync()
        {
            // Snippet: GetCampaignDraftAsync(string, CallSettings)
            // Additional: GetCampaignDraftAsync(string, CancellationToken)
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/campaignDrafts/[CAMPAIGN_DRAFT]";
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(resourceName);

            // End snippet
        }
Exemple #5
0
        /// <summary>Snippet for GetCampaignDraftAsync</summary>
        public async Task GetCampaignDraftResourceNamesAsync()
        {
            // Snippet: GetCampaignDraftAsync(CampaignDraftName, CallSettings)
            // Additional: GetCampaignDraftAsync(CampaignDraftName, CancellationToken)
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            CampaignDraftName resourceName = CampaignDraftName.FromCustomerCampaignDraft("[CUSTOMER]", "[CAMPAIGN_DRAFT]");
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(resourceName);

            // End snippet
        }
Exemple #6
0
        /// <summary>Snippet for GetCampaignDraftAsync</summary>
        public async Task GetCampaignDraftRequestObjectAsync()
        {
            // Snippet: GetCampaignDraftAsync(GetCampaignDraftRequest, CallSettings)
            // Additional: GetCampaignDraftAsync(GetCampaignDraftRequest, CancellationToken)
            // Create client
            CampaignDraftServiceClient campaignDraftServiceClient = await CampaignDraftServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCampaignDraftRequest request = new GetCampaignDraftRequest
            {
                ResourceNameAsCampaignDraftName = CampaignDraftName.FromCustomerBaseCampaignDraft("[CUSTOMER_ID]", "[BASE_CAMPAIGN_ID]", "[DRAFT_ID]"),
            };
            // Make the request
            CampaignDraft response = await campaignDraftServiceClient.GetCampaignDraftAsync(request);

            // End snippet
        }