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

Ad referral fields

This commit is contained in:
Alex Lushpai 2022-01-14 15:40:35 +03:00 committed by GitHub
commit 1fc20f8bb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,24 @@ type Referral struct {
Source string `json:"source"` Source string `json:"source"`
// The identifier dor the referral // The identifier dor the referral
Type string `json:"type"` 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. // Sender is who the message was sent from.