Re: AdWords API Re: Perl API Support.

2010-03-22 Thread Rohan Almeida


Hi,


Rohan [CC'd] would you consider deleting your all your Google-Adwords
distributions from CPAN? They'll still all be available via BACKPAN
(http://backpan.perl.org/authors/id/R/RO/ROHAN/) but deleting them will
mean Google-Adwords will no longer be indexed or appear on search.cpan.org.
That'll reduce the current confusion. FYI You can delete the files at
https://pause.perl.org/pause/authenquery?ACTION=delete_files


Sure, I'll do this. Any specific date in mind, or I should just 
go ahead and delete them all right now?


I can help with the CPAN maintenance of the new module. The 
current code hosted at code.google.com is under the Apache 
License 2.0, which seems quite liberal to me in creation of 
derivative works, and hosting that on another public place.



I'll also get my hands dirty with SOAP::WSDL.


Thanks,
Rohan





Putting the new library on CPAN would be great for developers,


Not just for developers but for yourselves as authors. The automated
testing you get via cpantesters (see above) is invaluable.


but what's held us back
from doing that in the past is that the installation is currently very
manual, involving the SOAP::WSDL patches, etc.  We can work on
eliminating these steps so that distribution of the library is
simpler.

Thanks again for the interest and excitement.  We look forward to
working with you and other Perl developers.


Since Martin's time is limited and he's very open to contributors
(see http://cpansearch.perl.org/src/MKUTTER/SOAP-WSDL-2.00.99_1/HACKING)
perhaps one of the adwords developers could spare some time to
contribute directly to the project and commit changes to the repository.

Now would be a great time as Martin's working towards a major release
based on the Typemap branch that AdWords API uses.

Tim.


Best,
- Eric Koleda, AdWords API Team

On Mar 18, 9:57 am, john napiorkowski jjn1...@gmail.com wrote:

I think some things I'd like to help work out would include:

1) SOAP::WSDL patches, if these are good patches I will contact the
cpan author and see if we can get them integrated and released on
CPAN.  CPAN is the standard toolchain for perl developers and is the
community approved method for contributing code.  So if these changes
are needed I'd like to get them on CPAN.  Please consider if this can
work with your legal team and terms.  We' d be happy to add a note to
the author section saying something like, some code contributed by
Google or similar.  Let me know what you think

2) Ideally this code in google-api-adwords would also get released to
CPAN in a regular way.  obviously the developer repo and related tools
like bugtracking and discussion can reside anywhere, but again any
Perl developer would look to CPAN first for code.  If the existing
Google::Adwords module is going be be considered deprecated I need to
get the author to mark a new release as such, and ideally we'd cut a
working version of the code in the repository over here onto CPAN,
like under Google::API::Adwords or similar.  Is there someone on the
Google end that wants to own this CPAN module?   If you need help
getting this together I would gladly assist.

Myself I am not a SOAP expert.  In general SOAP is not preferred by
any dynamic language, it is a better fit for strongly typed languages
such as Java.  So I can't assist very much on that side.  However I
can act to help facilitate communication between our communities and
with other bookekeeping tasks, like CPAN access, etc.  Some developers
on our side may be willing to put some additional time into getting
all this working.

Thanks!

John Napiorkowski


On Mar 17, 10:48 am, john napiorkowski jjn1...@gmail.com wrote:

On Mar 16, 6:24 pm, AdWords API Advisor adwordsapiadvi...@google.com
wrote:

Hi Rick
We are aware that the Perl client library is out of date, and we are
actively working on updating it to take full advantage of the v200909
version of the API.  We encourage AdWords API Perl developers to
contribute to the open source project and help to accelerate the
process, but we want you to understand that this work will not be
completed prior to the April 22 sunset of most v13 services.  We
recommend that developers either migrate their applications to another
language and client library (such as PHP, Python, etc.) or continue
the development of their own implementation in Perl.  A complete list
of the AdWords API client libraries is available here:
 http://code.google.com/apis/adwords/docs/clients.html
Best,
- Eric Koleda, AdWords API Team

Recently blogged about this decision over 
at:http://jjnapiorkowski.vox.com/library/post/google-do-no-evil-to-perl
I hope we can work together to address this problem.  I really don't
think use a language other then Perl or write your own bindings is a
very productive solution.  I hope we can do better.

On Mar 8, 1:50 pm, Rick google...@ppcassurance.com wrote:

We've been using the perl api for v13, and are trying to use the v2009
api.
However, the perl api appears broken, 

Re: AdWords API Google::Adwords perl module update for v2009?

2010-02-19 Thread Rohan Almeida


Hi,

I'm the author of the Google::Adwords Perl module which is 
currently on CPAN.


I thought I'll make it clear for now, that I have no plans of 
upgrading this module for the v2009 API. Google provides a Perl 
library for the new API so that would be the best route. Besides 
the changes are numerous to perform a 'upgrade' and it would be 
better to just start afresh which is a huge task in itself.


All the best in upgrading your Perl code for the new v2009 API. 
I'm available on this forum and I look forward to help in any way 
if possible.


--
Rohan


Grant wrote:

Does anyone know if the Google::Adwords perl module will be updated
for v2009?  I can't seem to get ahold of the author.



--
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-...@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.



AdWords API Re: Perl / SOAP Adwords API problem

2009-02-16 Thread Rohan Almeida


Hi,

It looks to me like you're using an incorrect XPath expression to 
get to your results. //body i.e. I guess using //moreSpecific 
  should help.

I've also had a try at this using Google::Adwords, but on the 
sandbox.

my $seed_keyword1 = Google::Adwords::SeedKeyword-new;
$seed_keyword1-negative(0);
$seed_keyword1-text('trusted places');
$seed_keyword1-type('Broad');

my $keyword_variations = $service-getKeywordVariations(
   {
 seedKeywords = [ $seed_keyword1, ],
 useSynonyms  = 1,
 languages= [ 'en', ],
 countries= [ 'US', ],
   }
);

for ( @{ $keyword_variations-moreSpecific } ) {
   print Text:  . $_-text . \n;
   print advertiserCompetitionScale: 
 .  $_-advertiserCompetitionScale . \n;
}


Hope this helps.

-- 
Rohan


discodan wrote:
 Hi all,
 
 Would really appreciate your help. This is probably more of a Perl /
 SOAP than adwords API question, but I've spent hours trawling the
 internet for an answer to this and cannot find it, so I'm hoping you
 can help :). I'm relatively new to Perl and SOAP, and I'm trying to
 implement a connection to the Google Adwords API using SOAP::Lite. I
 have it almost working but however I try and get a return value from
 SOAP::SOM (e.g. using valueof or result) I only seem to get the last
 element. Even calling valueof(//Body) just gives me one element. I
 have tried debugging the code and using Dumper, but the SOAP::Lite
 code is quite unreadable (at least to me :)
 and I can't work out whats going on. I've tried implementing this
 directly both using SOAP::Lite and via Google::Adwords, and they both
 have the same behaviour.
 
 This what I get from valueof(//Body):
 
 $VAR1 = {
 'getKeywordVariationsResponse' = {
 
 'getKeywordVariationsReturn' = {
 
 'moreSpecific' = {
 
 'searchVolumeScale' = '2',
 
 'language' = '',
 
 'text' = 'trusted places 1',
 
 'advertiserCompetitionScale' = '3'
 
 }
 
 }
 }
 };
 
 But I know there is more than one KeywordVariation from using Dumper
 on the SOAP::SOM object.
 
 This is the code I am using, its basically the example provided by
 Google:
 
 use strict;
 use warnings;
 use English '-no_match_vars';
 use SOAP::Lite;
 use Data::Dumper;
 binmode(STDOUT, ':utf8');
 
 # Provide AdWords login information.
 my $email = '';
 my $password = '';
 my $client_email = 'client_1+dan.j.rog...@gmail.com';
 my $useragent = 'QYPE: AdWords API Perl Sample Code';
 my $developer_token = 'dan.j.rog...@gmail.com++usd';
 my $application_token = 'INSERT_APPLICATION_TOKEN_HERE';
 
 # Set up service connection with autotyping disabled and fault handler
 # registered. To send requests to production environment, replace
 sandbox with
 # adwords. To view XML request/response, uncomment
 # SOAP::Lite-import(+trace = 'debug');.
 my $url =
 sprintf('https://%s.google.com/api/adwords/v12/KeywordToolService',
 'sandbox');
 
 my $wsdl = $url . '?wsdl';
 
 my $service =
 SOAP::Lite-service($wsdl)-autotype(0)-readable(1)-proxy($url);
 
 $service-on_fault(sub {
 my $response = $ARG[1];
 die('The following SOAP fault occurred:', \n,
 ' faultcode: ', $response-faultcode(), \n,
 ' faultstring: ', $response-faultstring(),
 \n)
 });
 SOAP::Lite-import(+trace = 'debug');
 
 # Define SOAP headers.
 my @headers = (
 SOAP::Header-name('email' = $email),
 SOAP::Header-name('password' = $password),
 SOAP::Header-name('clientEmail' = $client_email),
 SOAP::Header-name('useragent' = $useragent),
 SOAP::Header-name('developerToken' = $developer_token),
 SOAP::Header-name('applicationToken' = $application_token)
 );
 
 # Create seed keyword structure.
 my $seed_keyword = {
 'negative' = 'false',
 'text' = 'trusted places',
 'type' = 'Broad',
 };
 
 my $seed_keywords = SOAP::Data-name('seed_keywords' =
 [$seed_keyword]);
 my $use_synonyms = SOAP::Data-name('useSynonyms' = 'true');
 my $languages = SOAP::Data-name('languages' = ['en']);
 my $countries = SOAP::Data-name('countries' = ['US']);
 
 # Get keyword variations.
 my $variation_lists = $service-call('getKeywordVariations' =
 $seed_keywords,
 $use_synonyms, $languages, $countries, @headers);
 
 print Dumper($variation_lists);
 
 my @data = $variation_lists-valueof(//Body);
 
 foreach my $data_word (@data){
 print Dumper($data_word);
 }
 
 If anyone knows where I am going wrong I'd be most grateful!
 
 Thanks for your help.
  
 


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



AdWords API Google::Adwords v1.12 Perl module (support for v13)

2009-02-15 Thread Rohan Almeida


Hi,

I've released v1.12 of the Google::Adwords Perl module which now 
has support for v13 of the Adwords API. All my sandbox tests 
pass, so it should be an easy enough upgrade for you. Please use 
the cpan utility to upgrade. If not, you can download it from here -
http://search.cpan.org/CPAN/authors/id/R/RO/ROHAN/Google-Adwords-v1.12.tar.gz


If you face any problems due to the upgrade, don't hesitate to 
contact me directly.



Thanks,
Rohan


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