This function retrieves metadata for targeting data releases for a specific country and timeframe from a GitHub repository.
Usage
get_targeting_metadata(
country_code,
timeframe,
base_url = "https://github.com/favstats/meta_ad_targeting/releases/expanded_assets/"
)
Value
A data frame containing metadata about available targeting data, including file names, sizes, timestamps, and tags.
Examples
# Retrieve metadata for Germany for the last 30 days
metadata <- get_targeting_metadata("DE", "30")
print(metadata)
#> # A tibble: 504 × 3
#> cntry ds tframe
#> <chr> <chr> <chr>
#> 1 DE 2025-08-03 last_30_days
#> 2 DE 2025-08-02 last_30_days
#> 3 DE 2025-07-25 last_30_days
#> 4 DE 2025-07-24 last_30_days
#> 5 DE 2025-07-23 last_30_days
#> 6 DE 2025-07-22 last_30_days
#> 7 DE 2025-07-21 last_30_days
#> 8 DE 2025-07-20 last_30_days
#> 9 DE 2025-07-18 last_30_days
#> 10 DE 2025-07-13 last_30_days
#> # ℹ 494 more rows