/// <summary>Snippet for GetAdGroupCriterionAsync</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 GetAdGroupCriterionAsync() { // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/adGroupCriteria/[AD_GROUP_CRITERION]"; // Make the request AdGroupCriterion response = await adGroupCriterionServiceClient.GetAdGroupCriterionAsync(resourceName); }
/// <summary>Snippet for GetAdGroupCriterionAsync</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 GetAdGroupCriterionResourceNamesAsync() { // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) AdGroupCriterionName resourceName = AdGroupCriterionName.FromCustomerAdGroupCriterion("[CUSTOMER]", "[AD_GROUP_CRITERION]"); // Make the request AdGroupCriterion response = await adGroupCriterionServiceClient.GetAdGroupCriterionAsync(resourceName); }
/// <summary>Snippet for GetAdGroupCriterionAsync</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 GetAdGroupCriterionRequestObjectAsync() { // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) GetAdGroupCriterionRequest request = new GetAdGroupCriterionRequest { ResourceNameAsAdGroupCriterionName = AdGroupCriterionName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]"), }; // Make the request AdGroupCriterion response = await adGroupCriterionServiceClient.GetAdGroupCriterionAsync(request); }
/// <summary>Snippet for GetAdGroupCriterionAsync</summary> public async Task GetAdGroupCriterionAsync() { // Snippet: GetAdGroupCriterionAsync(string, CallSettings) // Additional: GetAdGroupCriterionAsync(string, CancellationToken) // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/adGroupCriteria/[AD_GROUP_ID]~[CRITERION_ID]"; // Make the request AdGroupCriterion response = await adGroupCriterionServiceClient.GetAdGroupCriterionAsync(resourceName); // End snippet }
/// <summary>Snippet for GetAdGroupCriterionAsync</summary> public async Task GetAdGroupCriterionResourceNamesAsync() { // Snippet: GetAdGroupCriterionAsync(AdGroupCriterionName, CallSettings) // Additional: GetAdGroupCriterionAsync(AdGroupCriterionName, CancellationToken) // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) AdGroupCriterionName resourceName = AdGroupCriterionName.FromCustomerAdGroupCriterion("[CUSTOMER_ID]", "[AD_GROUP_ID]", "[CRITERION_ID]"); // Make the request AdGroupCriterion response = await adGroupCriterionServiceClient.GetAdGroupCriterionAsync(resourceName); // End snippet }
/// <summary>Snippet for MutateAdGroupCriteriaAsync</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 MutateAdGroupCriteriaAsync() { // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <AdGroupCriterionOperation> operations = new AdGroupCriterionOperation[] { new AdGroupCriterionOperation(), }; // Make the request MutateAdGroupCriteriaResponse response = await adGroupCriterionServiceClient.MutateAdGroupCriteriaAsync(customerId, operations); }
/// <summary>Snippet for MutateAdGroupCriteriaAsync</summary> public async Task MutateAdGroupCriteriaAsync() { // Snippet: MutateAdGroupCriteriaAsync(string, IEnumerable<AdGroupCriterionOperation>, CallSettings) // Additional: MutateAdGroupCriteriaAsync(string, IEnumerable<AdGroupCriterionOperation>, CancellationToken) // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <AdGroupCriterionOperation> operations = new AdGroupCriterionOperation[] { new AdGroupCriterionOperation(), }; // Make the request MutateAdGroupCriteriaResponse response = await adGroupCriterionServiceClient.MutateAdGroupCriteriaAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateAdGroupCriteriaAsync</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 MutateAdGroupCriteriaRequestObjectAsync() { // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest { CustomerId = "", Operations = { new AdGroupCriterionOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateAdGroupCriteriaResponse response = await adGroupCriterionServiceClient.MutateAdGroupCriteriaAsync(request); }
/// <summary>Snippet for MutateAdGroupCriteriaAsync</summary> public async Task MutateAdGroupCriteriaRequestObjectAsync() { // Snippet: MutateAdGroupCriteriaAsync(MutateAdGroupCriteriaRequest, CallSettings) // Additional: MutateAdGroupCriteriaAsync(MutateAdGroupCriteriaRequest, CancellationToken) // Create client AdGroupCriterionServiceClient adGroupCriterionServiceClient = await AdGroupCriterionServiceClient.CreateAsync(); // Initialize request argument(s) MutateAdGroupCriteriaRequest request = new MutateAdGroupCriteriaRequest { CustomerId = "", Operations = { new AdGroupCriterionOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateAdGroupCriteriaResponse response = await adGroupCriterionServiceClient.MutateAdGroupCriteriaAsync(request); // End snippet }