Hey David

What is the difference between Google::Adwords available on CPAN and the 
Google::Ads::Adwords module?

Using Google::Adwords mentions using your password to make requests (which I 
think is an older method and I should be using the Authentication Token). 
But I have this code:
my $service = Google::Adwords::AccountService->new();
 $service->email($email)
->password('pKd8IGKJKObFDXnVliwW')
->developerToken($email.'++GBP')
->clientEmail('client_1+'.$email)
;
$service->debug(1);
 my $account = $service->getAccountInfo();

But this returns:
Fault Code: soapenv:Server.userException
Fault Description: The developer token is invalid.

I got this code from here: 
http://search.cpan.org/~rohan/Google-Adwords-v1.14/lib/Google/Adwords/AccountService.pm

Adding an authToken header returns:
Can't locate object method "authToken" via package 
"Google::Adwords::AccountService"

So I've also tried this code:
my @headers = (
SOAP::Header->name('email'=>$email),
SOAP::Header->name('password'=>'pKd8IGKJKObFDXnVliwW'),
SOAP::Header->name('useragent'=>'skeniverAgent'),
SOAP::Header->name('developerToken'=>$email.'++GBP'),
SOAP::Header->name('clientEmail'=>'client_1+'.$email),
SOAP::Header->name( "alternateUrl"=>"https://adwords-sandbox.google.com/"; ),
SOAP::Header->name( "useSandbox"=>"true"),
);
 $resp = $service->call('getClientAccounts' => @headers);
my @login_emails = ($resp->result(), $resp->paramsout());

which returns:
Can't locate object method "call" via package 
"Google::Adwords::AccountService"

This was taken from SOAP tutorials and other places.

So I'm quite confused as to which authentication method should be used (all 
the docs say the AuthToken method, so I think thats right), but the 
Google::Adwords module doesn't like it at all.

So I assume there is a difference between the Ads::Adwords and 
Google::Adwords.

If the Google::Ads::Adwords is the right one, is it not possible to get it 
from CPAN, as this makes it a lot easier to install (I have to have my 
hosting company install modules and they are not sure whats going on 
either).

All in all, it's getting quite frustrating trying to get an application to 
work; and it's making me look a little silly as I told my boss I could do 
this :)

Is my confusion correct or am I barking completely up the wrong tree here?

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to