lib/google/ads/google_ads/v10/services/campaign_service/paths.rb in google-ads-googleads-16.0.0 vs lib/google/ads/google_ads/v10/services/campaign_service/paths.rb in google-ads-googleads-17.0.0

- old
+ new

@@ -92,9 +92,26 @@ "customers/#{customer_id}/campaignBudgets/#{campaign_budget_id}" end ## + # Create a fully-qualified CampaignGroup resource string. + # + # The resource will be in the following format: + # + # `customers/{customer_id}/campaignGroups/{campaign_group_id}` + # + # @param customer_id [String] + # @param campaign_group_id [String] + # + # @return [::String] + def campaign_group_path customer_id:, campaign_group_id: + raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/" + + "customers/#{customer_id}/campaignGroups/#{campaign_group_id}" + end + + ## # Create a fully-qualified CampaignLabel resource string. # # The resource will be in the following format: # # `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}`