# install.packages("remotes")
remotes::install_github("favstats/metatargetr")metatargetr is an R package designed to parse and analyze targeting information from the Meta Ad Library dataset and retrieve data from the Audience tab. It provides tools for working with Meta ad library data and includes integration with the Google Transparency Report.
You can install the development version of metatargetr from GitHub:
# install.packages("remotes")
remotes::install_github("favstats/metatargetr")First, load the package:
library(metatargetr)The package provides several core functions:
get_targeting(): Retrieve recent targeting dataget_targeting_db(): Access historical targeting dataget_page_insights(): Get page informationget_ad_snapshots(): Download ad creativesggl_get_spending(): Access Google Transparency Report dataEach of these functions is documented in detail in the following sections.