The goal ofamazonadsR is to helpR usersto access Amazon Ads digital marketing data viaWindsor.aiAPI in a convenient way fromR.
Windsor.ai allows to get marketingdata from any platform. It beautifully simplifies the complexity ofdealing with multiple platforms, unlocking unified, valuable informationin a format that matters to you. For more details checkoutonboard.windsor.ai.
You can install the development version of amazonadsR fromGitHub with:
# install.packages("devtools")devtools::install_github("pablosanchezmart/amazonadsR")You need to get a free API key to access windsor.ai’s APIs. Registeryour account first and add a data source like Amazon ads and then getthe API key. For more details check out our official API documentationand this article. Get the API key at https://onboard.windsor.ai. Youhave a 30 days trial for free.
The package currently has only one functionfetch_amazonadsR which will return adata.frame provided that all of the arguments are suppliedto it:
Running:
library(amazonadsR)my_amazonads_data<-fetch_amazonads(api_key ="your api key",date_from =Sys.Date()-100,date_to =Sys.Date(),fields =c("campaign","clicks","spend","impressions","date"))'data.frame':14 obs. of5 variables:$ campaign: chr"retageting APAC""retargeting UK&CO""retageting APAC""retargeting UK&CO" ...$ clicks: num4057004230 ...$ spend: num2.572.482.392.540.940.712.592.122.430.13 ...$ impressions: num806693819689299190682688822135 ...$ date: chr"2022-09-28""2022-09-28""2022-09-29""2022-09-29" ...Will return adata.frame with Amazon Ads marketingdata.
For more details see the API documentation athttps://windsor.ai//api-fields/.