/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema). Request ids: responses carry an X-Request-Id header with the id we log the request under. Quote it when reporting a problem. A valid x-request-id you send is reused as that id.
*
* The version of the OpenAPI document: 1.104.0
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// BoostPostRequestPlatformSpecificData : Platform-specific options. The platform is derived from `accountId`; sending options for a different platform returns a 400. LinkedIn (campaign bidding and delivery controls) and Meta (the bid trio) have options today. **Meta**: `bidStrategy`, `bidAmount` and `roasAverageFloor` may be sent here instead of at the root, which is the preferred home going forward. Sending the bid fields in BOTH places returns a 400 (`mutually_exclusive_fields`).
/// Platform-specific options. The platform is derived from `accountId`; sending options for a different platform returns a 400. LinkedIn (campaign bidding and delivery controls) and Meta (the bid trio) have options today. **Meta**: `bidStrategy`, `bidAmount` and `roasAverageFloor` may be sent here instead of at the root, which is the preferred home going forward. Sending the bid fields in BOTH places returns a 400 (`mutually_exclusive_fields`).
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum BoostPostRequestPlatformSpecificData {
LinkedInAdsPlatformData(Box<models::LinkedInAdsPlatformData>),
MetaAdsPlatformData(Box<models::MetaAdsPlatformData>),
}
impl Default for BoostPostRequestPlatformSpecificData {
fn default() -> Self {
Self::LinkedInAdsPlatformData(Default::default())
}
}
/// Campaign cost model (billing event). Defaults to `CPM`. Required when `unitCost` is set so the manual bid applies to an explicit cost model.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CostType {
#[serde(rename = "CPM")]
Cpm,
#[serde(rename = "CPC")]
Cpc,
#[serde(rename = "CPV")]
Cpv,
}
impl Default for CostType {
fn default() -> CostType {
Self::Cpm
}
}
/// How LinkedIn rotates creatives within the campaign. Defaults to `OPTIMIZED`.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum CreativeSelection {
#[serde(rename = "OPTIMIZED")]
Optimized,
#[serde(rename = "ROUND_ROBIN")]
RoundRobin,
}
impl Default for CreativeSelection {
fn default() -> CreativeSelection {
Self::Optimized
}
}