Class: WhopSDK::Models::AdListParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::AdListParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/ad_list_params.rb
Overview
Defined Under Namespace
Modules: OrderBy
Instance Attribute Summary collapse
-
#ad_group_id ⇒ String?
Filter by ad group.
-
#after ⇒ String?
Returns the elements in the list that come after the specified cursor.
-
#before ⇒ String?
Returns the elements in the list that come before the specified cursor.
-
#campaign_id ⇒ String?
Filter by campaign.
-
#company_id ⇒ String?
Filter by company.
-
#created_after ⇒ Time?
Only return ads created after this timestamp.
-
#created_before ⇒ Time?
Only return ads created before this timestamp.
-
#first ⇒ Integer?
Returns the first n elements from the list.
-
#include_paused ⇒ Boolean?
When false, excludes paused ads so pagination matches the dashboard’s hide-paused toggle.
-
#last ⇒ Integer?
Returns the last n elements from the list.
-
#order_by ⇒ Symbol, ...
Columns that the listAds query can sort by.
-
#order_direction ⇒ Symbol, ...
The direction of the sort.
-
#query ⇒ String?
Case-insensitive substring match against the ad title or tag.
-
#stats_from ⇒ Time?
Start of the stats date range used when order_by is a stats column.
-
#stats_to ⇒ Time?
End of the stats date range used when order_by is a stats column.
-
#status ⇒ Symbol, ...
The status of an external ad.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(ad_group_id: nil, after: nil, before: nil, campaign_id: nil, company_id: nil, created_after: nil, created_before: nil, first: nil, include_paused: nil, last: nil, order_by: nil, order_direction: nil, query: nil, stats_from: nil, stats_to: nil, status: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see AdListParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(ad_group_id: nil, after: nil, before: nil, campaign_id: nil, company_id: nil, created_after: nil, created_before: nil, first: nil, include_paused: nil, last: nil, order_by: nil, order_direction: nil, query: nil, stats_from: nil, stats_to: nil, status: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::AdListParams for more details.
|
|
# File 'lib/whop_sdk/models/ad_list_params.rb', line 110
|
Instance Attribute Details
#ad_group_id ⇒ String?
Filter by ad group. Provide exactly one of ad_group_id, campaign_id, or company_id.
15 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 15 optional :ad_group_id, String, nil?: true |
#after ⇒ String?
Returns the elements in the list that come after the specified cursor.
21 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 21 optional :after, String, nil?: true |
#before ⇒ String?
Returns the elements in the list that come before the specified cursor.
27 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 27 optional :before, String, nil?: true |
#campaign_id ⇒ String?
Filter by campaign. Provide exactly one of ad_group_id, campaign_id, or company_id.
34 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 34 optional :campaign_id, String, nil?: true |
#company_id ⇒ String?
Filter by company. Provide exactly one of ad_group_id, campaign_id, or company_id.
41 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 41 optional :company_id, String, nil?: true |
#created_after ⇒ Time?
Only return ads created after this timestamp.
47 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 47 optional :created_after, Time, nil?: true |
#created_before ⇒ Time?
Only return ads created before this timestamp.
53 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 53 optional :created_before, Time, nil?: true |
#first ⇒ Integer?
Returns the first n elements from the list.
59 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 59 optional :first, Integer, nil?: true |
#include_paused ⇒ Boolean?
When false, excludes paused ads so pagination matches the dashboard’s hide-paused toggle.
66 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 66 optional :include_paused, WhopSDK::Internal::Type::Boolean, nil?: true |
#last ⇒ Integer?
Returns the last n elements from the list.
72 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 72 optional :last, Integer, nil?: true |
#order_by ⇒ Symbol, ...
Columns that the listAds query can sort by.
78 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 78 optional :order_by, enum: -> { WhopSDK::AdListParams::OrderBy }, nil?: true |
#order_direction ⇒ Symbol, ...
The direction of the sort.
84 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 84 optional :order_direction, enum: -> { WhopSDK::Direction }, nil?: true |
#query ⇒ String?
Case-insensitive substring match against the ad title or tag.
90 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 90 optional :query, String, nil?: true |
#stats_from ⇒ Time?
Start of the stats date range used when order_by is a stats column.
96 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 96 optional :stats_from, Time, nil?: true |
#stats_to ⇒ Time?
End of the stats date range used when order_by is a stats column.
102 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 102 optional :stats_to, Time, nil?: true |
#status ⇒ Symbol, ...
The status of an external ad.
108 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 108 optional :status, enum: -> { WhopSDK::ExternalAdStatus }, nil?: true |