Class: Google::Apis::DfareportingV2_8::Conversion
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_8::Conversion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_8/classes.rb,
generated/google/apis/dfareporting_v2_8/representations.rb,
generated/google/apis/dfareporting_v2_8/representations.rb
Overview
A Conversion represents when a user successfully performs a desired action after seeing an ad.
Instance Attribute Summary collapse
-
#child_directed_treatment ⇒ Boolean
(also: #child_directed_treatment?)
Whether the conversion was directed toward children.
-
#custom_variables ⇒ Array<Google::Apis::DfareportingV2_8::CustomFloodlightVariable>
Custom floodlight variables.
-
#encrypted_user_id ⇒ String
The alphanumeric encrypted user ID.
-
#encrypted_user_id_candidates ⇒ Array<String>
A list of the alphanumeric encrypted user IDs.
-
#floodlight_activity_id ⇒ Fixnum
Floodlight Activity ID of this conversion.
-
#floodlight_configuration_id ⇒ Fixnum
Floodlight Configuration ID of this conversion.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#limit_ad_tracking ⇒ Boolean
(also: #limit_ad_tracking?)
Whether Limit Ad Tracking is enabled.
-
#mobile_device_id ⇒ String
The mobile device ID.
-
#ordinal ⇒ String
The ordinal of the conversion.
-
#quantity ⇒ Fixnum
The quantity of the conversion.
-
#timestamp_micros ⇒ Fixnum
The timestamp of conversion, in Unix epoch micros.
-
#value ⇒ Float
The value of the conversion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Conversion
constructor
A new instance of Conversion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Conversion
Returns a new instance of Conversion
2414 2415 2416 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2414 def initialize(**args) update!(**args) end |
Instance Attribute Details
#child_directed_treatment ⇒ Boolean Also known as: child_directed_treatment?
Whether the conversion was directed toward children.
Corresponds to the JSON property childDirectedTreatment
2336 2337 2338 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2336 def child_directed_treatment @child_directed_treatment end |
#custom_variables ⇒ Array<Google::Apis::DfareportingV2_8::CustomFloodlightVariable>
Custom floodlight variables.
Corresponds to the JSON property customVariables
2342 2343 2344 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2342 def custom_variables @custom_variables end |
#encrypted_user_id ⇒ String
The alphanumeric encrypted user ID. When set, encryptionInfo should also be
specified. This field is mutually exclusive with encryptedUserIdCandidates[]
and mobileDeviceId. This or encryptedUserIdCandidates[] or mobileDeviceId is a
required field.
Corresponds to the JSON property encryptedUserId
2350 2351 2352 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2350 def encrypted_user_id @encrypted_user_id end |
#encrypted_user_id_candidates ⇒ Array<String>
A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior
to the conversion timestamp will be used in the inserted conversion. If no
such user ID is found then the conversion will be rejected with
NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be specified.
This field may only be used when calling batchinsert; it is not supported by
batchupdate. This field is mutually exclusive with encryptedUserId and
mobileDeviceId. This or encryptedUserId or mobileDeviceId is a required field.
Corresponds to the JSON property encryptedUserIdCandidates
2361 2362 2363 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2361 def encrypted_user_id_candidates @encrypted_user_id_candidates end |
#floodlight_activity_id ⇒ Fixnum
Floodlight Activity ID of this conversion. This is a required field.
Corresponds to the JSON property floodlightActivityId
2366 2367 2368 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2366 def floodlight_activity_id @floodlight_activity_id end |
#floodlight_configuration_id ⇒ Fixnum
Floodlight Configuration ID of this conversion. This is a required field.
Corresponds to the JSON property floodlightConfigurationId
2371 2372 2373 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2371 def floodlight_configuration_id @floodlight_configuration_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#conversion".
Corresponds to the JSON property kind
2377 2378 2379 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2377 def kind @kind end |
#limit_ad_tracking ⇒ Boolean Also known as: limit_ad_tracking?
Whether Limit Ad Tracking is enabled. When set to true, the conversion will be
used for reporting but not targeting. This will prevent remarketing.
Corresponds to the JSON property limitAdTracking
2383 2384 2385 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2383 def limit_ad_tracking @limit_ad_tracking end |
#mobile_device_id ⇒ String
The mobile device ID. This field is mutually exclusive with encryptedUserId
and encryptedUserIdCandidates[]. This or encryptedUserId or
encryptedUserIdCandidates[] is a required field.
Corresponds to the JSON property mobileDeviceId
2391 2392 2393 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2391 def mobile_device_id @mobile_device_id end |
#ordinal ⇒ String
The ordinal of the conversion. Use this field to control how conversions of
the same user and day are de-duplicated. This is a required field.
Corresponds to the JSON property ordinal
2397 2398 2399 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2397 def ordinal @ordinal end |
#quantity ⇒ Fixnum
The quantity of the conversion.
Corresponds to the JSON property quantity
2402 2403 2404 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2402 def quantity @quantity end |
#timestamp_micros ⇒ Fixnum
The timestamp of conversion, in Unix epoch micros. This is a required field.
Corresponds to the JSON property timestampMicros
2407 2408 2409 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2407 def @timestamp_micros end |
#value ⇒ Float
The value of the conversion.
Corresponds to the JSON property value
2412 2413 2414 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2412 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 |
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 2419 def update!(**args) @child_directed_treatment = args[:child_directed_treatment] if args.key?(:child_directed_treatment) @custom_variables = args[:custom_variables] if args.key?(:custom_variables) @encrypted_user_id = args[:encrypted_user_id] if args.key?(:encrypted_user_id) @encrypted_user_id_candidates = args[:encrypted_user_id_candidates] if args.key?(:encrypted_user_id_candidates) @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) @kind = args[:kind] if args.key?(:kind) @limit_ad_tracking = args[:limit_ad_tracking] if args.key?(:limit_ad_tracking) @mobile_device_id = args[:mobile_device_id] if args.key?(:mobile_device_id) @ordinal = args[:ordinal] if args.key?(:ordinal) @quantity = args[:quantity] if args.key?(:quantity) @timestamp_micros = args[:timestamp_micros] if args.key?(:timestamp_micros) @value = args[:value] if args.key?(:value) end |