Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSegments
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSegments
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb
Overview
Segment only fields.
Instance Attribute Summary collapse
-
#conversion_action ⇒ String
Resource name of the conversion action.
-
#conversion_action_category ⇒ String
Conversion action category.
-
#conversion_action_name ⇒ String
Conversion action name.
-
#date ⇒ String
Date to which metrics apply.
-
#day_of_week ⇒ String
Day of the week, for example, MONDAY.
-
#device ⇒ String
Device to which metrics apply.
-
#month ⇒ String
Month as represented by the date of the first day of a month.
-
#quarter ⇒ String
Quarter as represented by the date of the first day of a quarter.
-
#week ⇒ String
Week as defined as Monday through Sunday, and represented by the date of Monday.
-
#year ⇒ Fixnum
Year, formatted as yyyy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonSegments
constructor
A new instance of GoogleAdsSearchads360V0CommonSegments.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonSegments
Returns a new instance of GoogleAdsSearchads360V0CommonSegments.
1018 1019 1020 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1018 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conversion_action ⇒ String
Resource name of the conversion action.
Corresponds to the JSON property conversionAction
967 968 969 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 967 def conversion_action @conversion_action end |
#conversion_action_category ⇒ String
Conversion action category.
Corresponds to the JSON property conversionActionCategory
972 973 974 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 972 def conversion_action_category @conversion_action_category end |
#conversion_action_name ⇒ String
Conversion action name.
Corresponds to the JSON property conversionActionName
977 978 979 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 977 def conversion_action_name @conversion_action_name end |
#date ⇒ String
Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17.
Corresponds to the JSON property date
982 983 984 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 982 def date @date end |
#day_of_week ⇒ String
Day of the week, for example, MONDAY.
Corresponds to the JSON property dayOfWeek
987 988 989 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 987 def day_of_week @day_of_week end |
#device ⇒ String
Device to which metrics apply.
Corresponds to the JSON property device
992 993 994 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 992 def device @device end |
#month ⇒ String
Month as represented by the date of the first day of a month. Formatted as
yyyy-MM-dd.
Corresponds to the JSON property month
998 999 1000 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 998 def month @month end |
#quarter ⇒ String
Quarter as represented by the date of the first day of a quarter. Uses the
calendar year for quarters, for example, the second quarter of 2018 starts on
2018-04-01. Formatted as yyyy-MM-dd.
Corresponds to the JSON property quarter
1005 1006 1007 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1005 def quarter @quarter end |
#week ⇒ String
Week as defined as Monday through Sunday, and represented by the date of
Monday. Formatted as yyyy-MM-dd.
Corresponds to the JSON property week
1011 1012 1013 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1011 def week @week end |
#year ⇒ Fixnum
Year, formatted as yyyy.
Corresponds to the JSON property year
1016 1017 1018 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1016 def year @year end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1023 def update!(**args) @conversion_action = args[:conversion_action] if args.key?(:conversion_action) @conversion_action_category = args[:conversion_action_category] if args.key?(:conversion_action_category) @conversion_action_name = args[:conversion_action_name] if args.key?(:conversion_action_name) @date = args[:date] if args.key?(:date) @day_of_week = args[:day_of_week] if args.key?(:day_of_week) @device = args[:device] if args.key?(:device) @month = args[:month] if args.key?(:month) @quarter = args[:quarter] if args.key?(:quarter) @week = args[:week] if args.key?(:week) @year = args[:year] if args.key?(:year) end |