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

/// CreateStandaloneAdRequestTracking : Meta only. Attaches pixel measurement to the ad regardless of the optimization goal (the \"Website events\" tracking row in Ads Manager). `pixelId` becomes the ad's `tracking_specs` (offsite_conversion + fb_pixel); `urlTags` becomes the ad's `url_tags` (click-tracking query params). Applied to every ad on the legacy single-creative and multi-creative shapes.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CreateStandaloneAdRequestTracking {
    /// Meta Pixel ID to attach for offsite-conversion measurement.
    #[serde(rename = "pixelId", skip_serializing_if = "Option::is_none")]
    pub pixel_id: Option<String>,
    /// Click-URL params appended to the ad's destination as `url_tags` (e.g. utm_source).
    #[serde(rename = "urlTags", skip_serializing_if = "Option::is_none")]
    pub url_tags: Option<Vec<models::UpdateAdTrackingTagsRequestUrlTagsInner>>,
}

impl CreateStandaloneAdRequestTracking {
    /// Meta only. Attaches pixel measurement to the ad regardless of the optimization goal (the \"Website events\" tracking row in Ads Manager). `pixelId` becomes the ad's `tracking_specs` (offsite_conversion + fb_pixel); `urlTags` becomes the ad's `url_tags` (click-tracking query params). Applied to every ad on the legacy single-creative and multi-creative shapes.
    pub fn new() -> CreateStandaloneAdRequestTracking {
        CreateStandaloneAdRequestTracking {
            pixel_id: None,
            url_tags: None,
        }
    }
}
