Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonImageAdInfo

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 ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonImageAdInfo

Returns a new instance of GoogleAdsSearchads360V23CommonImageAdInfo.



5733
5734
5735
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5733

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

Instance Attribute Details

#ad_id_to_copy_image_fromFixnum

An ad ID to copy the image from. Corresponds to the JSON property adIdToCopyImageFrom

Returns:

  • (Fixnum)


5679
5680
5681
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5679

def ad_id_to_copy_image_from
  @ad_id_to_copy_image_from
end

#dataString

Raw image data as bytes. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5685
5686
5687
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5685

def data
  @data
end

#image_assetGoogle::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset

An image asset used inside an ad. Corresponds to the JSON property imageAsset



5690
5691
5692
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5690

def image_asset
  @image_asset
end

#image_urlString

URL of the full size image. Corresponds to the JSON property imageUrl

Returns:

  • (String)


5695
5696
5697
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5695

def image_url
  @image_url
end

#mime_typeString

The mime type of the image. Corresponds to the JSON property mimeType

Returns:

  • (String)


5700
5701
5702
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5700

def mime_type
  @mime_type
end

#nameString

The name of the image. If the image was created from a MediaFile, this is the MediaFile's name. If the image was created from bytes, this is empty. Corresponds to the JSON property name

Returns:

  • (String)


5706
5707
5708
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5706

def name
  @name
end

#pixel_heightFixnum

Height in pixels of the full size image. Corresponds to the JSON property pixelHeight

Returns:

  • (Fixnum)


5711
5712
5713
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5711

def pixel_height
  @pixel_height
end

#pixel_widthFixnum

Width in pixels of the full size image. Corresponds to the JSON property pixelWidth

Returns:

  • (Fixnum)


5716
5717
5718
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5716

def pixel_width
  @pixel_width
end

#preview_image_urlString

URL of the preview size image. Corresponds to the JSON property previewImageUrl

Returns:

  • (String)


5721
5722
5723
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5721

def preview_image_url
  @preview_image_url
end

#preview_pixel_heightFixnum

Height in pixels of the preview size image. Corresponds to the JSON property previewPixelHeight

Returns:

  • (Fixnum)


5726
5727
5728
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5726

def preview_pixel_height
  @preview_pixel_height
end

#preview_pixel_widthFixnum

Width in pixels of the preview size image. Corresponds to the JSON property previewPixelWidth

Returns:

  • (Fixnum)


5731
5732
5733
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5731

def preview_pixel_width
  @preview_pixel_width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5738

def update!(**args)
  @ad_id_to_copy_image_from = args[:ad_id_to_copy_image_from] if args.key?(:ad_id_to_copy_image_from)
  @data = args[:data] if args.key?(:data)
  @image_asset = args[:image_asset] if args.key?(:image_asset)
  @image_url = args[:image_url] if args.key?(:image_url)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @name = args[:name] if args.key?(:name)
  @pixel_height = args[:pixel_height] if args.key?(:pixel_height)
  @pixel_width = args[:pixel_width] if args.key?(:pixel_width)
  @preview_image_url = args[:preview_image_url] if args.key?(:preview_image_url)
  @preview_pixel_height = args[:preview_pixel_height] if args.key?(:preview_pixel_height)
  @preview_pixel_width = args[:preview_pixel_width] if args.key?(:preview_pixel_width)
end