Class: Google::Apis::AdexchangebuyerV1_3::Creative::NativeAd::AppIcon

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

Overview

The app icon, for app download ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AppIcon

Returns a new instance of AppIcon



646
647
648
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 646

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

Instance Attribute Details

#heightFixnum

Corresponds to the JSON property height

Returns:

  • (Fixnum)


634
635
636
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 634

def height
  @height
end

#urlString

Corresponds to the JSON property url

Returns:

  • (String)


639
640
641
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 639

def url
  @url
end

#widthFixnum

Corresponds to the JSON property width

Returns:

  • (Fixnum)


644
645
646
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 644

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



651
652
653
654
655
# File 'generated/google/apis/adexchangebuyer_v1_3/classes.rb', line 651

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