/// <summary>Snippet for GetKeywordPlanAdGroupKeywordAsync</summary>
        public async Task GetKeywordPlanAdGroupKeywordRequestObjectAsync()
        {
            // Snippet: GetKeywordPlanAdGroupKeywordAsync(GetKeywordPlanAdGroupKeywordRequest, CallSettings)
            // Additional: GetKeywordPlanAdGroupKeywordAsync(GetKeywordPlanAdGroupKeywordRequest, CancellationToken)
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetKeywordPlanAdGroupKeywordRequest request = new GetKeywordPlanAdGroupKeywordRequest
            {
                ResourceNameAsKeywordPlanAdGroupKeywordName = KeywordPlanAdGroupKeywordName.FromCustomerKeywordPlanAdGroupKeyword("[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD]"),
            };
            // Make the request
            KeywordPlanAdGroupKeyword response = await keywordPlanAdGroupKeywordServiceClient.GetKeywordPlanAdGroupKeywordAsync(request);

            // End snippet
        }
        /// <summary>Snippet for MutateKeywordPlanAdGroupKeywordsAsync</summary>
        public async Task MutateKeywordPlanAdGroupKeywordsRequestObjectAsync()
        {
            // Snippet: MutateKeywordPlanAdGroupKeywordsAsync(MutateKeywordPlanAdGroupKeywordsRequest, CallSettings)
            // Additional: MutateKeywordPlanAdGroupKeywordsAsync(MutateKeywordPlanAdGroupKeywordsRequest, CancellationToken)
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new KeywordPlanAdGroupKeywordOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateKeywordPlanAdGroupKeywordsResponse response = await keywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywordsAsync(request);

            // End snippet
        }
        /// <summary>Snippet for MutateKeywordPlanAdGroupKeywordsAsync</summary>
        public async Task MutateKeywordPlanAdGroupKeywordsAsync()
        {
            // Snippet: MutateKeywordPlanAdGroupKeywordsAsync(string, IEnumerable<KeywordPlanAdGroupKeywordOperation>, CallSettings)
            // Additional: MutateKeywordPlanAdGroupKeywordsAsync(string, IEnumerable<KeywordPlanAdGroupKeywordOperation>, CancellationToken)
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <KeywordPlanAdGroupKeywordOperation> operations = new KeywordPlanAdGroupKeywordOperation[]
            {
                new KeywordPlanAdGroupKeywordOperation(),
            };
            // Make the request
            MutateKeywordPlanAdGroupKeywordsResponse response = await keywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywordsAsync(customerId, operations);

            // End snippet
        }
Exemple #4
0
        /// <summary>Snippet for GetKeywordPlanAdGroupKeywordAsync</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 GetKeywordPlanAdGroupKeywordRequestObjectAsync()
        {
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetKeywordPlanAdGroupKeywordRequest request = new GetKeywordPlanAdGroupKeywordRequest
            {
                ResourceNameAsKeywordPlanAdGroupKeywordName = KeywordPlanAdGroupKeywordName.FromCustomerKeywordPlanAdGroupKeyword("[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD]"),
            };
            // Make the request
            KeywordPlanAdGroupKeyword response = await keywordPlanAdGroupKeywordServiceClient.GetKeywordPlanAdGroupKeywordAsync(request);
        }
        /// <summary>Snippet for MutateKeywordPlanAdGroupKeywordsAsync</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 MutateKeywordPlanAdGroupKeywordsRequestObjectAsync()
        {
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            MutateKeywordPlanAdGroupKeywordsRequest request = new MutateKeywordPlanAdGroupKeywordsRequest
            {
                CustomerId = "",
                Operations =
                {
                    new KeywordPlanAdGroupKeywordOperation(),
                },
                PartialFailure = false,
                ValidateOnly   = false,
            };
            // Make the request
            MutateKeywordPlanAdGroupKeywordsResponse response = await keywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywordsAsync(request);
        }
Exemple #6
0
        /// <summary>Snippet for MutateKeywordPlanAdGroupKeywordsAsync</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 MutateKeywordPlanAdGroupKeywordsAsync()
        {
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            string customerId = "";
            IEnumerable <KeywordPlanAdGroupKeywordOperation> operations = new KeywordPlanAdGroupKeywordOperation[]
            {
                new KeywordPlanAdGroupKeywordOperation(),
            };
            // Make the request
            MutateKeywordPlanAdGroupKeywordsResponse response = await keywordPlanAdGroupKeywordServiceClient.MutateKeywordPlanAdGroupKeywordsAsync(customerId, operations);
        }
        /// <summary>Snippet for GetKeywordPlanAdGroupKeywordAsync</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 GetKeywordPlanAdGroupKeywordAsync()
        {
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/keywordPlanAdGroupKeywords/[KEYWORD_PLAN_AD_GROUP_KEYWORD]";
            // Make the request
            KeywordPlanAdGroupKeyword response = await keywordPlanAdGroupKeywordServiceClient.GetKeywordPlanAdGroupKeywordAsync(resourceName);
        }
Exemple #8
0
        /// <summary>Snippet for GetKeywordPlanAdGroupKeywordAsync</summary>
        public async Task GetKeywordPlanAdGroupKeywordAsync()
        {
            // Snippet: GetKeywordPlanAdGroupKeywordAsync(string, CallSettings)
            // Additional: GetKeywordPlanAdGroupKeywordAsync(string, CancellationToken)
            // Create client
            KeywordPlanAdGroupKeywordServiceClient keywordPlanAdGroupKeywordServiceClient = await KeywordPlanAdGroupKeywordServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER_ID]/keywordPlanAdGroupKeywords/[KEYWORD_PLAN_AD_GROUP_KEYWORD_ID]";
            // Make the request
            KeywordPlanAdGroupKeyword response = await keywordPlanAdGroupKeywordServiceClient.GetKeywordPlanAdGroupKeywordAsync(resourceName);

            // End snippet
        }