home / russian-ads

display_ads (view)

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

3 rows where an ad_target was location:united_states:Baton Rouge (+25 mi), New Orleans (+25 mi) Louisiana

id img targeting impressions clicks url text spend_usd spend_amount spend_currency created ended
1069 location:united_states:Oakland (+25 mi) California, location:united_states:Atlanta (+25 mi) Georgia, location:united_states:Baton Rouge (+25 mi), New Orleans (+25 mi) Louisiana, location:united_states:Baltimore (+25 mi) Maryland, location:united_states:St. Louis (+25 mi) Missouri, location:united_states:Camden (+25 mi), Newark (+25 mi) New Jersey, location:united_states:Cleveland (+25 mi) Ohio, location:united_states:Chester (+25 mi) Pennsylvania, excluded_connections:Exclude people who like Blacktivist, age:18 - 55, placements:News Feed on desktop computers, placements:News Feed on mobile devices 595 38 https://www.facebook.com/Blacktivist-128371547505950/ Gone but never forgotten! Join to remember fallen brothers! 14.016639999999999 876.04 RUB 2015-09-11T05:26:38-07:00  
1240 location:united_states:Oakland (+25 mi) California, location:united_states:Atlanta (+25 mi) Georgia, location:united_states:Baton Rouge (+25 mi), New Orleans (+25 mi) Louisiana, location:united_states:Baltimore (+25 mi) Maryland, location:united_states:St. Louis (+25 mi) Missouri, location:united_states:Camden (+25 mi), Newark (+25 mi) New Jersey, location:united_states:Cleveland (+25 mi) Ohio, location:united_states:Chester (+25 mi) Pennsylvania, excluded_connections:Exclude people who like Blacktivist, age:18 - 55, placements:News Feed on desktop computers, placements:News Feed on mobile devices 109 3 https://www.facebook.com/Blacktivist-128371547505950/ Always remember the fallen! Like to join! 1.7908800000000002 111.93 RUB 2015-09-11T05:27:31-07:00  
1241 location:united_states:Oakland (+25 mi) California, location:united_states:Atlanta (+25 mi) Georgia, location:united_states:Baton Rouge (+25 mi), New Orleans (+25 mi) Louisiana, location:united_states:Baltimore (+25 mi) Maryland, location:united_states:St. Louis (+25 mi) Missouri, location:united_states:Camden (+25 mi), Newark (+25 mi) New Jersey, location:united_states:Cleveland (+25 mi) Ohio, location:united_states:Chester (+25 mi) Pennsylvania, excluded_connections:Exclude people who like Blacktivist, age:18 - 55, placements:News Feed on desktop computers, placements:News Feed on mobile devices 86 4 https://www.facebook.com/Blacktivist-128371547505950/ African American Civil Rights Movement! Join us! 2.13056 133.16 RUB 2015-09-11T05:25:57-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 1336.851ms · Data source: simonw/russian-ira-facebook-ads-datasette