Skip to content
Browse files

add user-agent and enable partial failure settings for session

  • Loading branch information...
pingles committed Feb 22, 2016
1 parent 16d60be commit 715f82bec5af3cc0ba93c862b67e072f6b3a602f
Showing with 6 additions and 2 deletions.
  1. +1 −1 project.clj
  2. +5 −1 src/adworj/credentials.clj
@@ -1,4 +1,4 @@
(defproject adworj "0.1.11"
(defproject adworj "0.1.12"
:description "Clojure library to ease interacting with the Google AdWords API"
:url ""
:license {:name "Eclipse Public License"
@@ -71,12 +71,16 @@

(defn adwords-session [config-file ^Credential credential & {:keys [client-customer-id]}]
(defn adwords-session [config-file ^Credential credential & {:keys [client-customer-id user-agent enable-partial-failure?]}]
(let [b (AdWordsSession$Builder. )]
(.fromFile b config-file)
(.withOAuth2Credential b credential)
(when client-customer-id
(.withClientCustomerId b client-customer-id))
(when user-agent
(.withUserAgent b user-agent))
(when enable-partial-failure?
(.enablePartialFailure b))
(.build b)))

0 comments on commit 715f82b

Please sign in to comment.
You can’t perform that action at this time.