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
-
#ad_network_type ⇒ String
Ad network type.
-
#asset_interaction_target ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAssetInteractionTarget
An AssetInteractionTarget segment.
-
#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.
-
#keyword ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonKeyword
A Keyword criterion segment.
-
#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.
1401 1402 1403 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1401 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_network_type ⇒ String
Ad network type.
Corresponds to the JSON property adNetworkType
1335 1336 1337 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1335 def ad_network_type @ad_network_type end |
#asset_interaction_target ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAssetInteractionTarget
An AssetInteractionTarget segment.
Corresponds to the JSON property assetInteractionTarget
1340 1341 1342 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1340 def asset_interaction_target @asset_interaction_target end |
#conversion_action ⇒ String
Resource name of the conversion action.
Corresponds to the JSON property conversionAction
1345 1346 1347 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1345 def conversion_action @conversion_action end |
#conversion_action_category ⇒ String
Conversion action category.
Corresponds to the JSON property conversionActionCategory
1350 1351 1352 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1350 def conversion_action_category @conversion_action_category end |
#conversion_action_name ⇒ String
Conversion action name.
Corresponds to the JSON property conversionActionName
1355 1356 1357 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1355 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
1360 1361 1362 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1360 def date @date end |
#day_of_week ⇒ String
Day of the week, for example, MONDAY.
Corresponds to the JSON property dayOfWeek
1365 1366 1367 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1365 def day_of_week @day_of_week end |
#device ⇒ String
Device to which metrics apply.
Corresponds to the JSON property device
1370 1371 1372 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1370 def device @device end |
#keyword ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonKeyword
A Keyword criterion segment.
Corresponds to the JSON property keyword
1375 1376 1377 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1375 def keyword @keyword 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
1381 1382 1383 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1381 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
1388 1389 1390 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1388 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
1394 1395 1396 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1394 def week @week end |
#year ⇒ Fixnum
Year, formatted as yyyy.
Corresponds to the JSON property year
1399 1400 1401 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1399 def year @year end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1406 def update!(**args) @ad_network_type = args[:ad_network_type] if args.key?(:ad_network_type) @asset_interaction_target = args[:asset_interaction_target] if args.key?(:asset_interaction_target) @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) @keyword = args[:keyword] if args.key?(:keyword) @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 |