Class: Google::Apis::DfareportingV3_1::Browser
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_1::Browser
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/representations.rb
Overview
Contains information about a browser that can be targeted by ads.
Instance Attribute Summary collapse
-
#browser_version_id ⇒ Fixnum
ID referring to this grouping of browser and version numbers.
-
#dart_id ⇒ Fixnum
DART ID of this browser.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#major_version ⇒ String
Major version number (leftmost number) of this browser.
-
#minor_version ⇒ String
Minor version number (number after first dot on left) of this browser.
-
#name ⇒ String
Name of this browser.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Browser
constructor
A new instance of Browser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Browser
Returns a new instance of Browser
1444 1445 1446 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#browser_version_id ⇒ Fixnum
ID referring to this grouping of browser and version numbers. This is the ID
used for targeting.
Corresponds to the JSON property browserVersionId
1403 1404 1405 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1403 def browser_version_id @browser_version_id end |
#dart_id ⇒ Fixnum
DART ID of this browser. This is the ID used when generating reports.
Corresponds to the JSON property dartId
1408 1409 1410 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1408 def dart_id @dart_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#browser".
Corresponds to the JSON property kind
1414 1415 1416 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1414 def kind @kind end |
#major_version ⇒ String
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
1425 1426 1427 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1425 def major_version @major_version end |
#minor_version ⇒ String
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
1437 1438 1439 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1437 def minor_version @minor_version end |
#name ⇒ String
Name of this browser.
Corresponds to the JSON property name
1442 1443 1444 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1442 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 1449 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 |