Class: WhopSDK::Models::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::City

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/ad_group_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(cities: nil, countries: nil, location_types: nil, regions: nil, zips: nil) ⇒ Object

Geo targeting (countries, regions, cities, zips).

Parameters:



1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1236

class City < WhopSDK::Internal::Type::BaseModel
  # @!attribute key
  #   Meta geo target key/ID.
  #
  #   @return [String]
  required :key, String

  # @!attribute country
  #   Country code for this entry.
  #
  #   @return [String, nil]
  optional :country, String, nil?: true

  # @!attribute name
  #   Display name.
  #
  #   @return [String, nil]
  optional :name, String, nil?: true

  # @!attribute radius
  #   Radius in miles (cities only).
  #
  #   @return [Integer, nil]
  optional :radius, Integer, nil?: true

  # @!method initialize(key:, country: nil, name: nil, radius: nil)
  #   A Meta geo target entry (region, city, or zip).
  #
  #   @param key [String] Meta geo target key/ID.
  #
  #   @param country [String, nil] Country code for this entry.
  #
  #   @param name [String, nil] Display name.
  #
  #   @param radius [Integer, nil] Radius in miles (cities only).
end

Instance Attribute Details

#countryString?

Country code for this entry.

Returns:

  • (String, nil)


1247
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1247

optional :country, String, nil?: true

#keyString

Meta geo target key/ID.

Returns:

  • (String)


1241
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1241

required :key, String

#nameString?

Display name.

Returns:

  • (String, nil)


1253
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1253

optional :name, String, nil?: true

#radiusInteger?

Radius in miles (cities only).

Returns:

  • (Integer, nil)


1259
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1259

optional :radius, Integer, nil?: true