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

/// UpdateAdTrackingTagsRequestCreative : Meta only. OPTIONAL — omit to preserve the existing creative verbatim (default). Provide it only to rebuild the creative explicitly, or for creatives whose object_story_spec Meta strips.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateAdTrackingTagsRequestCreative {
    #[serde(rename = "headline")]
    pub headline: String,
    #[serde(rename = "body")]
    pub body: String,
    #[serde(rename = "callToAction")]
    pub call_to_action: String,
    #[serde(rename = "linkUrl")]
    pub link_url: String,
    #[serde(rename = "imageUrl")]
    pub image_url: String,
    #[serde(rename = "videoUrl", skip_serializing_if = "Option::is_none")]
    pub video_url: Option<String>,
}

impl UpdateAdTrackingTagsRequestCreative {
    /// Meta only. OPTIONAL — omit to preserve the existing creative verbatim (default). Provide it only to rebuild the creative explicitly, or for creatives whose object_story_spec Meta strips.
    pub fn new(
        headline: String,
        body: String,
        call_to_action: String,
        link_url: String,
        image_url: String,
    ) -> UpdateAdTrackingTagsRequestCreative {
        UpdateAdTrackingTagsRequestCreative {
            headline,
            body,
            call_to_action,
            link_url,
            image_url,
            video_url: None,
        }
    }
}
