A wrapper function that downloads ad HTMLs for a given set of IDs and a country, parses the data, and returns a final, reordered dataframe.
Arguments
- ad_ids
A character vector of Ad Library IDs.
- country
A two-letter country code.
- keep_html
A logical flag. If
FALSE
(the default), the cache directory with the downloaded HTML files will be deleted after parsing. IfTRUE
, the files will be kept.- cache_dir
The directory to store downloaded HTML files. Defaults to "html_cache".
- ...
Additional arguments to be passed down to
get_ad_html()
(e.g.,overwrite
,quiet
,max_active
).