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.
38434 38435 38436 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38434 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonDateRange
A date range.
Corresponds to the JSON property dateRange
38426 38427 38428 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38426 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
38432 38433 38434 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38432 def duration_in_days @duration_in_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38439 38440 38441 38442 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 38439 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 |