Skip to main content

late/models/
update_ad_request_targeting.rs

1/*
2 * Zernio API
3 *
4 * API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
5 *
6 * The version of the OpenAPI document: 1.0.1
7 * Contact: support@zernio.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// UpdateAdRequestTargeting : Meta-only. Targeting updates for other platforms are not supported after creation.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateAdRequestTargeting {
17    #[serde(rename = "ageMin", skip_serializing_if = "Option::is_none")]
18    pub age_min: Option<i32>,
19    #[serde(rename = "ageMax", skip_serializing_if = "Option::is_none")]
20    pub age_max: Option<i32>,
21    #[serde(rename = "countries", skip_serializing_if = "Option::is_none")]
22    pub countries: Option<Vec<String>>,
23    /// Interest objects from /v1/ads/interests. Each must include id and name.
24    #[serde(rename = "interests", skip_serializing_if = "Option::is_none")]
25    pub interests: Option<Vec<models::UpdateAdRequestTargetingInterestsInner>>,
26}
27
28impl UpdateAdRequestTargeting {
29    /// Meta-only. Targeting updates for other platforms are not supported after creation.
30    pub fn new() -> UpdateAdRequestTargeting {
31        UpdateAdRequestTargeting {
32            age_min: None,
33            age_max: None,
34            countries: None,
35            interests: None,
36        }
37    }
38}