Class: WhopSDK::Models::AdCampaignListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/whop_sdk/models/ad_campaign_list_params.rb,
sig/whop_sdk/models/ad_campaign_list_params.rbs

Overview

See Also:

  • WhopSDK::Resources::AdCampaigns#list

Defined Under Namespace

Modules: Direction, Order, Status

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(account_id: nil, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, query: nil, stats_from: nil, stats_to: nil, status: nil, time_zone: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see WhopSDK::Models::AdCampaignListParams for more details.

Parameters:

  • account_id (String) (defaults to: nil)

    The account the campaigns belong to. Defaults to the account-scoped key's own ac

  • after (String) (defaults to: nil)

    Cursor to fetch the page after (from page_info.end_cursor).

  • before (String) (defaults to: nil)

    Cursor to fetch the page before (from page_info.start_cursor).

  • created_after (String) (defaults to: nil)

    Only return campaigns created after this timestamp.

  • created_before (String) (defaults to: nil)

    Only return campaigns created before this timestamp.

  • direction (Symbol, WhopSDK::Models::AdCampaignListParams::Direction) (defaults to: nil)

    The sort direction. Defaults to desc.

  • first (Integer) (defaults to: nil)

    The number of campaigns to return.

  • last (Integer) (defaults to: nil)

    The number of campaigns to return from the end of the range.

  • order (Symbol, WhopSDK::Models::AdCampaignListParams::Order) (defaults to: nil)

    The field to sort by. Defaults to created_at. Stat columns (spend, impressions,

  • query (String) (defaults to: nil)

    Filter campaigns by a title or ID substring.

  • stats_from (String) (defaults to: nil)

    Start of the stats window. Defaults to all-time.

  • stats_to (String) (defaults to: nil)

    End of the stats window. Defaults to now.

  • status (Symbol, WhopSDK::Models::AdCampaignListParams::Status) (defaults to: nil)

    Only return campaigns with this status.

  • time_zone (String) (defaults to: nil)

    IANA timezone (e.g. America/New_York) the stats window is interpreted in. Bare s

  • request_options (WhopSDK::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 100

Instance Attribute Details

#account_idString?

The account the campaigns belong to. Defaults to the account-scoped key's own account.

Parameters:

  • (String)

Returns:

  • (String, nil)


15
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 15

optional :account_id, String

#afterString?

Cursor to fetch the page after (from page_info.end_cursor).

Parameters:

  • (String)

Returns:

  • (String, nil)


21
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 21

optional :after, String

#beforeString?

Cursor to fetch the page before (from page_info.start_cursor).

Parameters:

  • (String)

Returns:

  • (String, nil)


27
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 27

optional :before, String

#created_afterString?

Only return campaigns created after this timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


33
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 33

optional :created_after, String

#created_beforeString?

Only return campaigns created before this timestamp.

Parameters:

  • (String)

Returns:

  • (String, nil)


39
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 39

optional :created_before, String

#directionSymbol, ...

The sort direction. Defaults to desc.



45
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 45

optional :direction, enum: -> { WhopSDK::AdCampaignListParams::Direction }

#firstInteger?

The number of campaigns to return.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


51
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 51

optional :first, Integer

#lastInteger?

The number of campaigns to return from the end of the range.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


57
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 57

optional :last, Integer

#orderSymbol, ...

The field to sort by. Defaults to created_at. Stat columns (spend, impressions, …) rank over the stats_from/stats_to window across the whole list, not just the current page. results, cost_per_result and return_on_ad_spend rank by the same Whop pixel-attributed values the response reports.



66
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 66

optional :order, enum: -> { WhopSDK::AdCampaignListParams::Order }

#queryString?

Filter campaigns by a title or ID substring.

Parameters:

  • (String)

Returns:

  • (String, nil)


72
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 72

optional :query, String

#stats_fromString?

Start of the stats window. Defaults to all-time.

Parameters:

  • (String)

Returns:

  • (String, nil)


78
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 78

optional :stats_from, String

#stats_toString?

End of the stats window. Defaults to now.

Parameters:

  • (String)

Returns:

  • (String, nil)


84
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 84

optional :stats_to, String

#statusSymbol, ...

Only return campaigns with this status.



90
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 90

optional :status, enum: -> { WhopSDK::AdCampaignListParams::Status }

#time_zoneString?

IANA timezone (e.g. America/New_York) the stats window is interpreted in. Bare stats_from/stats_to dates resolve to day boundaries on this clock. Defaults to UTC.

Parameters:

  • (String)

Returns:

  • (String, nil)


98
# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 98

optional :time_zone, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/whop_sdk/models/ad_campaign_list_params.rb', line 141

Instance Method Details

#to_hash{

Returns:

  • ({)


106
# File 'sig/whop_sdk/models/ad_campaign_list_params.rbs', line 106

def to_hash: -> {