Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesCampaignDuration
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesCampaignDuration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
The duration of a planned campaign.
Instance Attribute Summary collapse
-
#date_range ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDateRange
A date range.
-
#duration_in_days ⇒ Fixnum
The duration value in days.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesCampaignDuration
constructor
A new instance of GoogleAdsSearchads360V23ServicesCampaignDuration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesCampaignDuration
Returns a new instance of GoogleAdsSearchads360V23ServicesCampaignDuration.
38117 38118 38119 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDateRange
A date range.
Corresponds to the JSON property dateRange
38109 38110 38111 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38109 def date_range @date_range end |
#duration_in_days ⇒ Fixnum
The duration value in days. This field cannot be combined with the date_range
field.
Corresponds to the JSON property durationInDays
38115 38116 38117 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38115 def duration_in_days @duration_in_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38122 38123 38124 38125 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38122 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @duration_in_days = args[:duration_in_days] if args.key?(:duration_in_days) end |