1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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};
/// LinkedInAdsPlatformDataSpotlight : POST /v1/ads/create only. Dynamic Spotlight Ad personalized with the viewer's profile photo. Supported goals: traffic, awareness. logoUrl and organizationName default to the Company Page's; set them explicitly if LinkedIn rejects the create with a 404. Mutually exclusive with the other creative sources.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LinkedInAdsPlatformDataSpotlight {
#[serde(rename = "headline")]
pub headline: String,
/// Mutually exclusive with backgroundImageUrl.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Button label text.
#[serde(rename = "callToAction")]
pub call_to_action: String,
#[serde(rename = "landingUrl")]
pub landing_url: String,
#[serde(rename = "logoUrl", skip_serializing_if = "Option::is_none")]
pub logo_url: Option<String>,
#[serde(rename = "organizationName", skip_serializing_if = "Option::is_none")]
pub organization_name: Option<String>,
/// Defaults to true.
#[serde(
rename = "showMemberProfilePhoto",
skip_serializing_if = "Option::is_none"
)]
pub show_member_profile_photo: Option<bool>,
/// Custom background. Replaces the description and the profile photo.
#[serde(rename = "backgroundImageUrl", skip_serializing_if = "Option::is_none")]
pub background_image_url: Option<String>,
}
impl LinkedInAdsPlatformDataSpotlight {
/// POST /v1/ads/create only. Dynamic Spotlight Ad personalized with the viewer's profile photo. Supported goals: traffic, awareness. logoUrl and organizationName default to the Company Page's; set them explicitly if LinkedIn rejects the create with a 404. Mutually exclusive with the other creative sources.
pub fn new(
headline: String,
call_to_action: String,
landing_url: String,
) -> LinkedInAdsPlatformDataSpotlight {
LinkedInAdsPlatformDataSpotlight {
headline,
description: None,
call_to_action,
landing_url,
logo_url: None,
organization_name: None,
show_member_profile_photo: None,
background_image_url: None,
}
}
}