Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonUnifiedCalloutAsset

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

A unified callout asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonUnifiedCalloutAsset

Returns a new instance of GoogleAdsSearchads360V0CommonUnifiedCalloutAsset.



2638
2639
2640
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2638

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

Instance Attribute Details

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



2612
2613
2614
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2612

def ad_schedule_targets
  @ad_schedule_targets
end

#callout_textString

The callout text. The length of this string should be between 1 and 25, inclusive. Corresponds to the JSON property calloutText

Returns:

  • (String)


2618
2619
2620
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2618

def callout_text
  @callout_text
end

#end_dateString

Last date of when this asset is effective and still serving, in yyyy-MM-dd format. Corresponds to the JSON property endDate

Returns:

  • (String)


2624
2625
2626
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2624

def end_date
  @end_date
end

#start_dateString

Start date of when this asset is effective and can begin serving, in yyyy-MM- dd format. Corresponds to the JSON property startDate

Returns:

  • (String)


2630
2631
2632
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2630

def start_date
  @start_date
end

#use_searcher_time_zoneBoolean Also known as: use_searcher_time_zone?

Whether to show the asset in search user's time zone. Applies to Microsoft Ads. Corresponds to the JSON property useSearcherTimeZone

Returns:

  • (Boolean)


2635
2636
2637
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2635

def use_searcher_time_zone
  @use_searcher_time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2643
2644
2645
2646
2647
2648
2649
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2643

def update!(**args)
  @ad_schedule_targets = args[:ad_schedule_targets] if args.key?(:ad_schedule_targets)
  @callout_text = args[:callout_text] if args.key?(:callout_text)
  @end_date = args[:end_date] if args.key?(:end_date)
  @start_date = args[:start_date] if args.key?(:start_date)
  @use_searcher_time_zone = args[:use_searcher_time_zone] if args.key?(:use_searcher_time_zone)
end