Class: Google::Apis::DisplayvideoV2::PoiTargetingOptionDetails

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

Overview

Represents a targetable point of interest(POI). This will be populated in the poi_details field when targeting_type is TARGETING_TYPE_POI.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PoiTargetingOptionDetails

Returns a new instance of PoiTargetingOptionDetails.



10085
10086
10087
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10085

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

Instance Attribute Details

#display_nameString

Output only. The display name of a POI(e.g. "Times Square", "Space Needle"), followed by its full address if available. Corresponds to the JSON property displayName

Returns:

  • (String)


10073
10074
10075
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10073

def display_name
  @display_name
end

#latitudeFloat

Output only. Latitude of the POI rounding to 6th decimal place. Corresponds to the JSON property latitude

Returns:

  • (Float)


10078
10079
10080
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10078

def latitude
  @latitude
end

#longitudeFloat

Output only. Longitude of the POI rounding to 6th decimal place. Corresponds to the JSON property longitude

Returns:

  • (Float)


10083
10084
10085
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10083

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10090
10091
10092
10093
10094
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10090

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @latitude = args[:latitude] if args.key?(:latitude)
  @longitude = args[:longitude] if args.key?(:longitude)
end