daroczig / fbRads

Analyze and manage Facebook ads from R using this client library to access their Marketing APIs
GNU Affero General Public License v3.0
153 stars 57 forks source link

Different result for same query #95

Closed paul7Junior closed 6 years ago

paul7Junior commented 6 years ago

Hi all,

I have notice a strange behavior with the fb_insights function If I query this:

fb_insights(time_range = tr,
                        time_increment = 1,
                        action_breakdowns = c('action_reaction', 'action_type'),
                        fields = toJSON(c('actions')))

and this:

fb_insights(time_range = tr,
                        time_increment = 1,
                        action_breakdowns = c('action_type', 'action_reaction'),
                        fields = toJSON(c('actions')))

(note I have change the order of action_breakdowns parameter, all other things remaining equal)

I do not have he same result: for the first one I only get action_type whereas for the second query I got both of my actions_breakdowns.

I test the same thing (switching the order of the action_breakdowns) with a curl request and I get both of my breakdowns in both case.

Best regards,

Paul

daroczig commented 6 years ago

I think that's expected as per https://developers.facebook.com/docs/marketing-api/insights/breakdowns#combiningbreakdowns

Due to storage constraints, only some permutations of breakdowns are available.