Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonImageAdInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonImageAdInfo
- 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
-
#ad_id_to_copy_image_from ⇒ Fixnum
An ad ID to copy the image from.
-
#data ⇒ String
Raw image data as bytes.
-
#image_asset ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset
An image asset used inside an ad.
-
#image_url ⇒ String
URL of the full size image.
-
#mime_type ⇒ String
The mime type of the image.
-
#name ⇒ String
The name of the image.
-
#pixel_height ⇒ Fixnum
Height in pixels of the full size image.
-
#pixel_width ⇒ Fixnum
Width in pixels of the full size image.
-
#preview_image_url ⇒ String
URL of the preview size image.
-
#preview_pixel_height ⇒ Fixnum
Height in pixels of the preview size image.
-
#preview_pixel_width ⇒ Fixnum
Width in pixels of the preview size image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonImageAdInfo
constructor
A new instance of GoogleAdsSearchads360V23CommonImageAdInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_from ⇒ Fixnum
An ad ID to copy the image from.
Corresponds to the JSON property adIdToCopyImageFrom
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 |
#data ⇒ String
Raw image data as bytes.
Corresponds to the JSON property data
NOTE: Values are automatically base64 encoded/decoded in the client library.
5685 5686 5687 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5685 def data @data end |
#image_asset ⇒ Google::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_url ⇒ String
URL of the full size image.
Corresponds to the JSON property imageUrl
5695 5696 5697 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5695 def image_url @image_url end |
#mime_type ⇒ String
The mime type of the image.
Corresponds to the JSON property mimeType
5700 5701 5702 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5700 def mime_type @mime_type end |
#name ⇒ String
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
5706 5707 5708 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5706 def name @name end |
#pixel_height ⇒ Fixnum
Height in pixels of the full size image.
Corresponds to the JSON property pixelHeight
5711 5712 5713 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5711 def pixel_height @pixel_height end |
#pixel_width ⇒ Fixnum
Width in pixels of the full size image.
Corresponds to the JSON property pixelWidth
5716 5717 5718 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5716 def pixel_width @pixel_width end |
#preview_image_url ⇒ String
URL of the preview size image.
Corresponds to the JSON property previewImageUrl
5721 5722 5723 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5721 def preview_image_url @preview_image_url end |
#preview_pixel_height ⇒ Fixnum
Height in pixels of the preview size image.
Corresponds to the JSON property previewPixelHeight
5726 5727 5728 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5726 def preview_pixel_height @preview_pixel_height end |
#preview_pixel_width ⇒ Fixnum
Width in pixels of the preview size image.
Corresponds to the JSON property previewPixelWidth
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 |