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

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

Overview

See Also:

Defined Under Namespace

Classes: City, Region, Zip

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(key:, country: nil, name: nil, radius: nil) ⇒ Object

A Meta geo target entry (region, city, or zip).

Parameters:

  • key (String)

    Meta geo target key/ID.

  • country (String, nil) (defaults to: nil)

    Country code for this entry.

  • name (String, nil) (defaults to: nil)

    Display name.

  • radius (Integer, nil) (defaults to: nil)

    Radius in miles (cities only).



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

Instance Attribute Details

#citiesArray<WhopSDK::Models::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::City>?

City targets.



1185
1186
1187
1188
1189
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1185

optional :cities,
-> {
  WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::City]
},
nil?: true

#countriesArray<String>?

ISO 3166-1 alpha-2 country codes.

Returns:

  • (Array<String>, nil)


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

optional :countries, WhopSDK::Internal::Type::ArrayOf[String], nil?: true

#location_typesArray<String>?

Location types (home, recent, travel_in).

Returns:

  • (Array<String>, nil)


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

optional :location_types, WhopSDK::Internal::Type::ArrayOf[String], nil?: true

#regionsArray<WhopSDK::Models::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::Region>?

Region/state targets.



1207
1208
1209
1210
1211
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1207

optional :regions,
-> {
  WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::Region]
},
nil?: true

#zipsArray<WhopSDK::Models::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::Zip>?

Zip/postal code targets.



1217
1218
1219
1220
1221
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 1217

optional :zips,
-> {
  WhopSDK::Internal::Type::ArrayOf[WhopSDK::AdGroupUpdateParams::PlatformConfig::Meta::GeoLocations::Zip]
},
nil?: true