1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateCampaignIn {
/// Account is the provider ad-account this campaign runs on (Meta act_<id>). Optional.
#[serde(rename = "account", skip_serializing_if = "Option::is_none")]
pub account: Option<String>,
/// Budget is the campaign budget in MINOR units (cents). Negative values clamp to 0.
#[serde(rename = "budget", skip_serializing_if = "Option::is_none")]
pub budget: Option<i32>,
/// Name is the campaign's display label. Required; trimmed and bounded to 1024 bytes.
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Objective is the campaign goal as the provider names it. Optional, bounded to 1024 bytes.
#[serde(rename = "objective", skip_serializing_if = "Option::is_none")]
pub objective: Option<String>,
/// Platform is the ad network: meta, google, tiktok or x. Empty defaults to meta.
#[serde(rename = "platform", skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
/// Spend is the amount spent so far in MINOR units (cents). Negative values clamp to 0.
#[serde(rename = "spend", skip_serializing_if = "Option::is_none")]
pub spend: Option<i32>,
/// Status is the lifecycle state: draft, active, paused or completed. Empty defaults to draft.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
impl UpdateCampaignIn {
pub fn new() -> UpdateCampaignIn {
UpdateCampaignIn {
account: None,
budget: None,
name: None,
objective: None,
platform: None,
spend: None,
status: None,
}
}
}