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
-
#call_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCallAsset
A unified call asset.
-
#callout_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCalloutAsset
A unified callout asset.
-
#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.
-
#location_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedLocationAsset
A unified location asset.
-
#mobile_app_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonMobileAppAsset
An asset representing a mobile app.
-
#page_feed_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedPageFeedAsset
A Unified Page Feed asset.
-
#resource_name ⇒ String
Immutable.
-
#sitelink_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
A unified sitelink asset.
-
#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.
3531 3532 3533 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#call_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCallAsset
A unified call asset.
Corresponds to the JSON property callAsset
3456 3457 3458 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3456 def call_asset @call_asset end |
#callout_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCalloutAsset
A unified callout asset.
Corresponds to the JSON property calloutAsset
3461 3462 3463 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3461 def callout_asset @callout_asset end |
#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
3467 3468 3469 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3467 def creation_time @creation_time end |
#engine_status ⇒ String
Output only. The Engine Status for an asset.
Corresponds to the JSON property engineStatus
3472 3473 3474 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3472 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
3477 3478 3479 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3477 def final_urls @final_urls end |
#id ⇒ Fixnum
Output only. The ID of the asset.
Corresponds to the JSON property id
3482 3483 3484 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3482 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
3488 3489 3490 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3488 def last_modified_time @last_modified_time end |
#location_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedLocationAsset
A unified location asset.
Corresponds to the JSON property locationAsset
3493 3494 3495 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3493 def location_asset @location_asset end |
#mobile_app_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonMobileAppAsset
An asset representing a mobile app.
Corresponds to the JSON property mobileAppAsset
3498 3499 3500 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3498 def mobile_app_asset @mobile_app_asset end |
#page_feed_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedPageFeedAsset
A Unified Page Feed asset.
Corresponds to the JSON property pageFeedAsset
3503 3504 3505 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3503 def page_feed_asset @page_feed_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`
3509 3510 3511 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3509 def resource_name @resource_name end |
#sitelink_asset ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
A unified sitelink asset.
Corresponds to the JSON property sitelinkAsset
3514 3515 3516 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3514 def sitelink_asset @sitelink_asset end |
#status ⇒ String
Output only. The status of the asset.
Corresponds to the JSON property status
3519 3520 3521 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3519 def status @status end |
#tracking_url_template ⇒ String
URL template for constructing a tracking URL.
Corresponds to the JSON property trackingUrlTemplate
3524 3525 3526 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3524 def tracking_url_template @tracking_url_template end |
#type ⇒ String
Output only. Type of the asset.
Corresponds to the JSON property type
3529 3530 3531 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3529 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 3536 def update!(**args) @call_asset = args[:call_asset] if args.key?(:call_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) @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) @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) @tracking_url_template = args[:tracking_url_template] if args.key?(:tracking_url_template) @type = args[:type] if args.key?(:type) end |