/*
 * 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.1
 * Contact: support@zernio.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetAdAnalytics200ResponseAnalyticsDailyInner {
    #[serde(rename = "spend", skip_serializing_if = "Option::is_none")]
    pub spend: Option<f64>,
    #[serde(rename = "impressions", skip_serializing_if = "Option::is_none")]
    pub impressions: Option<i32>,
    #[serde(rename = "reach", skip_serializing_if = "Option::is_none")]
    pub reach: Option<i32>,
    #[serde(rename = "clicks", skip_serializing_if = "Option::is_none")]
    pub clicks: Option<i32>,
    /// Click-through rate (%)
    #[serde(rename = "ctr", skip_serializing_if = "Option::is_none")]
    pub ctr: Option<f64>,
    /// Cost per click
    #[serde(rename = "cpc", skip_serializing_if = "Option::is_none")]
    pub cpc: Option<f64>,
    /// Cost per 1000 impressions
    #[serde(rename = "cpm", skip_serializing_if = "Option::is_none")]
    pub cpm: Option<f64>,
    #[serde(rename = "engagement", skip_serializing_if = "Option::is_none")]
    pub engagement: Option<i32>,
    /// Present on individual ads only, not on campaign aggregations
    #[serde(rename = "lastSyncedAt", skip_serializing_if = "Option::is_none")]
    pub last_synced_at: Option<String>,
    #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
}

impl GetAdAnalytics200ResponseAnalyticsDailyInner {
    pub fn new() -> GetAdAnalytics200ResponseAnalyticsDailyInner {
        GetAdAnalytics200ResponseAnalyticsDailyInner {
            spend: None,
            impressions: None,
            reach: None,
            clicks: None,
            ctr: None,
            cpc: None,
            cpm: None,
            engagement: None,
            last_synced_at: None,
            date: None,
        }
    }
}
