pub struct TrackingTag {
pub id: String,
pub name: String,
pub platform: Platform,
pub kind: Kind,
pub status: Status,
pub code: Option<String>,
pub last_fired_time: Option<Option<i32>>,
pub is_unavailable: Option<bool>,
pub installed: Option<bool>,
pub creation_time: Option<i32>,
pub owner_business_id: Option<Option<String>>,
pub owner_ad_account_id: Option<String>,
}Expand description
TrackingTag : A platform measurement tag — the thing you create, install on a website, send events to, and target ads against. On Meta this is a Pixel (kind: pixel). The shape is platform-neutral so other platforms (Pinterest Tag, LinkedIn Insight Tag, etc.) can be added without changing the contract; platform-specific fields are simply absent where a platform has no equivalent. Returned by listTrackingTags, createTrackingTag, getTrackingTag, and updateTrackingTag.
Fields§
§id: StringPlatform-native tag id. Meta: numeric pixel id, as a string.
name: String§platform: Platform§kind: KindPlatform-native flavor of the tag (Meta: pixel).
status: Statusinactive when the platform reports the tag as broken/unavailable.
code: Option<String>The base-code <script> snippet to install on the site. Meta only; populated by getTrackingTag, omitted from the list view.
last_fired_time: Option<Option<i32>>Unix seconds of the last event the tag received, or null if it never fired. The practical "is it installed and working" signal.
Whether the tag is in a broken/unavailable state (Meta is_unavailable).
installed: Option<bool>Convenience flag derived from lastFiredTime — has the tag ever fired.
creation_time: Option<i32>Unix seconds the tag was created.
owner_business_id: Option<Option<String>>Business Manager id that owns the tag, or null when the tag lives on a personal (non-BM) ad account — such tags can’t be shared with other ad accounts.
owner_ad_account_id: Option<String>Ad account id (act_...) that owns the tag, when reported.
Implementations§
Source§impl TrackingTag
impl TrackingTag
Sourcepub fn new(
id: String,
name: String,
platform: Platform,
kind: Kind,
status: Status,
) -> TrackingTag
pub fn new( id: String, name: String, platform: Platform, kind: Kind, status: Status, ) -> TrackingTag
A platform measurement tag — the thing you create, install on a website, send events to, and target ads against. On Meta this is a Pixel (kind: pixel). The shape is platform-neutral so other platforms (Pinterest Tag, LinkedIn Insight Tag, etc.) can be added without changing the contract; platform-specific fields are simply absent where a platform has no equivalent. Returned by listTrackingTags, createTrackingTag, getTrackingTag, and updateTrackingTag.
Trait Implementations§
Source§impl Clone for TrackingTag
impl Clone for TrackingTag
Source§fn clone(&self) -> TrackingTag
fn clone(&self) -> TrackingTag
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackingTag
impl Debug for TrackingTag
Source§impl Default for TrackingTag
impl Default for TrackingTag
Source§fn default() -> TrackingTag
fn default() -> TrackingTag
Source§impl<'de> Deserialize<'de> for TrackingTag
impl<'de> Deserialize<'de> for TrackingTag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TrackingTag
impl PartialEq for TrackingTag
Source§fn eq(&self, other: &TrackingTag) -> bool
fn eq(&self, other: &TrackingTag) -> bool
self and other values to be equal, and is used by ==.