Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonMonthlySearchVolume

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb

Overview

Monthly search volume.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonMonthlySearchVolume

Returns a new instance of GoogleAdsSearchads360V23CommonMonthlySearchVolume.



8691
8692
8693
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8691

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

Instance Attribute Details

#monthString

The month of the search volume. Corresponds to the JSON property month

Returns:

  • (String)


8678
8679
8680
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8678

def month
  @month
end

#monthly_searchesFixnum

Approximate number of searches for the month. A null value indicates the search volume is unavailable for that month. Corresponds to the JSON property monthlySearches

Returns:

  • (Fixnum)


8684
8685
8686
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8684

def monthly_searches
  @monthly_searches
end

#yearFixnum

The year of the search volume (for example, 2020). Corresponds to the JSON property year

Returns:

  • (Fixnum)


8689
8690
8691
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8689

def year
  @year
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8696
8697
8698
8699
8700
# File 'lib/google/apis/searchads360_v23/classes.rb', line 8696

def update!(**args)
  @month = args[:month] if args.key?(:month)
  @monthly_searches = args[:monthly_searches] if args.key?(:monthly_searches)
  @year = args[:year] if args.key?(:year)
end