late 0.0.659

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
/*
 * Zernio API
 *
 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
 *
 * The version of the OpenAPI document: 1.0.4
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// UpdateAdSetRequestPlatformSpecificData : Platform-specific post-launch delivery settings. The platform is implied by the `platform` body param. Meta only; other platforms return 400. Unknown keys are rejected.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAdSetRequestPlatformSpecificData {
    /// Meta ad-set optimization_goal (e.g. OFFSITE_CONVERSIONS, LANDING_PAGE_VIEWS).
    #[serde(rename = "optimizationGoal", skip_serializing_if = "Option::is_none")]
    pub optimization_goal: Option<String>,
    /// Meta ad-set billing_event (e.g. IMPRESSIONS, LINK_CLICKS, THRUPLAY).
    #[serde(rename = "billingEvent", skip_serializing_if = "Option::is_none")]
    pub billing_event: Option<String>,
    /// Ad set start_time (ISO 8601).
    #[serde(rename = "startDate", skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    /// Ad set end_time (ISO 8601).
    #[serde(rename = "endDate", skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
    #[serde(rename = "promotedObject", skip_serializing_if = "Option::is_none")]
    pub promoted_object: Option<Box<models::UpdateAdSetRequestPlatformSpecificDataPromotedObject>>,
}

impl UpdateAdSetRequestPlatformSpecificData {
    /// Platform-specific post-launch delivery settings. The platform is implied by the `platform` body param. Meta only; other platforms return 400. Unknown keys are rejected.
    pub fn new() -> UpdateAdSetRequestPlatformSpecificData {
        UpdateAdSetRequestPlatformSpecificData {
            optimization_goal: None,
            billing_event: None,
            start_date: None,
            end_date: None,
            promoted_object: None,
        }
    }
}