Example #1
0
 /// <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 GetAdGroup()
 {
     // Create client
     AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/adGroups/[AD_GROUP_ID]";
     // Make the request
     AdGroup response = adGroupServiceClient.GetAdGroup(resourceName);
 }
 /// <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 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>
 public void GetAdGroup()
 {
     // Snippet: GetAdGroup(string, CallSettings)
     // Create client
     AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/adGroups/[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 MutateAdGroups</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateAdGroups()
 {
     // Create client
     AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <AdGroupOperation> operations = new AdGroupOperation[]
     {
         new AdGroupOperation(),
     };
     // Make the request
     MutateAdGroupsResponse response = adGroupServiceClient.MutateAdGroups(customerId, operations);
 }
Example #7
0
 /// <summary>Snippet for MutateAdGroups</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateAdGroupsRequestObject()
 {
     // Create client
     AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create();
     // Initialize request argument(s)
     MutateAdGroupsRequest request = new MutateAdGroupsRequest
     {
         CustomerId = "",
         Operations =
         {
             new AdGroupOperation(),
         },
         PartialFailure = false,
         ValidateOnly   = false,
     };
     // Make the request
     MutateAdGroupsResponse response = adGroupServiceClient.MutateAdGroups(request);
 }
 /// <summary>Snippet for MutateAdGroups</summary>
 public void MutateAdGroupsRequestObject()
 {
     // Snippet: MutateAdGroups(MutateAdGroupsRequest, CallSettings)
     // Create client
     AdGroupServiceClient adGroupServiceClient = AdGroupServiceClient.Create();
     // Initialize request argument(s)
     MutateAdGroupsRequest request = new MutateAdGroupsRequest
     {
         CustomerId = "",
         Operations =
         {
             new AdGroupOperation(),
         },
         PartialFailure      = false,
         ValidateOnly        = false,
         ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
     };
     // Make the request
     MutateAdGroupsResponse response = adGroupServiceClient.MutateAdGroups(request);
     // End snippet
 }