Hi all

I am trying to get to grips with the adwords API in PERL for a work project, 
but can't figure it out at all. I have been trying to follow these pages:
http://code.google.com/apis/adwords/docs/sandbox.html
http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.html#get

I have managed to get an authToken using the ClientLogin process (with an 
HTTP::Request), which falsely lead me to beleive that I was finally coming 
to terms with this all. But when trying to get the next part to work, the 
get request to the CampaignService, it's been a few hours of banging ones 
head against the wall...

This is the best I have been able to work out (please bear in mind that I am 
a self taught and very new to perl):

  my $soap = SOAP::Lite
  
->uri('https://adwords-sandbox.google.com/api/adwords/cm/v201101/CampaignService')
  
->proxy('https://adwords-sandbox.google.com/api/adwords/cm/v201101/CampaignService?wsdl');
  
  my $header = SOAP::Header->name("authenticate" =>
  SOAP::Header->value(
  SOAP::Header->name("authToken" => $authToken),
  SOAP::Header->name("developerToken" => "$email++GBP"),
  SOAP::Header->name("userString"=>'firsttest'),
  SOAP::Header->name("clientEmail"=>'client_1+'.$email),
  )
  );
  
  my $method = SOAP::Data->name('get');
  
  $resp = $soap->call($method, $header);
  logit ('Response: '.$resp.": $resp");

The logit just write the response out to a logfile for me, which as the 
moment is "1". Thats it.

Can anybody help me out with this? Any half decent tutorials would also be 
greatly appreciated!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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