Class: Google::Apis::DoubleclicksearchV2::Availability

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

Overview

A message containing availability data relevant to DoubleClick Search.

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) ⇒ Availability

Returns a new instance of Availability



62
63
64
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 62

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

Instance Attribute Details

#advertiser_idFixnum

DS advertiser ID. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


32
33
34
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 32

def advertiser_id
  @advertiser_id
end

#agency_idFixnum

DS agency ID. Corresponds to the JSON property agencyId

Returns:

  • (Fixnum)


37
38
39
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 37

def agency_id
  @agency_id
end

#availability_timestampFixnum

The time by which all conversions have been uploaded, in epoch millis UTC. Corresponds to the JSON property availabilityTimestamp

Returns:

  • (Fixnum)


42
43
44
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 42

def availability_timestamp
  @availability_timestamp
end

#segmentation_idFixnum

The numeric segmentation identifier (for example, DoubleClick Search Floodlight activity ID). Corresponds to the JSON property segmentationId

Returns:

  • (Fixnum)


48
49
50
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 48

def segmentation_id
  @segmentation_id
end

#segmentation_nameString

The friendly segmentation identifier (for example, DoubleClick Search Floodlight activity name). Corresponds to the JSON property segmentationName

Returns:

  • (String)


54
55
56
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 54

def segmentation_name
  @segmentation_name
end

#segmentation_typeString

The segmentation type that this availability is for (its default value is FLOODLIGHT). Corresponds to the JSON property segmentationType

Returns:

  • (String)


60
61
62
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 60

def segmentation_type
  @segmentation_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



67
68
69
70
71
72
73
74
# File 'generated/google/apis/doubleclicksearch_v2/classes.rb', line 67

def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @agency_id = args[:agency_id] if args.key?(:agency_id)
  @availability_timestamp = args[:availability_timestamp] if args.key?(:availability_timestamp)
  @segmentation_id = args[:segmentation_id] if args.key?(:segmentation_id)
  @segmentation_name = args[:segmentation_name] if args.key?(:segmentation_name)
  @segmentation_type = args[:segmentation_type] if args.key?(:segmentation_type)
end