fields_by_objective = [ # Acquisition { "objective": "Conversions", "metrics": ["Spend", "U Custom Conv", "CP U Custom Conv", "Conversions", "CP Conversion", "Landing Page Views", "CP Landing Page Views", "Start Date", "End Date"] }, { "objective": "Leads", "metrics": ["Spend", "Leads", "CP Lead", "Conversions", "CP Conversion", "U Clicks", "CP U Click", "Start Date", "End Date"] }, # Consumption { "objective": "Listeners", "metrics": ["Spend", "Streams", "CP Stream", "U Custom Conv", "CP U Custom Conv", "U Conversions", "CP U Conversion", "Start Date", "End Date"] }, { "objective": "Sales", "metrics": ["Spend", "Sales", "CP Sale", "U Custom Conv", "CP U Custom Conv", "U Conversions", "CP U Conversion", "Start Date", "End Date"] }, { "objective": "Streams", "metrics": ["Spend", "Streams", "CP Stream", "U Custom Conv", "CP U Custom Conv", "U Conversions", "CP U Conversion", "Start Date", "End Date"] }, # Engagement { "objective": "Brand Awareness", "metrics": ["Spend", "Engagement", "CP Engagement", "Reach", "CPM Reach", "Impressions", "CPM", "Start Date", "End Date"] }, { "objective": "Clicks", "metrics": ["Spend", "Clicks", "CP Click", "CTR", "U Outbound Clicks", "CP U Outbound Clicks", "U Outbound CTR", "Start Date", "End Date"] }, { "objective": "Impressions", "metrics": ["Spend", "Impressions", "CPM", "Reach", "CPM Reach", "Engagement", "CP Engagement", "Start Date", "End Date"] }, { "objective": "Reach", "metrics": ["Spend", "Reach", "CPM Reach", "Impressions", "CPM Reach", "Frequency", "Start Date", "End Date"] }, { "objective": "Reactions", "metrics": ["Spend", "Engagement", "CP Engagement", "Shares", "CP Share", "Reactions", "CP Reaction", "Start Date", "End Date"] }, { "objective": "Thruplays", "metrics": ["Spend", "Thruplays", "CP Thruplay", "Video Views", "CP Video View", "Video 50%% Watched", "CP Video 50%% Watched", "Start Date", "End Date"] }, { "objective": "Traffic", "metrics": ["Spend", "U Outbound Clicks", "CP U Outbound Click", "Landing Page Views", "CP Landing Page Views", "Impressions", "CPM", "Start Date", "End Date"] }, { "objective": "Video Views", "metrics": ["Spend", "Video Views", "CP Video View", "Video 50%% Watched", "CP Video 50%% Watched", "Video 95%% Watched", "CP Video 95%% Watched", "Start Date", "End Date"] } ] all_fields = [ {"id": 1, "name": "App Installs", "type": "advertising", "format": "integer"}, {"id": 3, "name": "Leads", "type": "advertising", "format": "integer"}, {"id": 4, "name": "App Registrations", "type": "advertising", "format": "integer"}, {"id": 6, "name": "CP Lead", "type": "advertising", "format": "currency"}, {"id": 7, "name": "U New Sessions", "type": "advertising", "format": "integer"}, {"id": 8, "name": "Conversions", "type": "advertising", "format": "integer"}, {"id": 9, "name": "CP U New Session", "type": "advertising", "format": "currency"}, {"id": 10, "name": "Sales", "type": "finance", "format": "integer"}, {"id": 11, "name": "Streams", "type": "streaming", "format": "integer"}, {"id": 12, "name": "CP Sale", "type": "finance", "format": "currency"}, {"id": 13, "name": "CP Stream", "type": "streaming", "format": "currency"}, {"id": 14, "name": "U Custom Conv", "type": "advertising", "format": "integer"}, {"id": 15, "name": "CP U Custom Conv", "type": "advertising", "format": "currency"}, {"id": 16, "name": "U Conversions", "type": "advertising", "format": "integer"}, {"id": 17, "name": "CP U Conversion", "type": "advertising", "format": "currency"}, {"id": 18, "name": "Spend", "type": "finance", "format": "currency"}, {"id": 19, "name": "Clicks", "type": "advertising", "format": "integer"}, {"id": 21, "name": "Thruplays", "type": "video", "format": "integer"}, {"id": 22, "name": "CP Click", "type": "advertising", "format": "currency"}, {"id": 24, "name": "CP Thruplay", "type": "video", "format": "currency"}, {"id": 25, "name": "CP U Outbound Click", "type": "advertising", "format": "currency"}, {"id": 26, "name": "Reach", "type": "advertising", "format": "integer"}, {"id": 27, "name": "CTR", "type": "advertising", "format": "percentage"}, {"id": 29, "name": "Followers / Subscribers", "type": "advertising", "format": "integer"}, {"id": 30, "name": "Shares", "type": "advertising", "format": "integer"}, {"id": 31, "name": "Video Views", "type": "video", "format": "integer"}, {"id": 32, "name": "Landing Page Views", "type": "advertising", "format": "integer"}, {"id": 33, "name": "U Outbound Clicks", "type": "advertising", "format": "integer"}, {"id": 34, "name": "CP Follower / Sub", "type": "advertising", "format": "currency"}, {"id": 34, "name": "CPM Reach", "type": "advertising", "format": "currency"}, {"id": 36, "name": "CP Share", "type": "advertising", "format": "currency"}, {"id": 37, "name": "CP Video View", "type": "video", "format": "currency"}, {"id": 38, "name": "CP Landing Page Views", "type": "advertising", "format": "currency"}, {"id": 39, "name": "CP U Outbound Clicks", "type": "advertising", "format": "currency"}, {"id": 40, "name": "Engagement", "type": "advertising", "format": "integer"}, {"id": 41, "name": "U Clicks", "type": "advertising", "format": "integer"}, {"id": 42, "name": "Frequency", "type": "advertising", "format": "rate"}, {"id": 43, "name": "Reactions", "type": "advertising", "format": "integer"}, {"id": 44, "name": "Video 50%% Watched", "type": "advertising", "format": "integer"}, {"id": 45, "name": "Impressions", "type": "advertising", "format": "integer"}, {"id": 46, "name": "Video 95%% Watched", "type": "video", "format": "integer"}, {"id": 47, "name": "U Outbound CTR", "type": "advertising", "format": "percentage"}, {"id": 48, "name": "CP Engagement", "type": "advertising", "format": "currency"}, {"id": 49, "name": "CP U Click", "type": "advertising", "format": "currency"}, {"id": 50, "name": "CP Reaction", "type": "advertising", "format": "currency"}, {"id": 51, "name": "CP Video 50%% Watched", "type": "video", "format": "currency"}, {"id": 52, "name": "CPM", "type": "advertising", "format": "currency"}, {"id": 53, "name": "CP Video 95%% Watched", "type": "video", "format": "currency"}, {"id": 54, "name": "Start Date", "type": "entity", "format": "date"}, {"id": 55, "name": "End Date", "type": "entity", "format": "date"}, {"id": 56, "name": "CP Conversion", "type": "advertising", "format": "currency"}, {"id": 57, "name": "Budget", "type": "finance", "format": "currency"}, {"id": 58, "name": "Lean Forward Streams", "type": "streaming", "format": "integer"}, {"id": 59, "name": "Lean Back Streams", "type": "streaming", "format": "integer"}, {"id": 60, "name": "CP App Install", "type": "advertising", "format": "currency"}, {"id": 61, "name": "CP App Registration", "type": "advertising", "format": "currency"}, {"id": 62, "name": "New Sessions", "type": "advertising", "format": "integer"}, {"id": 63, "name": "CP New Session", "type": "advertising", "format": "currency"}, {"id": 65, "name": "U CTR", "type": "advertising", "format": "percentage"}, {"id": 66, "name": "Comments", "type": "advertising", "format": "integer"}, {"id": 67, "name": "CP Comment", "type": "advertising", "format": "currency"}, {"id": 68, "name": "Video Avg %% Watched", "type": "video", "format": "percentage"}, {"id": 69, "name": "Video 25%% Watched", "type": "video", "format": "integer"}, {"id": 69, "name": "Video 75%% Watched", "type": "video", "format": "integer"}, {"id": 70, "name": "Age", "type": "audience", "format": "age_ranges"}, {"id": 71, "name": "Gender", "type": "audience", "format": "genders"}, {"id": 72, "name": "Age & Gender", "type": "audience", "format": "age_genders"}, ]