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

/// AdCreative : Platform-specific creative data. Fields vary by platform.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AdCreative {
    /// Primary thumbnail/image URL
    #[serde(rename = "thumbnailUrl", skip_serializing_if = "Option::is_none")]
    pub thumbnail_url: Option<String>,
    /// Alternative image URL
    #[serde(rename = "imageUrl", skip_serializing_if = "Option::is_none")]
    pub image_url: Option<String>,
    /// All media URLs for this ad (carousel images, multiple assets). Populated for Meta (carousel child_attachments), Google Ads (responsive display marketing_images), and LinkedIn (multi-image posts).
    #[serde(rename = "mediaUrls", skip_serializing_if = "Option::is_none")]
    pub media_urls: Option<Vec<String>>,
    /// Ad copy/text
    #[serde(rename = "body", skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// Google Ads headline
    #[serde(rename = "googleHeadline", skip_serializing_if = "Option::is_none")]
    pub google_headline: Option<String>,
    /// Google Ads description
    #[serde(rename = "googleDescription", skip_serializing_if = "Option::is_none")]
    pub google_description: Option<String>,
    /// Destination URL
    #[serde(rename = "linkUrl", skip_serializing_if = "Option::is_none")]
    pub link_url: Option<String>,
    #[serde(rename = "pinterestImageUrl", skip_serializing_if = "Option::is_none")]
    pub pinterest_image_url: Option<String>,
    #[serde(rename = "pinterestTitle", skip_serializing_if = "Option::is_none")]
    pub pinterest_title: Option<String>,
    #[serde(
        rename = "pinterestDescription",
        skip_serializing_if = "Option::is_none"
    )]
    pub pinterest_description: Option<String>,
}

impl AdCreative {
    /// Platform-specific creative data. Fields vary by platform.
    pub fn new() -> AdCreative {
        AdCreative {
            thumbnail_url: None,
            image_url: None,
            media_urls: None,
            body: None,
            google_headline: None,
            google_description: None,
            link_url: None,
            pinterest_image_url: None,
            pinterest_title: None,
            pinterest_description: None,
        }
    }
}
