This function retrieves metadata for targeting data releases for a specific country and timeframe from a GitHub repository.
Usage
retrieve_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 <- retrieve_targeting_metadata("DE", "30")
print(metadata)
#> # A tibble: 314 × 3
#> cntry ds tframe
#> <chr> <chr> <chr>
#> 1 DE 2024-12-26 last_30_days
#> 2 DE 2024-12-25 last_30_days
#> 3 DE 2024-12-24 last_30_days
#> 4 DE 2024-12-23 last_30_days
#> 5 DE 2024-12-22 last_30_days
#> 6 DE 2024-12-21 last_30_days
#> 7 DE 2024-12-20 last_30_days
#> 8 DE 2024-12-19 last_30_days
#> 9 DE 2024-12-18 last_30_days
#> 10 DE 2024-12-17 last_30_days
#> # ℹ 304 more rows