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.



2987
2988
2989
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2987

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

Instance Attribute Details

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


2938
2939
2940
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2938

def creation_time
  @creation_time
end

#engine_statusString

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

Returns:

  • (String)


2943
2944
2945
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2943

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


2948
2949
2950
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2948

def final_urls
  @final_urls
end

#idFixnum

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

Returns:

  • (Fixnum)


2953
2954
2955
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2953

def id
  @id
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)


2959
2960
2961
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2959

def last_modified_time
  @last_modified_time
end

#mobile_app_assetGoogle::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonMobileAppAsset

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



2964
2965
2966
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2964

def mobile_app_asset
  @mobile_app_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)


2970
2971
2972
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2970

def resource_name
  @resource_name
end

#statusString

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

Returns:

  • (String)


2975
2976
2977
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2975

def status
  @status
end

#tracking_url_templateString

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

Returns:

  • (String)


2980
2981
2982
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2980

def tracking_url_template
  @tracking_url_template
end

#typeString

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

Returns:

  • (String)


2985
2986
2987
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2985

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2992

def update!(**args)
  @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)
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
  @mobile_app_asset = args[:mobile_app_asset] if args.key?(:mobile_app_asset)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @status = args[:status] if args.key?(:status)
  @tracking_url_template = args[:tracking_url_template] if args.key?(:tracking_url_template)
  @type = args[:type] if args.key?(:type)
end