Hi there I am trying to connect to the adwords API using the Perl Client Library, but am hitting a couple of problems. I am following the instructions the Sandbox best practices article<http://code.google.com/apis/adwords/articles/adwords_api_sandbox_best_practices.html> but am getting a 'developer token is invalid' response. Here is the code:
my $service = Google::Adwords::AccountService->new(); $service->email($email) ->password('MYPASSWORD') ->developerToken($email.'++GBP') ->clientEmail('client_1+'.$email); logit ('displayMainPage: devToken: '.$email.'++GBP'); my $account = $service->getAccountInfo(); logit('displayMainPage: Currency: '.$account->currencyCode); logit('displayMainPage: Name: '.$account->descriptiveName); Which is returning: Fault Code: soapenv:Server.userException Fault Description: The developer token is invalid. I have also tried using the getClientAccounts <http://code.google.com/apis/adwords/docs/developer/AccountService.html#getClientAccounts> call using the following code: my $service = Google::Adwords::AccountService->new(); $service->email($email) ->password('MYPASSWORD') ->developerToken($email.'++GBP') ->clientEmail('client_1+'.$email); my @headers = ( SOAP::Header->name('email'=>$email), SOAP::Header->name('password'=>'PASSWORD'), SOAP::Header->name('useragent'=>'skeniverAgent'), SOAP::Header->name('developerToken'=>$email.'++GBP'), SOAP::Header->name('clientEmail'=>'client_1+'.$email), ); $resp = $service->call('getClientAccounts' => @headers); my @login_emails = ($resp->result(), $resp->paramsout()); logit('displayMainPage: Client Accounts: '.@login_emails.": @login_emails"); But am getting this returned: Can't locate object method "call" via package "Google::Adwords::AccountService" Can anyone please let me know what might be going wrong? Please note, the logit sub just write the text passed to it to a log file so that I can view the output... -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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