Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
- 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
A unified sitelink asset.
Instance Attribute Summary collapse
-
#ad_schedule_targets ⇒ Array<Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAdScheduleInfo>
List of non-overlapping schedules specifying all time intervals for which the asset may serve.
-
#description1 ⇒ String
First line of the description for the sitelink.
-
#description2 ⇒ String
Second line of the description for the sitelink.
-
#end_date ⇒ String
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
-
#link_text ⇒ String
URL display text for the sitelink.
-
#mobile_preferred ⇒ Boolean
(also: #mobile_preferred?)
Whether the preference is for the sitelink asset to be displayed on mobile devices.
-
#start_date ⇒ String
Start date of when this asset is effective and can begin serving, in yyyy-MM- dd format.
-
#tracking_id ⇒ Fixnum
ID used for tracking clicks for the sitelink asset.
-
#use_searcher_time_zone ⇒ Boolean
(also: #use_searcher_time_zone?)
Whether to show the sitelink asset in search user's time zone.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
constructor
A new instance of GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset
Returns a new instance of GoogleAdsSearchads360V0CommonUnifiedSitelinkAsset.
2776 2777 2778 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2776 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_schedule_targets ⇒ Array<Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonAdScheduleInfo>
List of non-overlapping schedules specifying all time intervals for which the
asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
Corresponds to the JSON property adScheduleTargets
2724 2725 2726 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2724 def ad_schedule_targets @ad_schedule_targets end |
#description1 ⇒ String
First line of the description for the sitelink. If set, the length should be
between 1 and 35, inclusive, and description2 must also be set.
Corresponds to the JSON property description1
2730 2731 2732 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2730 def description1 @description1 end |
#description2 ⇒ String
Second line of the description for the sitelink. If set, the length should be
between 1 and 35, inclusive, and description1 must also be set.
Corresponds to the JSON property description2
2736 2737 2738 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2736 def description2 @description2 end |
#end_date ⇒ String
Last date of when this asset is effective and still serving, in yyyy-MM-dd
format.
Corresponds to the JSON property endDate
2742 2743 2744 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2742 def end_date @end_date end |
#link_text ⇒ String
URL display text for the sitelink. The length of this string should be between
1 and 25, inclusive.
Corresponds to the JSON property linkText
2748 2749 2750 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2748 def link_text @link_text end |
#mobile_preferred ⇒ Boolean Also known as: mobile_preferred?
Whether the preference is for the sitelink asset to be displayed on mobile
devices. Applies to Microsoft Ads.
Corresponds to the JSON property mobilePreferred
2754 2755 2756 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2754 def mobile_preferred @mobile_preferred end |
#start_date ⇒ String
Start date of when this asset is effective and can begin serving, in yyyy-MM-
dd format.
Corresponds to the JSON property startDate
2761 2762 2763 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2761 def start_date @start_date end |
#tracking_id ⇒ Fixnum
ID used for tracking clicks for the sitelink asset. This is a Yahoo! Japan
only field.
Corresponds to the JSON property trackingId
2767 2768 2769 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2767 def tracking_id @tracking_id end |
#use_searcher_time_zone ⇒ Boolean Also known as: use_searcher_time_zone?
Whether to show the sitelink asset in search user's time zone. Applies to
Microsoft Ads.
Corresponds to the JSON property useSearcherTimeZone
2773 2774 2775 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2773 def use_searcher_time_zone @use_searcher_time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2781 def update!(**args) @ad_schedule_targets = args[:ad_schedule_targets] if args.key?(:ad_schedule_targets) @description1 = args[:description1] if args.key?(:description1) @description2 = args[:description2] if args.key?(:description2) @end_date = args[:end_date] if args.key?(:end_date) @link_text = args[:link_text] if args.key?(:link_text) @mobile_preferred = args[:mobile_preferred] if args.key?(:mobile_preferred) @start_date = args[:start_date] if args.key?(:start_date) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) @use_searcher_time_zone = args[:use_searcher_time_zone] if args.key?(:use_searcher_time_zone) end |