display_ads (view)
Data source:
simonw/russian-ira-facebook-ads-datasette
5 rows
where an ad_target was interests:BuzzFeed and an ad_target was age:18 — 65+
This data as JSON, CSV (advanced)
id
|
img
|
targeting
|
impressions
|
clicks
|
url
|
text
|
spend_usd
|
spend_amount
|
spend_currency
|
created
|
ended
|
1685 |
 |
location:United States, interests:CollegeHumor, interests:BuzzFeed, interests:9GAG, age:18 — 65+, placements:News Feed on desktop computers, placements:News Feed on mobile devices |
0 |
0 |
https://www.facebook.com/Memopolis-450474615151098/ |
oh
|
0.0 |
0.00 |
USD |
2016-05-16T04:17:32-07:00 |
2016-05-17T04:17:31-07:00 |
1742 |
 |
location:United States, interests:CollegeHumor, interests:BuzzFeed, interests:9GAG, age:18 — 65+, placements:News Feed on desktop computers, placements:News Feed on mobile devices |
792 |
122 |
https://www.facebook.com/Memopolis-450474615151098/ |
Tbh I believe in you
|
1.40832 |
88.02 |
RUB |
2016-04-20T02:45:42-07:00 |
2016-04-23T02:45:42-07:00 |
1777 |
 |
location:United States, interests:CollegeHumor, interests:BuzzFeed, interests:9GAG, age:18 — 65+, placements:News Feed on desktop computers, placements:News Feed on mobile devices |
77 |
9 |
https://www.facebook.com/Memopolis-450474615151098/ |
What a savage
|
1.0286400000000002 |
64.29 |
RUB |
2016-04-18T04:16:25-07:00 |
2016-04-21T04:16:23-07:00 |
1783 |
 |
location:United States, interests:CollegeHumor, interests:BuzzFeed, interests:9GAG, age:18 — 65+, placements:News Feed on desktop computers, placements:News Feed on mobile devices |
575 |
70 |
https://www.facebook.com/Memopolis-450474615151098/ |
Parenting goals
|
1.59984 |
99.99 |
RUB |
2016-04-11T06:39:05-07:00 |
2016-04-12T06:39:05-07:00 |
1848 |
 |
location:United States, interests:CollegeHumor, interests:BuzzFeed, interests:9GAG, age:18 — 65+, placements:News Feed on desktop computers, placements:News Feed on mobile devices |
240 |
94 |
https://www.facebook.com/Memopolis-450474615151098/ |
But... But he's Asian
|
6.4 |
400.00 |
RUB |
2016-06-17T06:38:53-07:00 |
2016-06-20T06:38:52-07: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