Module: Google::Ads::GoogleAds::V15::Services::KeywordPlanCampaignService::Paths

Extended by:
Paths
Included in:
Client, Paths
Defined in:
lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb

Overview

Path helper methods for the KeywordPlanCampaignService API.

Instance Method Summary collapse

Instance Method Details

#geo_target_constant_path(criterion_id:) ⇒ ::String

Create a fully-qualified GeoTargetConstant resource string.

The resource will be in the following format:

‘geoTargetConstants/criterion_id`

Parameters:

  • criterion_id (String)

Returns:

  • (::String)


38
39
40
# File 'lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb', line 38

def geo_target_constant_path criterion_id:
  "geoTargetConstants/#{criterion_id}"
end

#keyword_plan_campaign_path(customer_id:, keyword_plan_campaign_id:) ⇒ ::String

Create a fully-qualified KeywordPlanCampaign resource string.

The resource will be in the following format:

‘customers/customer_id/keywordPlanCampaigns/keyword_plan_campaign_id`

Parameters:

  • customer_id (String)
  • keyword_plan_campaign_id (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


70
71
72
73
74
# File 'lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb', line 70

def keyword_plan_campaign_path customer_id:, keyword_plan_campaign_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/keywordPlanCampaigns/#{keyword_plan_campaign_id}"
end

#keyword_plan_path(customer_id:, keyword_plan_id:) ⇒ ::String

Create a fully-qualified KeywordPlan resource string.

The resource will be in the following format:

‘customers/customer_id/keywordPlans/keyword_plan_id`

Parameters:

  • customer_id (String)
  • keyword_plan_id (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


53
54
55
56
57
# File 'lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb', line 53

def keyword_plan_path customer_id:, keyword_plan_id:
  raise ::ArgumentError, "customer_id cannot contain /" if customer_id.to_s.include? "/"

  "customers/#{customer_id}/keywordPlans/#{keyword_plan_id}"
end

#language_constant_path(criterion_id:) ⇒ ::String

Create a fully-qualified LanguageConstant resource string.

The resource will be in the following format:

‘languageConstants/criterion_id`

Parameters:

  • criterion_id (String)

Returns:

  • (::String)


86
87
88
# File 'lib/google/ads/google_ads/v15/services/keyword_plan_campaign_service/paths.rb', line 86

def language_constant_path criterion_id:
  "languageConstants/#{criterion_id}"
end