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.



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_fromFixnum

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

Returns:

  • (Fixnum)


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

#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)


5625
5626
5627
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5625

def data
  @data
end

#image_assetGoogle::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_urlString

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

Returns:

  • (String)


5635
5636
5637
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5635

def image_url
  @image_url
end

#mime_typeString

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

Returns:

  • (String)


5640
5641
5642
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5640

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)


5646
5647
5648
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5646

def name
  @name
end

#pixel_heightFixnum

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

Returns:

  • (Fixnum)


5651
5652
5653
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5651

def pixel_height
  @pixel_height
end

#pixel_widthFixnum

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

Returns:

  • (Fixnum)


5656
5657
5658
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5656

def pixel_width
  @pixel_width
end

#preview_image_urlString

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

Returns:

  • (String)


5661
5662
5663
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5661

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)


5666
5667
5668
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5666

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)


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