/// <summary>Snippet for GetAdGroup</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAdGroupResourceNames() { // Create client AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create(); // Initialize request argument(s) AdGroupName resourceName = AdGroupName.FromCustomerAdGroup("[CUSTOMER_ID]", "[AD_GROUP_ID]"); // Make the request AdGroup response = adGroupServiceClient.GetAdGroup(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 GetAdGroupResourceNamesAsync() { // 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); }
/// <summary>Snippet for GetAdGroup</summary> public void GetAdGroupResourceNames() { // Snippet: GetAdGroup(AdGroupName, CallSettings) // Create client AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create(); // Initialize request argument(s) AdGroupName resourceName = AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"); // Make the request AdGroup response = adGroupServiceClient.GetAdGroup(resourceName); // End snippet }
/// <summary>Snippet for GetAdGroup</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAdGroupRequestObject() { // Create client AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create(); // Initialize request argument(s) GetAdGroupRequest request = new GetAdGroupRequest { ResourceNameAsAdGroupName = AdGroupName.FromCustomerAdGroup("[CUSTOMER]", "[AD_GROUP]"), }; // Make the request AdGroup response = adGroupServiceClient.GetAdGroup(request); }
/// <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_ID]", "[AD_GROUP_ID]"), }; // Make the request AdGroup response = await adGroupServiceClient.GetAdGroupAsync(request); }
/// <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 }