Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonClickLocation

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

Location criteria associated with a click.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonClickLocation

Returns a new instance of GoogleAdsSearchads360V23CommonClickLocation.



2722
2723
2724
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2722

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

Instance Attribute Details

#cityString

The city location criterion associated with the impression. Corresponds to the JSON property city

Returns:

  • (String)


2700
2701
2702
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2700

def city
  @city
end

#countryString

The country location criterion associated with the impression. Corresponds to the JSON property country

Returns:

  • (String)


2705
2706
2707
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2705

def country
  @country
end

#metroString

The metro location criterion associated with the impression. Corresponds to the JSON property metro

Returns:

  • (String)


2710
2711
2712
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2710

def metro
  @metro
end

#most_specificString

The most specific location criterion associated with the impression. Corresponds to the JSON property mostSpecific

Returns:

  • (String)


2715
2716
2717
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2715

def most_specific
  @most_specific
end

#regionString

The region location criterion associated with the impression. Corresponds to the JSON property region

Returns:

  • (String)


2720
2721
2722
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2720

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2727
2728
2729
2730
2731
2732
2733
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2727

def update!(**args)
  @city = args[:city] if args.key?(:city)
  @country = args[:country] if args.key?(:country)
  @metro = args[:metro] if args.key?(:metro)
  @most_specific = args[:most_specific] if args.key?(:most_specific)
  @region = args[:region] if args.key?(:region)
end