Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesAsset
- 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
-
#creation_time ⇒ String
Output only.
-
#engine_status ⇒ String
Output only.
-
#final_urls ⇒ Array<String>
A list of possible final URLs after all cross domain redirects.
-
#id ⇒ Fixnum
Output only.
-
#last_modified_time ⇒ String
Output only.
-
#mobile_app_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonMobileAppAsset
An asset representing a mobile app.
-
#resource_name ⇒ String
Immutable.
-
#status ⇒ String
Output only.
-
#tracking_url_template ⇒ String
URL template for constructing a tracking URL.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesAsset
constructor
A new instance of GoogleAdsSearchads360V0ResourcesAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
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
2938 2939 2940 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2938 def creation_time @creation_time end |
#engine_status ⇒ String
Output only. The Engine Status for an asset.
Corresponds to the JSON property engineStatus
2943 2944 2945 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2943 def engine_status @engine_status end |
#final_urls ⇒ Array<String>
A list of possible final URLs after all cross domain redirects.
Corresponds to the JSON property finalUrls
2948 2949 2950 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2948 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the asset.
Corresponds to the JSON property id
2953 2954 2955 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2953 def id @id end |
#last_modified_time ⇒ String
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
2959 2960 2961 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2959 def last_modified_time @last_modified_time end |
#mobile_app_asset ⇒ Google::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_name ⇒ String
Immutable. The resource name of the asset. Asset resource names have the form:
customers/customer_id/assets/asset_id`
Corresponds to the JSON propertyresourceName`
2970 2971 2972 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2970 def resource_name @resource_name end |
#status ⇒ String
Output only. The status of the asset.
Corresponds to the JSON property status
2975 2976 2977 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2975 def status @status end |
#tracking_url_template ⇒ String
URL template for constructing a tracking URL.
Corresponds to the JSON property trackingUrlTemplate
2980 2981 2982 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2980 def tracking_url_template @tracking_url_template end |
#type ⇒ String
Output only. Type of the asset.
Corresponds to the JSON property type
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 |