1
0
mirror of synced 2024-11-22 04:46:05 +03:00

add ad referral fields

This commit is contained in:
Maria Tyschitskaya 2022-01-13 14:50:17 +03:00
parent 3c316fdc8f
commit efc2b29474

View File

@ -78,6 +78,24 @@ type Referral struct {
Source string `json:"source"`
// The identifier dor the referral
Type string `json:"type"`
// ID of the ad
AdID string `json:"ad_id,omitempty"`
// The data containing information about the CTM ad, the user initiated the thread from.
AdsContextData AdsContextData `json:"ads_context_data,omitempty"`
}
// AdsContextData represents data containing information about the CTM ad, the user initiated the thread from.
type AdsContextData struct {
// Title of the Ad
AdTitle string `json:"ad_title"`
// Url of the image from the Ad the user is interested
PhotoURL string `json:"photo_url,omitempty"`
// Thumbnail url of the video from the ad
VideoURL string `json:"video_url,omitempty"`
// ID of the post
PostID string `json:"post_id"`
// Product ID from the Ad the user is interested
ProductID string `json:"product_id,omitempty"`
}
// Sender is who the message was sent from.