Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 2.11 KB

ApplicationCampaignAnalytics.md

File metadata and controls

39 lines (32 loc) · 2.11 KB

TalonOne::ApplicationCampaignAnalytics

Properties

Name Type Description Notes
start_time DateTime The start of the aggregation time frame in UTC.
end_time DateTime The end of the aggregation time frame in UTC.
campaign_id Integer The ID of the campaign.
campaign_name String The name of the campaign.
campaign_tags Array<String> A list of tags for the campaign.
campaign_state String The state of the campaign. Note: A disabled or archived campaign is not evaluated for rules or coupons.
total_revenue AnalyticsDataPointWithTrendAndInfluencedRate [optional]
sessions_count AnalyticsDataPointWithTrendAndInfluencedRate [optional]
avg_items_per_session AnalyticsDataPointWithTrendAndUplift [optional]
avg_session_value AnalyticsDataPointWithTrendAndUplift [optional]
total_discounts AnalyticsDataPointWithTrend [optional]
coupons_count AnalyticsDataPointWithTrend [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::ApplicationCampaignAnalytics.new(start_time: 2024-02-01T00:00Z,
                                 end_time: null,
                                 campaign_id: 1,
                                 campaign_name: Summer promotions,
                                 campaign_tags: [summer],
                                 campaign_state: running,
                                 total_revenue: null,
                                 sessions_count: null,
                                 avg_items_per_session: null,
                                 avg_session_value: null,
                                 total_discounts: null,
                                 coupons_count: null)