Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonSegments

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonSegments

Returns a new instance of GoogleAdsSearchads360V0CommonSegments.



1272
1273
1274
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1272

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ad_network_typeString

Ad network type. Corresponds to the JSON property adNetworkType

Returns:

  • (String)


1211
1212
1213
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1211

def ad_network_type
  @ad_network_type
end

#conversion_actionString

Resource name of the conversion action. Corresponds to the JSON property conversionAction

Returns:

  • (String)


1216
1217
1218
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1216

def conversion_action
  @conversion_action
end

#conversion_action_categoryString

Conversion action category. Corresponds to the JSON property conversionActionCategory

Returns:

  • (String)


1221
1222
1223
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1221

def conversion_action_category
  @conversion_action_category
end

#conversion_action_nameString

Conversion action name. Corresponds to the JSON property conversionActionName

Returns:

  • (String)


1226
1227
1228
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1226

def conversion_action_name
  @conversion_action_name
end

#dateString

Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17. Corresponds to the JSON property date

Returns:

  • (String)


1231
1232
1233
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1231

def date
  @date
end

#day_of_weekString

Day of the week, for example, MONDAY. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


1236
1237
1238
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1236

def day_of_week
  @day_of_week
end

#deviceString

Device to which metrics apply. Corresponds to the JSON property device

Returns:

  • (String)


1241
1242
1243
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1241

def device
  @device
end

#keywordGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonKeyword

A Keyword criterion segment. Corresponds to the JSON property keyword



1246
1247
1248
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1246

def keyword
  @keyword
end

#monthString

Month as represented by the date of the first day of a month. Formatted as yyyy-MM-dd. Corresponds to the JSON property month

Returns:

  • (String)


1252
1253
1254
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1252

def month
  @month
end

#quarterString

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

Returns:

  • (String)


1259
1260
1261
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1259

def quarter
  @quarter
end

#weekString

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

Returns:

  • (String)


1265
1266
1267
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1265

def week
  @week
end

#yearFixnum

Year, formatted as yyyy. Corresponds to the JSON property year

Returns:

  • (Fixnum)


1270
1271
1272
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1270

def year
  @year
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1277

def update!(**args)
  @ad_network_type = args[:ad_network_type] if args.key?(:ad_network_type)
  @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