Class: WhopSDK::Models::AdCampaignUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::AdCampaignUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/whop_sdk/models/ad_campaign_update_params.rb,
sig/whop_sdk/models/ad_campaign_update_params.rbs
Overview
Defined Under Namespace
Modules: BidType, BudgetOptimization, Status
Instance Attribute Summary collapse
-
#bid_type ⇒ Symbol, ...
CBO bid strategy: minimum_cost (lowest cost), average_target (cost cap), or maximum_target (bid cap).
-
#budget_amount ⇒ Float?
The campaign budget, in the account's currency.
-
#budget_optimization ⇒ Symbol, ...
Which level owns the budget — the campaign (CBO) or each ad group (ABO).
-
#ends_at ⇒ String?
Campaign schedule end (ISO 8601).
- #id ⇒ String
-
#starts_at ⇒ String?
Campaign schedule start (ISO 8601).
-
#status ⇒ Symbol, ...
Set to active to launch a draft campaign (moderates and pushes it live).
-
#title ⇒ String?
The name of the campaign.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, bid_type: nil, budget_amount: nil, budget_optimization: nil, ends_at: nil, starts_at: nil, status: nil, title: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see AdCampaignUpdateParams 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(id:, bid_type: nil, budget_amount: nil, budget_optimization: nil, ends_at: nil, starts_at: nil, status: nil, title: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see WhopSDK::Models::AdCampaignUpdateParams for more details.
|
|
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 64
|
Instance Attribute Details
#bid_type ⇒ Symbol, ...
CBO bid strategy: minimum_cost (lowest cost), average_target (cost cap), or maximum_target (bid cap). Switching to minimum_cost clears the cap amounts stored on the campaign's ad groups. CBO only.
21 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 21 optional :bid_type, enum: -> { WhopSDK::AdCampaignUpdateParams::BidType } |
#budget_amount ⇒ Float?
The campaign budget, in the account's currency. Interpreted as daily or lifetime per the campaign's existing budget type.
28 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 28 optional :budget_amount, Float |
#budget_optimization ⇒ Symbol, ...
Which level owns the budget — the campaign (CBO) or each ad group (ABO). Only changeable before the campaign is live on Meta; switching to ad_campaign requires budget_amount in the same request, and switching to ad_group clears the campaign budget.
37 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 37 optional :budget_optimization, enum: -> { WhopSDK::AdCampaignUpdateParams::BudgetOptimization } |
#ends_at ⇒ String?
Campaign schedule end (ISO 8601). CBO only.
43 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 43 optional :ends_at, String |
#id ⇒ String
13 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 13 required :id, String |
#starts_at ⇒ String?
Campaign schedule start (ISO 8601). CBO only.
49 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 49 optional :starts_at, String |
#status ⇒ Symbol, ...
Set to active to launch a draft campaign (moderates and pushes it live). Live-campaign pause and resume use the pause and unpause actions.
56 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 56 optional :status, enum: -> { WhopSDK::AdCampaignUpdateParams::Status } |
#title ⇒ String?
The name of the campaign.
62 |
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 62 optional :title, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/whop_sdk/models/ad_campaign_update_params.rb', line 96
|
Instance Method Details
#to_hash ⇒ {
68 |
# File 'sig/whop_sdk/models/ad_campaign_update_params.rbs', line 68
def to_hash: -> {
|