fetch_bingads: fetch_bingads A function to fetch bing Ads data from the...

View source: R/fetch_bingads.R

fetch_bingadsR Documentation

fetch_bingads A function to fetch bing Ads data from the windsor.ai API

Description

fetch_bingads A function to fetch bing Ads data from the windsor.ai API

Usage

fetch_bingads(
  api_key,
  date_from = NULL,
  date_to = NULL,
  fields = c("campaign", "clicks", "spend", "impressions", "date")
)

Arguments

api_key

Your api key to access Windsor.ai API

date_from

The date from which to start getting data in format YYYY-MM-DD

date_to

The date until which to start getting data in format YYYY-MM-DD

fields

he fields fetched from the API for a given connector See https://windsor.ai/api-fields/ for details.

Value

A data frame with the desired data

Examples

## Not run: 
my_bingads_data <- fetch_bingads(api_key = "your api key",
date_from = "2022-10-01",
date_to = "2022-10-02",
fields = c("campaign", "clicks",
"spend", "impressions", "date"))

## End(Not run)

bingadsR documentation built on Oct. 29, 2022, 5:06 p.m.