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
61
/*
* 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};
/// AdEngagementCounts : The single `engagement` total split into the interactions behind it. Note that `engagement` is not the sum of these: Meta's own `post_engagement` and `page_engagement` totals already contain the individual interactions, and all of them are counted into `engagement`. Use these fields when you need a specific interaction, and `engagement` only as the coarse total it has always been. Meta-only; other platforms leave these at 0.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AdEngagementCounts {
/// Meta's own post-engagement total (`post_engagement`).
#[serde(rename = "postEngagement", skip_serializing_if = "Option::is_none")]
pub post_engagement: Option<i32>,
/// Meta's own page-engagement total (`page_engagement`).
#[serde(rename = "pageEngagement", skip_serializing_if = "Option::is_none")]
pub page_engagement: Option<i32>,
/// Reactions on the ad's post (`post_reaction`).
#[serde(rename = "reactions", skip_serializing_if = "Option::is_none")]
pub reactions: Option<i32>,
/// Comments on the ad's post.
#[serde(rename = "comments", skip_serializing_if = "Option::is_none")]
pub comments: Option<i32>,
/// Shares of the ad's post. Meta reports these under the action type literally named `post`.
#[serde(rename = "shares", skip_serializing_if = "Option::is_none")]
pub shares: Option<i32>,
/// Saves of the ad's post (`onsite_conversion.post_save`).
#[serde(rename = "saves", skip_serializing_if = "Option::is_none")]
pub saves: Option<i32>,
/// New Page likes attributed to the ad (`like`).
#[serde(rename = "pageLikes", skip_serializing_if = "Option::is_none")]
pub page_likes: Option<i32>,
/// 3-second video views (`video_view`). For completion-based counts use `videoThruplayWatchedActions`.
#[serde(rename = "videoViews", skip_serializing_if = "Option::is_none")]
pub video_views: Option<i32>,
/// Attributed link clicks (`link_click`). This is the attribution-window count, which differs from the in-session count in the sibling `inlineLinkClicks` field.
#[serde(rename = "linkClicks", skip_serializing_if = "Option::is_none")]
pub link_clicks: Option<i32>,
}
impl AdEngagementCounts {
/// The single `engagement` total split into the interactions behind it. Note that `engagement` is not the sum of these: Meta's own `post_engagement` and `page_engagement` totals already contain the individual interactions, and all of them are counted into `engagement`. Use these fields when you need a specific interaction, and `engagement` only as the coarse total it has always been. Meta-only; other platforms leave these at 0.
pub fn new() -> AdEngagementCounts {
AdEngagementCounts {
post_engagement: None,
page_engagement: None,
reactions: None,
comments: None,
shares: None,
saves: None,
page_likes: None,
video_views: None,
link_clicks: None,
}
}
}