Hello, Google doesn't offer any official support for a Flex client library. The last time someone asked about Flex in the forum there was a link posted to a reference on using SOAP services from Flex that you might find useful:
http://groups.google.com/group/adwords-api/browse_thread/thread/3922869e0267e616 Also, be sure that you're not trying to access v11 of the AdWords API, which was deprecated a long time ago. You'd need to use v13 nowadays. Cheers, -Jeff Posnick, AdWords API Team On Apr 17, 3:11 am, buju <viju.c...@gmail.com> wrote: > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" > creationComplete="google_accounts.getClientAccounts.send()"> > <mx:WebService id="google_accounts" wsdl="https:// > adwords.google.com/ > api/adwords/v11/AccountService?wsdl" useProxy="false" > load="headers()"> > <mx:operation name="getClientAccounts"> > <mx:request> > <dummy>1</dummy> > </mx:request> > </mx:operation> > </mx:WebService> > <mx:Script> > <![CDATA[ > import mx.rpc.*; > import mx.rpc.soap.SOAPHeader; > > private function headers():void { > var qname:QName = new QName("https:// > adwords.google.com/api/adwords/v11"); > var header_email:SOAPHeader = new SOAPHeader(qname, > {String:"email", String:"my mcc email"}); > var header_password:SOAPHeader = new SOAPHeader(qname, > {String:"password", String:"my password"}); > var header_useragent:SOAPHeader = new > SOAPHeader(qname, {String:"useragent", String:"FLEX"}); > var header_token1:SOAPHeader = new SOAPHeader(qname, > {String:"developerToken", String:"my dev token"}); > var header_token2:SOAPHeader = new SOAPHeader(qname, > {String:"applicationToken", String:"my app token"}); > > google_accounts.addHeader(header_email); > google_accounts.addHeader(header_password); > google_accounts.addHeader(header_useragent); > google_accounts.addHeader(header_token1); > google_accounts.addHeader(header_token2); > } > ]]> > </mx:Script> > <mx:Panel x="10" y="10" width="475" height="400" > layout="absolute" > title="Google Accounts"> > <mx:DataGrid x="0" y="0" id="dgAccounts" width="455" > dataProvider="{google_accounts.getClientAccounts.lastResult}" > height="360"> > <mx:columns> > <mx:DataGridColumn headerText="Email" > dataField="email" /> > </mx:columns> > </mx:DataGrid> > </mx:Panel> > </mx:Application> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---