Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonImageAsset

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

Overview

An Image asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonImageAsset

Returns a new instance of GoogleAdsSearchads360V23CommonImageAsset.



5778
5779
5780
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5778

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

Instance Attribute Details

#dataString

The raw bytes data of an image. This field is mutate only. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5761
5762
5763
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5761

def data
  @data
end

#file_sizeFixnum

File size of the image asset in bytes. Corresponds to the JSON property fileSize

Returns:

  • (Fixnum)


5766
5767
5768
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5766

def file_size
  @file_size
end

#full_sizeGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonImageDimension

Metadata for an image at a certain size, either original or resized. Corresponds to the JSON property fullSize



5771
5772
5773
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5771

def full_size
  @full_size
end

#mime_typeString

MIME type of the image asset. Corresponds to the JSON property mimeType

Returns:

  • (String)


5776
5777
5778
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5776

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5783
5784
5785
5786
5787
5788
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5783

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @file_size = args[:file_size] if args.key?(:file_size)
  @full_size = args[:full_size] if args.key?(:full_size)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end