CampaignInput class

Constructors

CampaignInput({String? account, int? budget, String? name, String? objective, String? platform, int? spend, String? status})
Returns a new CampaignInput instance.

Properties

account ↔ String?
Account is the provider ad-account this campaign runs on (Meta act_
getter/setter pair
budget ↔ int?
Budget is the campaign budget in MINOR units (cents). Negative values clamp to 0.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the campaign's display label. Required; trimmed and bounded to 1024 bytes.
getter/setter pair
objective ↔ String?
Objective is the campaign goal as the provider names it. Optional, bounded to 1024 bytes.
getter/setter pair
platform ↔ String?
Platform is the ad network: meta, google, tiktok or x. Empty defaults to meta.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spend ↔ int?
Spend is the amount spent so far in MINOR units (cents). Negative values clamp to 0.
getter/setter pair
status ↔ String?
Status is the lifecycle state: draft, active, paused or completed. Empty defaults to draft.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → CampaignInput?
Returns a new CampaignInput instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CampaignInput>
mapFromJson(dynamic json) → Map<String, CampaignInput>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CampaignInput>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.