/// <summary>Snippet for GetAd</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAdResourceNames() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) AdName resourceName = AdName.FromCustomerAd("[CUSTOMER]", "[AD]"); // Make the request Ad response = adServiceClient.GetAd(resourceName); }
/// <summary>Snippet for GetAd</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAd() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/ads/[AD]"; // Make the request Ad response = adServiceClient.GetAd(resourceName); }
/// <summary>Snippet for MutateAds</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateAds() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) string customerId = ""; IEnumerable <AdOperation> operations = new AdOperation[] { new AdOperation(), }; // Make the request MutateAdsResponse response = adServiceClient.MutateAds(customerId, operations); }
/// <summary>Snippet for GetAd</summary> public void GetAdResourceNames() { // Snippet: GetAd(AdName, CallSettings) // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) AdName resourceName = AdName.FromCustomerAd("[CUSTOMER_ID]", "[AD_ID]"); // Make the request Ad response = adServiceClient.GetAd(resourceName); // End snippet }
/// <summary>Snippet for GetAd</summary> public void GetAd() { // Snippet: GetAd(string, CallSettings) // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/ads/[AD_ID]"; // Make the request Ad response = adServiceClient.GetAd(resourceName); // End snippet }
/// <summary>Snippet for GetAd</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void GetAdRequestObject() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) GetAdRequest request = new GetAdRequest { ResourceNameAsAdName = AdName.FromCustomerAd("[CUSTOMER]", "[AD]"), }; // Make the request Ad response = adServiceClient.GetAd(request); }
/// <summary>Snippet for MutateAds</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateAdsRequestObject() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) MutateAdsRequest request = new MutateAdsRequest { CustomerId = "", Operations = { new AdOperation(), }, }; // Make the request MutateAdsResponse response = adServiceClient.MutateAds(request); }
/// <summary>Snippet for MutateAds</summary> public void MutateAdsRequestObject() { // Snippet: MutateAds(MutateAdsRequest, CallSettings) // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) MutateAdsRequest request = new MutateAdsRequest { CustomerId = "", Operations = { new AdOperation(), }, ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified, }; // Make the request MutateAdsResponse response = adServiceClient.MutateAds(request); // End snippet }
/// <summary>Snippet for MutateAds</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public void MutateAdsRequestObject() { // Create client AdServiceClient adServiceClient = AdServiceClient.Create(); // Initialize request argument(s) MutateAdsRequest request = new MutateAdsRequest { CustomerId = "", Operations = { new AdOperation(), }, ValidateOnly = false, PartialFailure = false, ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified, }; // Make the request MutateAdsResponse response = adServiceClient.MutateAds(request); }