A library for querying Google AdWords data with Apache Spark, for Spark SQL and DataFrames.
This library requires Spark 1.4+
You can link against this library in your program at the following coordinates:
groupId: com.bluekiri
artifactId: spark-google-adwords_2.11
version: 3.15.1.1.0-SNAPSHOT
This package allows querying Google AdWords reports as Spark DataFrames. The API accepts several options (see the Google AdWords developer docs for details):
Spark 1.4+:
Add your ads.properties
file to resources.
Create a DataFrame from an AdWords report:
import org.apache.spark.sql.SQLContext
val sqlContext = new SQLContext(sc)
val df = sqlContext.read
.format("com.bluekiri.google.adwords.v201806")
.option("reportType", "SHOPPING_PERFORMANCE_REPORT")
.option("during", "LAST_30_DAYS")
.load()
This library is built with SBT. To build a JAR file simply run sbt assembly
from the project root. The build configuration includes support for both Scala 2.10 and 2.11.