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

fb_insights "platform_position" Breakdown Error #132

Open hhissami opened 3 years ago

hhissami commented 3 years ago

Hi,

fb_insights() is not working when breakdowns = "platform_position".

insights_list <- fb_insights(target=campaign_id, level="ad", date_preset = "lifetime", fields=c("ad_name"), breakdowns = "platform_position")

I get this error message:

(#100) Current combination of data breakdown columns (action_type, platform_position) is invalid

I didn't get any error message with any other breakdown value. Seems just "platform_position" has an issue. I'm not sure if this is caused by the package or a glitch on Facebook's end.

thiagupct commented 3 years ago

image I don't have any experience with R lang, I had this same issue with API explorer but combining publisher_platform and platform_position fetches the data. You can give a try