Class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::AppIcon

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

Overview

The app icon, for app download 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) ⇒ AppIcon

Returns a new instance of AppIcon.



895
896
897
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 895

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


883
884
885
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 883

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


888
889
890
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 888

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


893
894
895
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 893

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



900
901
902
903
904
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 900

def update!(**args)
  @height = args[:height] if args.key?(:height)
  @url = args[:url] if args.key?(:url)
  @width = args[:width] if args.key?(:width)
end