I will try this! Thanks a lot all. On May 25, 2:23 pm, Jay Fields <j...@jayfields.com> wrote: > I'm assuming it's AdwordsService$V201109/ADGROUP_SERVICE > > Be sure to also import AdwordsService$V201109 > > Sent from my iPad > > On May 25, 2012, at 7:20 AM, Softaddicts <lprefonta...@softaddicts.ca> wrote: > > > > > > > > > Jason, > > > Try this > > > AdwordsService.V201109/ADGROUP_SERVICE > > > V.... looks like an internal class in AdwordsService, the slash is a > > delimiter announcing > > that you want to access the static content of a class, it cannot be used > > before > > unroling the class hierarchy up to the one containing what you want to > > access. > > > You may also try an explicit import of the internal class and then use > > V201109/ADGROUP_SERVICE. > > > Luc > > >> Hello , > >> I am trying to make a clojure wrapper for the adwords java api but I > >> am having trouble with some of the code. > >> Creating simple objects is fairly straightforward but when it comes to > >> interfaces quite frankly Clojure is not very intuitive. > >> I could not find very good examples for how to create them. I am also > >> confused as when to use proxy or reify. > > >> So the java code looks like this: > >> AdGroupServiceInterface adGroupService = > >> user.getService(AdWordsService.V201109.ADGROUP_SERVICE); > > >> AdwordsService has constants which I try to code like this: > >> (def ad-service (AdwordsService/V201109/ADGROUP_SERVICE)) > >> ;;this fails with no such namespace > > >> Do I use proxy here or reify and how do set the service on the > >> adGroupService ? > >> Any pointers in the right direction is welcome. > > >> /BR > >> Jason > > >> -- > >> You received this message because you are subscribed to the Google > >> Groups "Clojure" group. > >> To post to this group, send email to clojure@googlegroups.com > >> Note that posts from new members are moderated - please be patient with > >> your first post. > >> To unsubscribe from this group, send email to > >> clojure+unsubscr...@googlegroups.com > >> For more options, visit this group at > >>http://groups.google.com/group/clojure?hl=en > > > -- > > Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en