home / russian-ads

display_ads (view)

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

2 rows where an ad_target was location:united_states:Massachusetts sorted by created

View and edit SQL

id img targeting impressions clicks url text spend_usd spend_amount spend_currency created ▼ ended
33 location:united_states:Massachusetts, interests:Liberalism, age:18 - 65+, language:English (US), placements:Instagram Feed 2404 6 https://instagram.Com/gov_spending/ Unbelievable amount of the US government's waste. Click Learn More! The US Gov Spending Stats GovSpending 15.200000000000001 950.00 RUB 2015-12-01T05:57:42-08:00  
1951 location:united_states:Connecticut, location:united_states:Delaware, location:united_states:Maine, location:united_states:Maryland, location:united_states:Massachusetts, location:united_states:Ferguson (+40 km) Missouri, location:united_states:Virginia City (+40 km) Nevada, location:united_states:New Hampshire, location:united_states:New Jersey, location:united_states:New York (+40 km) New York, location:united_states:Ohio, location:united_states:Pennsylvania, location:united_states:Rhode Island, location:united_states:Vermont, age:13 - 65+, placements:Instagram Feed, people_who_match:interests:HispanicTV, people_who_match:interests:Behaviors: African American (US) 26514 0 https://www.facebook.com/Proudblacks-954167134618867/ New York. 18-19 Feb. 11:00. Meet at Dag Hammarskjold Plaza on 47 street. 40.0 2500.00 RUB 2016-02-18T05:03:07-08:00 2016-02-19T11:26:00-08: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)
                "no image"
            end as img,
                    "label", targets.name,
                    "href", "/russian-ads/display_ads?_target="
                        || urllib_quote_plus(targets.id)
            ) as targeting,
            ads.impressions, ads.clicks, ads.url, ads.text,
                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 1463.312ms · Data source: simonw/russian-ira-facebook-ads-datasette