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.
5673 5674 5675 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5673 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
5619 5620 5621 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5619 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.
5625 5626 5627 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5625 def data @data end |
#image_asset ⇒ Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonAdImageAsset
An image asset used inside an ad.
Corresponds to the JSON property imageAsset
5630 5631 5632 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5630 def image_asset @image_asset end |
#image_url ⇒ String
URL of the full size image.
Corresponds to the JSON property imageUrl
5635 5636 5637 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5635 def image_url @image_url end |
#mime_type ⇒ String
The mime type of the image.
Corresponds to the JSON property mimeType
5640 5641 5642 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5640 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
5646 5647 5648 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5646 def name @name end |
#pixel_height ⇒ Fixnum
Height in pixels of the full size image.
Corresponds to the JSON property pixelHeight
5651 5652 5653 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5651 def pixel_height @pixel_height end |
#pixel_width ⇒ Fixnum
Width in pixels of the full size image.
Corresponds to the JSON property pixelWidth
5656 5657 5658 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5656 def pixel_width @pixel_width end |
#preview_image_url ⇒ String
URL of the preview size image.
Corresponds to the JSON property previewImageUrl
5661 5662 5663 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5661 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
5666 5667 5668 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5666 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
5671 5672 5673 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5671 def preview_pixel_width @preview_pixel_width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5678 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 |