Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageAsset

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

Overview

An Image asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonImageAsset

Returns a new instance of GoogleAdsSearchads360V0CommonImageAsset.



335
336
337
# File 'lib/google/apis/searchads360_v0/classes.rb', line 335

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

Instance Attribute Details

#file_sizeFixnum

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

Returns:

  • (Fixnum)


323
324
325
# File 'lib/google/apis/searchads360_v0/classes.rb', line 323

def file_size
  @file_size
end

#full_sizeGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageDimension

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



328
329
330
# File 'lib/google/apis/searchads360_v0/classes.rb', line 328

def full_size
  @full_size
end

#mime_typeString

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

Returns:

  • (String)


333
334
335
# File 'lib/google/apis/searchads360_v0/classes.rb', line 333

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



340
341
342
343
344
# File 'lib/google/apis/searchads360_v0/classes.rb', line 340

def update!(**args)
  @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