OfflineCredentials error while using Adwords in Apache Spark using SBT

14 views
Skip to first unread message

Abhishek choudhary

unread,
Apr 27, 2018, 4:08:42 PM4/27/18
to AdWords API and Google Ads API Forum
I am trying to call Adwords Api from Apache Spark and found OfflineCredentials error.
I tried to hack several times but couldnt fix. Can you help.

I am using Apache Spark - 2.20
My sbt looks like -
    "org.slf4j" % "slf4j-api" % "1.7.25" % "provided",
// https://mvnrepository.com/artifact/com.google.api-ads/ads-lib
"com.google.api-ads" % "ads-lib" % "3.13.0" exclude(
"commons-beanutils", "commons-beanutils"),

// https://mvnrepository.com/artifact/com.google.api-ads/adwords-axis
"com.google.api-ads" % "adwords-axis" % "3.13.0" exclude("commons-beanutils", "commons-beanutils"),
"com.google.api-ads" % "adwords-appengine" % "3.13.0" exclude("servlet-api","servlet-api"),

// https://mvnrepository.com/artifact/com.google.api-ads/ads-lib-axis
// "com.google.api-ads" % "ads-lib-axis" % "3.12.0",
// https://mvnrepository.com/artifact/com.google.http-client/google-http-client-jackson2
"com.google.http-client" % "google-http-client-jackson2" % "1.23.0" exclude("jackson-core","com.fasterxml.jackson.core"),
// https://mvnrepository.com/artifact/com.beust/jcommander
"com.beust" % "jcommander" % "1.48",

// Testing
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",

"com.typesafe" % "config" % typesafeConfigVersion,

// Spark
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-hive" % sparkVersion % "provided",

"com.holdenkarau" %% "spark-testing-base" % sparkTestVersion % "test",
"org.apache.spark" %% "spark-hive" % sparkVersion % "test",

"commons-beanutils" % "commons-beanutils" % "1.9.3",
"com.google.http-client" % "google-http-client-gson" % "1.22.0",
"com.google.inject" % "guice" % "4.0",
"com.google.inject.extensions" % "guice-assistedinject" % "4.0",
"com.google.inject.extensions" % "guice-multibindings" % "4.0"


Luis Xander Talag (AdWords API Team)

unread,
Apr 30, 2018, 12:05:16 AM4/30/18
to AdWords API and Google Ads API Forum
Hi Abhishek,

My apologies as we do not support the Apache Spark in AdWords API. However, to further investigate this, could you provide the complete SOAP request and response logs when you encountered the error so I could further investigate this? Please reply via Reply privately to author.

Thanks and regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages