display_ads (view)
Data source:
simonw/russian-ira-facebook-ads-datasette
3 rows
where an ad_target was and_must_also_match:interests:La Raza
This data as JSON, CSV (advanced)
id
|
img
|
targeting
|
impressions
|
clicks
|
url
|
text
|
spend_usd
|
spend_amount
|
spend_currency
|
created
|
ended
|
2552 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Brown Power, age:16 - 65+, language:Spanish, language:English (UK), language:English (US), language:Spanish (Spain), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:Mexico, people_who_match:interests:Latin hip hop, people_who_match:interests:Chicano Movement, people_who_match:interests:Hispanidad, people_who_match:interests:Lowrider, people_who_match:interests:Chicano rap, and_must_also_match:interests:La Raza |
126749 |
5707 |
https://www.facebook.com/brownunitedfront/ |
Brown Power is a platform designed to educate, entertain and connect
Chicanos in the US.
|
177.95744000000002 |
11122.34 |
RUB |
2017-03-23T00:24:36-07:00 |
2017-05-12T12:45:00-07:00 |
2647 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Brown Power, age:16 - 65+, language:Spanish, language:English (UK), language:English (US), language:Spanish (Spain), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:Mexico, people_who_match:interests:Latin hip hop, people_who_match:interests:Chicano Movement, people_who_match:interests:Hispanidad, people_who_match:interests:Lowrider, people_who_match:interests:Chicano rap, and_must_also_match:interests:La Raza |
968768 |
56405 |
https://www.facebook.com/brownunitedfront/ |
Brown Power is a platform designed to educate, entertain and connect
Chicanos in the US.
|
953.1425600000001 |
59571.41 |
RUB |
2016-12-09T00:51:10-08:00 |
|
3251 |
 |
location_living_in:United States, excluded_connections:Exclude people who like Brown Power, age:18 - 65+, language:Spanish, language:English (UK), language:English (US), language:Spanish (Spain), placements:News Feed on desktop computers, placements:News Feed on mobile devices, placements:Right column on desktop computers, people_who_match:interests:Mexico, people_who_match:interests:Latin hip hop, people_who_match:interests:Chicano Movement, people_who_match:interests:Hispanidad, people_who_match:interests:Lowrider, people_who_match:interests:Chicano rap, and_must_also_match:interests:La Raza |
28502 |
1342 |
https://www.facebook.com/brownunitedfront/ |
Brown Power is a platform designed to educate, entertain and connect
Chicanos in the US. Brown Power
|
70.62352 |
4413.97 |
RUB |
2017-04-25T05:56:10-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/edsu/irads/03fb4b/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