/// <summary>Snippet for GetAdGroupAsync</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 GetAdGroupResourceNamesAsync() { // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) AdGroupName resourceName = AdGroupName.FromCustomerAdGroup("[CUSTOMER_ID]", "[AD_GROUP_ID]"); // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(resourceName); }
/// <summary>Snippet for GetAdGroupAsync</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 GetAdGroupAsync() { // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/adGroups/[AD_GROUP_ID]"; // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(resourceName); }
/// <summary>Snippet for GetAdGroupAsync</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 GetAdGroupRequestObjectAsync() { // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) GetAdGroupRequest request = new GetAdGroupRequest { ResourceNameAsAdGroupName = AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"), }; // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(request); }
/// <summary>Snippet for MutateAdGroupsAsync</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 MutateAdGroupsAsync() { // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <AdGroupOperation> operations = new AdGroupOperation[] { new AdGroupOperation(), }; // Make the request MutateAdGroupsResponse response = await adGroupServiceClient.MutateAdGroupsAsync(customerId, operations); }
/// <summary>Snippet for GetAdGroupAsync</summary> public async Task GetAdGroupAsync() { // Snippet: GetAdGroupAsync(string, CallSettings) // Additional: GetAdGroupAsync(string, CancellationToken) // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/adGroups/[AD_GROUP]"; // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(resourceName); // End snippet }
/// <summary>Snippet for GetAdGroupAsync</summary> public async Task GetAdGroupResourceNamesAsync() { // Snippet: GetAdGroupAsync(AdGroupName, CallSettings) // Additional: GetAdGroupAsync(AdGroupName, CancellationToken) // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) AdGroupName resourceName = AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"); // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(resourceName); // End snippet }
/// <summary>Snippet for MutateAdGroupsAsync</summary> public async Task MutateAdGroupsAsync() { // Snippet: MutateAdGroupsAsync(string, IEnumerable<AdGroupOperation>, CallSettings) // Additional: MutateAdGroupsAsync(string, IEnumerable<AdGroupOperation>, CancellationToken) // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <AdGroupOperation> operations = new AdGroupOperation[] { new AdGroupOperation(), }; // Make the request MutateAdGroupsResponse response = await adGroupServiceClient.MutateAdGroupsAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateAdGroupsAsync</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 MutateAdGroupsRequestObjectAsync() { // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) MutateAdGroupsRequest request = new MutateAdGroupsRequest { CustomerId = "", Operations = { new AdGroupOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateAdGroupsResponse response = await adGroupServiceClient.MutateAdGroupsAsync(request); }
/// <summary>Snippet for MutateAdGroupsAsync</summary> public async Task MutateAdGroupsRequestObjectAsync() { // Snippet: MutateAdGroupsAsync(MutateAdGroupsRequest, CallSettings) // Additional: MutateAdGroupsAsync(MutateAdGroupsRequest, CancellationToken) // Create client AdGroupServiceClient adGroupServiceClient = await AdGroupServiceClient.CreateAsync(); // Initialize request argument(s) MutateAdGroupsRequest request = new MutateAdGroupsRequest { CustomerId = "", Operations = { new AdGroupOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateAdGroupsResponse response = await adGroupServiceClient.MutateAdGroupsAsync(request); // End snippet }