jeff w
unread,Apr 30, 2008, 2:05:38 PM4/30/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Has anyone developed a Coldfusion Application with the Java library? I
know a Coldfusion library has been released, but I'd still like to
play with the Java Library before I commit to the Coldfusion Library.
I am struggling to figure out how to use java classes in CF, so I'm
starting out simple, trying to call getClientAccounts. I can
instantiate the user object no problem:
<cfset packagepath = "com.google.api.adwords.lib.">
<cfset objUser = createObject("java",
"#packagepath#AdWordsUser").init(ExpandPath("adwords.properties"))>
I start getting into trouble next when I try to get the service to use
for the AccountServiceSoapBindingStub. l am trying to access
objUser.ACCOUNT_SERVICE so I can use that variable when calling
objUser.getService().
<cfset serviceID = objUser.ACCOUNT_SERVICE>
The above line of code generates this error: Class
coldfusion.runtime.StructBean can not access a member of class
com.google.api.adwords.lib.BaseCredentials with modifiers "public
static final"
I can't make sense of this error, so I don't know where to begin
troubleshooting. I'm hoping that I am just not understanding
(conceptually) the relationship between the Java classes and
Coldfusion, and that once I wrap my head around whats going on,
everything else will be cake. Obviously, if I can't understand whats
going on, I'll use the new CF library. But, I'd like to exhaust all
other avenues before i make that decision.
Thanks Much!