Class: WhopSDK::Models::AdGroupUpdateParams::Config::Targeting

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

Overview

See Also:

Defined Under Namespace

Modules: DevicePlatform, Gender, PlacementType

Instance Attribute Summary collapse

Class Method 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(age_max: nil, age_min: nil, countries: nil, device_platforms: nil, exclude_audience_ids: nil, genders: nil, include_audience_ids: nil, interest_ids: nil, languages: nil, placement_type: nil) ⇒ Object

Audience targeting settings (demographics, geo, interests, audiences, devices).

Parameters:

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

    Maximum age for demographic targeting.

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

    Minimum age for demographic targeting.

  • countries (Array<String>, nil) (defaults to: nil)

    ISO 3166-1 alpha-2 country codes to target.

  • device_platforms (Array<Symbol, WhopSDK::Models::AdGroupUpdateParams::Config::Targeting::DevicePlatform>, nil) (defaults to: nil)

    Device platforms to target.

  • exclude_audience_ids (Array<String>, nil) (defaults to: nil)

    Platform audience IDs to exclude.

  • genders (Array<Symbol, WhopSDK::Models::AdGroupUpdateParams::Config::Targeting::Gender>, nil) (defaults to: nil)

    Genders to target.

  • include_audience_ids (Array<String>, nil) (defaults to: nil)

    Platform audience IDs to include.

  • interest_ids (Array<String>, nil) (defaults to: nil)

    Platform-specific interest IDs to target.

  • languages (Array<String>, nil) (defaults to: nil)

    Language codes to target.

  • placement_type (Symbol, WhopSDK::Models::AdGroupUpdateParams::Config::Targeting::PlacementType, nil) (defaults to: nil)

    Placement strategy for ad delivery.



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

Instance Attribute Details

#age_maxInteger?

Maximum age for demographic targeting.

Returns:

  • (Integer, nil)


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

optional :age_max, Integer, nil?: true

#age_minInteger?

Minimum age for demographic targeting.

Returns:

  • (Integer, nil)


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

optional :age_min, Integer, nil?: true

#countriesArray<String>?

ISO 3166-1 alpha-2 country codes to target.

Returns:

  • (Array<String>, nil)


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

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

#device_platformsArray<Symbol, WhopSDK::Models::AdGroupUpdateParams::Config::Targeting::DevicePlatform>?

Device platforms to target.



256
257
258
259
260
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 256

optional :device_platforms,
-> {
  WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::AdGroupUpdateParams::Config::Targeting::DevicePlatform]
},
nil?: true

#exclude_audience_idsArray<String>?

Platform audience IDs to exclude.

Returns:

  • (Array<String>, nil)


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

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

#gendersArray<Symbol, WhopSDK::Models::AdGroupUpdateParams::Config::Targeting::Gender>?

Genders to target.



272
273
274
275
276
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 272

optional :genders,
-> {
  WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::AdGroupUpdateParams::Config::Targeting::Gender]
},
nil?: true

#include_audience_idsArray<String>?

Platform audience IDs to include.

Returns:

  • (Array<String>, nil)


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

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

#interest_idsArray<String>?

Platform-specific interest IDs to target.

Returns:

  • (Array<String>, nil)


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

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

#languagesArray<String>?

Language codes to target.

Returns:

  • (Array<String>, nil)


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

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

#placement_typeSymbol, ...

Placement strategy for ad delivery.



300
301
302
# File 'lib/whop_sdk/models/ad_group_update_params.rb', line 300

optional :placement_type,
enum: -> { WhopSDK::AdGroupUpdateParams::Config::Targeting::PlacementType },
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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