display_ads (view)
Data source:
simonw/russian-ira-facebook-ads-datasette
3 rows
where an ad_target was people_who_match:interests:Gunsoom
This data as JSON, CSV (advanced)
id
|
img
|
targeting
|
impressions
|
clicks
|
url
|
text
|
spend_usd
|
spend_amount
|
spend_currency
|
created
|
ended
|
2945 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Defend the 2nd, age:18 - 65+, language:English (US), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:The Second Amendment, people_who_match:interests:Anything About Guns, people_who_match:interests:Guns & Patriots, people_who_match:interests:Second Amendment Sisters, people_who_match:interests:Gun Rights, people_who_match:interests:American Guns, people_who_match:interests:Guns & Ammo, people_who_match:interests:Second Amendment Supporters, people_who_match:interests:Gunsoom, and_must_also_match:interests:Right to keep and bear arms |
42 |
1 |
https://www.facebook.com/savethe2a/ |
Protect the 2nd. Without it, you won't have any others! Join! Defend The 2nd
|
0.20832 |
13.02 |
RUB |
2017-02-07T23:28:35-08:00 |
|
2958 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Defend the 2nd, age:18 - 65+, language:English (US), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:The Second Amendment, people_who_match:interests:Anything About Guns, people_who_match:interests:Guns & Patriots, people_who_match:interests:Second Amendment Sisters, people_who_match:interests:Gun Rights, people_who_match:interests:American Guns, people_who_match:interests:Guns & Ammo, people_who_match:interests:Second Amendment Supporters, people_who_match:interests:Gunsoom, and_must_also_match:interests:Right to keep and bear arms |
25520 |
2614 |
https://www.facebook.com/savetheZa/ |
Protect the 2nd. Without it, you won't have any others! Join! Defend The 2nd
|
149.62207999999998 |
9351.38 |
RUB |
2017-02-02T00:08:46-08:00 |
|
2959 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Defend the 2nd, age:18 - 65+, language:English (US), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:The Second Amendment, people_who_match:interests:Anything About Guns, people_who_match:interests:Guns & Patriots, people_who_match:interests:Second Amendment Sisters, people_who_match:interests:Gun Rights, people_who_match:interests:American Guns, people_who_match:interests:Guns & Ammo, people_who_match:interests:Second Amendment Supporters, people_who_match:interests:Gunsoom, and_must_also_match:interests:Right to keep and bear arms |
24705 |
1734 |
https://www.facebook.com/savethe2a/ |
Protect the 2nd. Without it, you won't have any others! Join! Defend The 2nd
|
104.22944000000001 |
6514.34 |
RUB |
2017-02-13T04:42:23-08:00 |
|
CREATE VIEW display_ads AS
select ads.id,
case when image is not null then
json_object("img_src", "https://raw.githubusercontent.com/umd-mith/irads/master/site/" || image, "width", 200)
else
"no image"
end as img,
json_group_array(
json_object(
"label", targets.name,
"href", "/russian-ads/display_ads?_target="
|| urllib_quote_plus(targets.id)
)
) as targeting,
ads.impressions, ads.clicks, ads.url, ads.text,
cast(case
when ads.spend_currency == "RUB" then ads.spend_amount * 0.016
else ads.spend_amount
end as float) as spend_usd,
ads.spend_amount, ads.spend_currency,
ads.created, ads.ended
from ads
join ad_targets on ads.id = ad_targets.ad_id
join targets on ad_targets.target_id = targets.id
group by ads.id
order by ads.id