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,
sig/whop_sdk/models/ad_list_params.rbs
Overview
Defined Under Namespace
Modules: Direction, Order, Status
Instance Attribute Summary collapse
-
#account_id ⇒ String?
The account the ads belong to.
-
#ad_campaign_id ⇒ String?
Only return ads in this ad campaign.
-
#ad_group_id ⇒ String?
Only return ads in this ad group.
-
#after ⇒ String?
Cursor to fetch the page after (from page_info.end_cursor).
-
#before ⇒ String?
Cursor to fetch the page before (from page_info.start_cursor).
-
#created_after ⇒ String?
Only return ads created after this timestamp.
-
#created_before ⇒ String?
Only return ads created before this timestamp.
-
#direction ⇒ Symbol, ...
The sort direction.
-
#first ⇒ Integer?
The number of ads to return.
-
#last ⇒ Integer?
The number of ads to return from the end of the range.
-
#order ⇒ Symbol, ...
The field to sort by.
-
#query ⇒ String?
Filter ads by a title or ID substring.
-
#stats_from ⇒ String?
Start of the stats window.
-
#stats_to ⇒ String?
End of the stats window.
-
#status ⇒ Symbol, ...
Only return ads with this status.
-
#time_zone ⇒ String?
IANA timezone (e.g. America/New_York) the stats window is interpreted in.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(account_id: nil, ad_campaign_id: nil, ad_group_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
constructor
Some parameter documentations has been truncated, see AdListParams for more details.
- #to_hash ⇒ {
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(account_id: nil, ad_campaign_id: nil, ad_group_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::AdListParams for more details.
|
|
# File 'lib/whop_sdk/models/ad_list_params.rb', line 111
|
Instance Attribute Details
#account_id ⇒ String?
The account the ads belong to. Defaults to the account-scoped key's own account.
14 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 14 optional :account_id, String |
#ad_campaign_id ⇒ String?
Only return ads in this ad campaign.
20 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 20 optional :ad_campaign_id, String |
#ad_group_id ⇒ String?
Only return ads in this ad group.
26 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 26 optional :ad_group_id, String |
#after ⇒ String?
Cursor to fetch the page after (from page_info.end_cursor).
32 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 32 optional :after, String |
#before ⇒ String?
Cursor to fetch the page before (from page_info.start_cursor).
38 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 38 optional :before, String |
#created_after ⇒ String?
Only return ads created after this timestamp.
44 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 44 optional :created_after, String |
#created_before ⇒ String?
Only return ads created before this timestamp.
50 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 50 optional :created_before, String |
#direction ⇒ Symbol, ...
The sort direction. Defaults to desc.
56 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 56 optional :direction, enum: -> { WhopSDK::AdListParams::Direction } |
#first ⇒ Integer?
The number of ads to return.
62 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 62 optional :first, Integer |
#last ⇒ Integer?
The number of ads to return from the end of the range.
68 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 68 optional :last, Integer |
#order ⇒ Symbol, ...
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.
77 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 77 optional :order, enum: -> { WhopSDK::AdListParams::Order } |
#query ⇒ String?
Filter ads by a title or ID substring.
83 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 83 optional :query, String |
#stats_from ⇒ String?
Start of the stats window. Defaults to all-time.
89 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 89 optional :stats_from, String |
#stats_to ⇒ String?
End of the stats window. Defaults to now.
95 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 95 optional :stats_to, String |
#status ⇒ Symbol, ...
Only return ads with this status.
101 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 101 optional :status, enum: -> { WhopSDK::AdListParams::Status } |
#time_zone ⇒ String?
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.
109 |
# File 'lib/whop_sdk/models/ad_list_params.rb', line 109 optional :time_zone, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/ad_list_params.rb', line 156
|
Instance Method Details
#to_hash ⇒ {
118 |
# File 'sig/whop_sdk/models/ad_list_params.rbs', line 118
def to_hash: -> {
|