Skip to content

A library for querying Google AdWords data with Apache Spark, for Spark SQL and DataFrames

License

Notifications You must be signed in to change notification settings

bluekiri/spark-google-adwords

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Google AdWords Library

A library for querying Google AdWords data with Apache Spark, for Spark SQL and DataFrames.

Requirements

This library requires Spark 1.4+

Linking

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

Features

This package allows querying Google AdWords reports as Spark DataFrames. The API accepts several options (see the Google AdWords developer docs for details):

Scala API

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()

Building From Source

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.

About

A library for querying Google AdWords data with Apache Spark, for Spark SQL and DataFrames

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 100.0%