listInterceptsAndCreatives: List Intercepts and Creatives

Description Usage Arguments Value Examples

View source: R/site_intercept.R

Description

Scrape intercept and creative ids and names from admin Summary Report page for use in API calls
Uses RSelenium to open and scrape Chrome

Usage

1
2
3
4
5
listInterceptsAndCreatives(
  summaryReportURL = Sys.getenv("QUALTRICS_SUMMARY_REPORT_URL"),
 
    pageScript = "var c = [];\n                                   document.querySelectorAll(\"table.StatsTable tbody tr td:nth-of-type(1) a\").forEach(function(x) {c.push(x.getAttribute(\"clickcallback\"))})\n                                   return c"
)

Arguments

summaryReportURL

String. URL for license summary report

pageScript

String. Javascript to scrape the tables

Value

data.frame

Examples

1
2
3
4
## Not run: 
listInterceptsAndCreatives()

## End(Not run)

derring-do/qualtricks documentation built on April 25, 2021, 12:38 a.m.