/*
 * 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};

/// AdTreeAdSetPromotedObject : Meta promoted object for this ad set (conversion event details)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AdTreeAdSetPromotedObject {
    #[serde(rename = "custom_event_type", skip_serializing_if = "Option::is_none")]
    pub custom_event_type: Option<String>,
    #[serde(rename = "pixel_id", skip_serializing_if = "Option::is_none")]
    pub pixel_id: Option<String>,
    #[serde(rename = "page_id", skip_serializing_if = "Option::is_none")]
    pub page_id: Option<String>,
}

impl AdTreeAdSetPromotedObject {
    /// Meta promoted object for this ad set (conversion event details)
    pub fn new() -> AdTreeAdSetPromotedObject {
        AdTreeAdSetPromotedObject {
            custom_event_type: None,
            pixel_id: None,
            page_id: None,
        }
    }
}
