propublica / facebook-political-ads

Monitoring Facebook Political Ads
MIT License
237 stars 50 forks source link

get political ads filtered by language from ProPublica? #88

Open ohadcn opened 5 years ago

ohadcn commented 5 years ago

hello anyone is there any API to get ads from ProPublica servers filtered by language? I can filter by region (also for region outside US), but it always showing me ads in english targeted to english speakers in the region.

this code is supposed to give me results filtered by region:

curl "https://projects.propublica.org/fbpac-api/ads/persona?location_bucket=Israel" 

but the results looks like they are intended for non-Israeli interested in Israel, not for Israelis.

I couldn't find how to filter by language or even get results in local language, adding Accept-Language header, locale, lang or language parameter do not help - still getting english results.

curl "https://projects.propublica.org/fbpac-api/ads/persona?location_bucket=Israel&lang=he-IL" -H "Accept-Language: he"

I've also tried the other API endpoint, which gave me empty arrays:

curl "https://projects.propublica.org/facebook-ads/ads" -H "Accept-Language: he-IL"

Do ProPublica keeps this data? Can I get it? If not - can I ask you to keep it? (it's going to be interesting before Isreali elections on April)

jeremybmerrill commented 5 years ago

Hi @ohadcn

We're not currently publishing ads for countries besides the US and Germany. Adding additional countries requires a local journalistic partner and additional labor-intensive steps that we're not undertaking right now. Are you affiliated with a journalism organization? Whether new local partners are being added might (or might not!) change in the next few weeks.

(I see very few Israeli ads for the reasons I mention above, though I see ads from Meretz targeted to men who like Meretz's page; I see ads from various Likud politicians and the "New Likudniks" too.)

ohadcn commented 5 years ago

Hey @jeremybmerrill

You see very few ads because we haven't yet asked volunteers to install the addon, once we will have access to the collected data we will ask volunteers to install it. I came up to this project when Tomer - a journalist from "shakuf" (transparent in hebrew) asked me to fork facebook political ads for collecting Israeli advertisements. There are going to be elections in Israel in April, so we want to start tracking the ads as soon as possible.

jeremybmerrill commented 5 years ago

@ohadcn okay! Can you send me an email so we can talk about details? my email address is my github username at gmail . (and it's also listed on my github profile page and on my website, jeremybmerrill.com)