Class: Google::Apis::DfareportingV2_6::Browser

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/representations.rb

Overview

Contains information about a browser that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Browser

Returns a new instance of Browser



1364
1365
1366
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1364

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

Instance Attribute Details

#browser_version_idFixnum

ID referring to this grouping of browser and version numbers. This is the ID used for targeting. Corresponds to the JSON property browserVersionId

Returns:

  • (Fixnum)


1323
1324
1325
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1323

def browser_version_id
  @browser_version_id
end

#dart_idFixnum

DART ID of this browser. This is the ID used when generating reports. Corresponds to the JSON property dartId

Returns:

  • (Fixnum)


1328
1329
1330
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1328

def dart_id
  @dart_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#browser". Corresponds to the JSON property kind

Returns:

  • (String)


1334
1335
1336
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1334

def kind
  @kind
end

#major_versionString

Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk () may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *. targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is. Corresponds to the JSON property majorVersion

Returns:

  • (String)


1345
1346
1347
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1345

def major_version
  @major_version
end

#minor_versionString

Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk () may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *. targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can't tell which version it is. Corresponds to the JSON property minorVersion

Returns:

  • (String)


1357
1358
1359
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1357

def minor_version
  @minor_version
end

#nameString

Name of this browser. Corresponds to the JSON property name

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1362

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1369
1370
1371
1372
1373
1374
1375
1376
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1369

def update!(**args)
  @browser_version_id = args[:browser_version_id] if args.key?(:browser_version_id)
  @dart_id = args[:dart_id] if args.key?(:dart_id)
  @kind = args[:kind] if args.key?(:kind)
  @major_version = args[:major_version] if args.key?(:major_version)
  @minor_version = args[:minor_version] if args.key?(:minor_version)
  @name = args[:name] if args.key?(:name)
end