/// <summary>Snippet for GetKeywordPlanAdGroupAsync</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 GetKeywordPlanAdGroupResourceNamesAsync() { // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) KeywordPlanAdGroupName resourceName = KeywordPlanAdGroupName.FromCustomerKeywordPlanAdGroup("[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP]"); // Make the request KeywordPlanAdGroup response = await keywordPlanAdGroupServiceClient.GetKeywordPlanAdGroupAsync(resourceName); }
/// <summary>Snippet for GetKeywordPlanAdGroupAsync</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 GetKeywordPlanAdGroupAsync() { // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/keywordPlanAdGroups/[KEYWORD_PLAN_AD_GROUP_ID]"; // Make the request KeywordPlanAdGroup response = await keywordPlanAdGroupServiceClient.GetKeywordPlanAdGroupAsync(resourceName); }
/// <summary>Snippet for GetKeywordPlanAdGroupAsync</summary> public async Task GetKeywordPlanAdGroupAsync() { // Snippet: GetKeywordPlanAdGroupAsync(string, CallSettings) // Additional: GetKeywordPlanAdGroupAsync(string, CancellationToken) // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/keywordPlanAdGroups/[KEYWORD_PLAN_AD_GROUP_ID]"; // Make the request KeywordPlanAdGroup response = await keywordPlanAdGroupServiceClient.GetKeywordPlanAdGroupAsync(resourceName); // End snippet }
/// <summary>Snippet for GetKeywordPlanAdGroupAsync</summary> public async Task GetKeywordPlanAdGroupResourceNamesAsync() { // Snippet: GetKeywordPlanAdGroupAsync(KeywordPlanAdGroupName, CallSettings) // Additional: GetKeywordPlanAdGroupAsync(KeywordPlanAdGroupName, CancellationToken) // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) KeywordPlanAdGroupName resourceName = KeywordPlanAdGroupName.FromCustomerKeywordPlanAdGroup("[CUSTOMER_ID]", "[KEYWORD_PLAN_AD_GROUP_ID]"); // Make the request KeywordPlanAdGroup response = await keywordPlanAdGroupServiceClient.GetKeywordPlanAdGroupAsync(resourceName); // End snippet }
/// <summary>Snippet for MutateKeywordPlanAdGroupsAsync</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 MutateKeywordPlanAdGroupsAsync() { // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <KeywordPlanAdGroupOperation> operations = new KeywordPlanAdGroupOperation[] { new KeywordPlanAdGroupOperation(), }; // Make the request MutateKeywordPlanAdGroupsResponse response = await keywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroupsAsync(customerId, operations); }
/// <summary>Snippet for MutateKeywordPlanAdGroupsAsync</summary> public async Task MutateKeywordPlanAdGroupsAsync() { // Snippet: MutateKeywordPlanAdGroupsAsync(string, IEnumerable<KeywordPlanAdGroupOperation>, CallSettings) // Additional: MutateKeywordPlanAdGroupsAsync(string, IEnumerable<KeywordPlanAdGroupOperation>, CancellationToken) // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <KeywordPlanAdGroupOperation> operations = new KeywordPlanAdGroupOperation[] { new KeywordPlanAdGroupOperation(), }; // Make the request MutateKeywordPlanAdGroupsResponse response = await keywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroupsAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateKeywordPlanAdGroupsAsync</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 MutateKeywordPlanAdGroupsRequestObjectAsync() { // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest { CustomerId = "", Operations = { new KeywordPlanAdGroupOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateKeywordPlanAdGroupsResponse response = await keywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroupsAsync(request); }
/// <summary>Snippet for MutateKeywordPlanAdGroupsAsync</summary> public async Task MutateKeywordPlanAdGroupsRequestObjectAsync() { // Snippet: MutateKeywordPlanAdGroupsAsync(MutateKeywordPlanAdGroupsRequest, CallSettings) // Additional: MutateKeywordPlanAdGroupsAsync(MutateKeywordPlanAdGroupsRequest, CancellationToken) // Create client KeywordPlanAdGroupServiceClient keywordPlanAdGroupServiceClient = await KeywordPlanAdGroupServiceClient.CreateAsync(); // Initialize request argument(s) MutateKeywordPlanAdGroupsRequest request = new MutateKeywordPlanAdGroupsRequest { CustomerId = "", Operations = { new KeywordPlanAdGroupOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateKeywordPlanAdGroupsResponse response = await keywordPlanAdGroupServiceClient.MutateKeywordPlanAdGroupsAsync(request); // End snippet }