Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAsset

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

Asset is a part of an ad which can be shared across multiple ads. It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. Assets are immutable and cannot be removed. To stop an asset from serving, remove the asset from the entity that is using it.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAsset

Returns a new instance of GoogleAdsSearchads360V0ResourcesAsset.



4751
4752
4753
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4751

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

Instance Attribute Details

#call_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCallAsset

A unified call asset. Corresponds to the JSON property callAsset



4651
4652
4653
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4651

def call_asset
  @call_asset
end

#call_to_action_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonCallToActionAsset

A call to action asset. Corresponds to the JSON property callToActionAsset



4656
4657
4658
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4656

def call_to_action_asset
  @call_to_action_asset
end

#callout_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCalloutAsset

A unified callout asset. Corresponds to the JSON property calloutAsset



4661
4662
4663
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4661

def callout_asset
  @callout_asset
end

#creation_timeString

Output only. The timestamp when this asset was created. The timestamp is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss" format. Corresponds to the JSON property creationTime

Returns:

  • (String)


4667
4668
4669
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4667

def creation_time
  @creation_time
end

#engine_statusString

Output only. The Engine Status for an asset. Corresponds to the JSON property engineStatus

Returns:

  • (String)


4672
4673
4674
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4672

def engine_status
  @engine_status
end

#final_urlsArray<String>

A list of possible final URLs after all cross domain redirects. Corresponds to the JSON property finalUrls

Returns:

  • (Array<String>)


4677
4678
4679
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4677

def final_urls
  @final_urls
end

#idFixnum

Output only. The ID of the asset. Corresponds to the JSON property id

Returns:

  • (Fixnum)


4682
4683
4684
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4682

def id
  @id
end

#image_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonImageAsset

An Image asset. Corresponds to the JSON property imageAsset



4687
4688
4689
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4687

def image_asset
  @image_asset
end

#last_modified_timeString

Output only. The datetime when this asset was last modified. The datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss.ssssss" format. Corresponds to the JSON property lastModifiedTime

Returns:

  • (String)


4693
4694
4695
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4693

def last_modified_time
  @last_modified_time
end

#location_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedLocationAsset

A unified location asset. Corresponds to the JSON property locationAsset



4698
4699
4700
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4698

def location_asset
  @location_asset
end

#mobile_app_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonMobileAppAsset

An asset representing a mobile app. Corresponds to the JSON property mobileAppAsset



4703
4704
4705
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4703

def mobile_app_asset
  @mobile_app_asset
end

#nameString

Optional name of the asset. Corresponds to the JSON property name

Returns:

  • (String)


4708
4709
4710
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4708

def name
  @name
end

#page_feed_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedPageFeedAsset

A Unified Page Feed asset. Corresponds to the JSON property pageFeedAsset



4713
4714
4715
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4713

def page_feed_asset
  @page_feed_asset
end

#resource_nameString

Immutable. The resource name of the asset. Asset resource names have the form: customers/customer_id/assets/asset_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


4719
4720
4721
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4719

def resource_name
  @resource_name
end

A unified sitelink asset. Corresponds to the JSON property sitelinkAsset



4724
4725
4726
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4724

def sitelink_asset
  @sitelink_asset
end

#statusString

Output only. The status of the asset. Corresponds to the JSON property status

Returns:

  • (String)


4729
4730
4731
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4729

def status
  @status
end

#text_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonTextAsset

A Text asset. Corresponds to the JSON property textAsset



4734
4735
4736
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4734

def text_asset
  @text_asset
end

#tracking_url_templateString

URL template for constructing a tracking URL. Corresponds to the JSON property trackingUrlTemplate

Returns:

  • (String)


4739
4740
4741
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4739

def tracking_url_template
  @tracking_url_template
end

#typeString

Output only. Type of the asset. Corresponds to the JSON property type

Returns:

  • (String)


4744
4745
4746
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4744

def type
  @type
end

#youtube_video_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonYoutubeVideoAsset

A YouTube asset. Corresponds to the JSON property youtubeVideoAsset



4749
4750
4751
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4749

def youtube_video_asset
  @youtube_video_asset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
# File 'lib/google/apis/searchads360_v0/classes.rb', line 4756

def update!(**args)
  @call_asset = args[:call_asset] if args.key?(:call_asset)
  @call_to_action_asset = args[:call_to_action_asset] if args.key?(:call_to_action_asset)
  @callout_asset = args[:callout_asset] if args.key?(:callout_asset)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @engine_status = args[:engine_status] if args.key?(:engine_status)
  @final_urls = args[:final_urls] if args.key?(:final_urls)
  @id = args[:id] if args.key?(:id)
  @image_asset = args[:image_asset] if args.key?(:image_asset)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @location_asset = args[:location_asset] if args.key?(:location_asset)
  @mobile_app_asset = args[:mobile_app_asset] if args.key?(:mobile_app_asset)
  @name = args[:name] if args.key?(:name)
  @page_feed_asset = args[:page_feed_asset] if args.key?(:page_feed_asset)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @sitelink_asset = args[:sitelink_asset] if args.key?(:sitelink_asset)
  @status = args[:status] if args.key?(:status)
  @text_asset = args[:text_asset] if args.key?(:text_asset)
  @tracking_url_template = args[:tracking_url_template] if args.key?(:tracking_url_template)
  @type = args[:type] if args.key?(:type)
  @youtube_video_asset = args[:youtube_video_asset] if args.key?(:youtube_video_asset)
end