Skip to content

Instantly share code, notes, and snippets.

@breezeight
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breezeight/f25c3d0aa5c18aa2234b to your computer and use it in GitHub Desktop.
Save breezeight/f25c3d0aa5c18aa2234b to your computer and use it in GitHub Desktop.
// This campaign ended 2014-10-13
// WITHOUT BY CONVS
// reportstats?actions_group_by=action_type&data_columns=['actions_28d_view']&time_increment=1&time_interval={'day_start':{'year':'2014', 'month':'10', 'day':'12'},'day_stop':{'year':'2014', 'month':'10', 'day':'20'}}&filters=[{'field':'campaign_id','type':'in','value': ['XXXXXXXX']}]
{
"date_start": "2014-10-14",
"date_stop": "2014-10-14",
"actions_28d_view": [ //---->>> No more action by_impression after the campaign ends
]
},
{
"date_start": "2014-10-15",
"date_stop": "2014-10-15",
"actions_28d_view": [
]
},
{
"date_start": "2014-10-16",
"date_stop": "2014-10-16",
"actions_28d_view": [
]
},
{
"date_start": "2014-10-17",
"date_stop": "2014-10-17",
"actions_28d_view": [
]
},
{
"date_start": "2014-10-18",
"date_stop": "2014-10-18",
"actions_28d_view": [
]
},
{
"date_start": "2014-10-19",
"date_stop": "2014-10-19",
"actions_28d_view": [
]
}
],
// WITH BY CONVS
//reportstats?actions_group_by=action_type&data_columns=['actions_28d_view_by_convs']&time_increment=1&time_interval={'day_start':{'year':'2014', 'month':'10', 'day':'13'},'day_stop':{'year':'2014', 'month':'10', 'day':'20'}}&filters=[{'field':'campaign_id','type':'in','value': ['XXXXXXXXXXX']}]
{
"date_start": "2014-10-14",
"date_stop": "2014-10-14",
"actions_28d_view_by_convs": [
{
"action_type": "offsite_conversion.lead", //---->>> Action _by_convs are attributed also days after campaign ends
"value": 1
},
{
"action_type": "offsite_conversion",
"value": 1
}
]
},
{
"date_start": "2014-10-15",
"date_stop": "2014-10-15",
"actions_28d_view_by_convs": [
{
"action_type": "like",
"value": 1
},
{
"action_type": "offsite_conversion.lead", //---->>> Action _by_convs are attributed also days after campaign ends
"value": 2
},
{
"action_type": "page_engagement",
"value": 1
},
{
"action_type": "offsite_conversion",
"value": 2
}
]
},
{
"date_start": "2014-10-16",
"date_stop": "2014-10-16",
"actions_28d_view_by_convs": [
]
},
{
"date_start": "2014-10-17",
"date_stop": "2014-10-17",
"actions_28d_view_by_convs": [
{
"action_type": "like", //---->>> Action _by_convs are attributed also days after campaign ends
"value": 1
},
{
"action_type": "page_engagement",
"value": 1
}
]
},
{
"date_start": "2014-10-18",
"date_stop": "2014-10-18",
"actions_28d_view_by_convs": [
]
},
{
"date_start": "2014-10-19",
"date_stop": "2014-10-19",
"actions_28d_view_by_convs": [
{
"action_type": "like",
"value": 1
},
{
"action_type": "page_engagement",
"value": 1
}
]
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment