home / russian-ads

display_ads (view)

Data source: simonw/russian-ira-facebook-ads-datasette

3 rows where an ad_target was age:20 - 65+

id img targeting impressions clicks url text spend_usd spend_amount spend_currency created ended
15 location:United States, interests:Tax, interests:Republican Party (United States), age:20 - 65+, language:English (US), placements:Instagram Feed 1614 12 https://instagram.Com/gov_spending/ And what would you Choose if u were a president: to create 11200 military- related jobs or to create 26700 jobs in education? Join us! Learn more! The US Gov Spending Stats Instalol 9.54608 596.63 RUB 2015-11-17T07:07:36-08:00  
2751 location_living_in:United States, age:20 - 65+, language:English (UK), 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:State police, people_who_match:interests:Law enforcement in the United States, people_who_match:interests:Police, people_who_match:interests:Sheriffs in the United States, people_who_match:interests:Law enforcement, people_who_match:interests:Police officer, and_must_also_match:interests:Support Law Enforcement, and_must_also_match:interests:The Thin Blue Line, and_must_also_match:interests:Officer Down Memorial Page, and_must_also_match:interests:Police Wives Unite, and_must_also_match:interests:National Police Wives Association, and_must_also_match:interests:Heroes Behind The Badge 1334544 73063 https://www.facebook.com/Copsareheroes/ Community of people who support our brave Police Officers. Back The Badge 1769.40272 110587.67 RUB 2016-10-19T04:54:17-07:00  
2762 location_living_in:United States, age:20 - 65+, language:English (UK), language:English (US), placements:News Feed on desktop computers, placements:News Feed on mobile devices, people_who_match:interests:State police, people_who_match:interests:Law enforcement in the United States, people_who_match:interests:Police, people_who_match:interests:Sheriffs in the United States, people_who_match:interests:Law enforcement, people_who_match:interests:Police officer, and_must_also_match:interests:Support Law Enforcement, and_must_also_match:interests:The Thin Blue Line, and_must_also_match:interests:Officer Down Memorial Page, and_must_also_match:interests:Thank a Police officer, and_must_also_match:interests:Police Wives Unite, and_must_also_match:interests:National Police Wives Association, and_must_also_match:interests:Heroes Behind The Badge 0 0 https://www.facebook.com/copsareheroes/ BLUE LIVES MATTER !! 0.0 0.00 USD 2016-10-19T04:54:17-07:00 2016-10-13T06:09:16-07:00

Advanced export

JSON shape: default, array

CSV options:

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
Powered by Datasette · Query took 1615.792ms · Data source: simonw/russian-ira-facebook-ads-datasette