I'm using TrafficEstimatorService.estimateKeywordList to get the cost
per click for several keywords.  However, a bunch of them that should
have a positive cost per click have 0.  For example, "vacation" has a
lowerCpc of $0.716, but "vacations" has 0 lowerCpc and upperCpc.
Typing "vacations" into the TrafficEstimatorSandbox [1], I get a CPC
of $1.71 - $2.35.  Why doesn't estimateKeywordList return the same
thing?

[1] https://adwords.google.com/select/TrafficEstimatorSandbox

Here is output from a sample Perl program [below] showing "vacation"
with cpc of 2.02-2.52, and "vacations" with cpc of 0-0.

$ ./estimateKeywordList.t vacation vacations

estimateKeywordList
keywordRequest=$VAR1 = bless( {
                 'maxCpc' => 100000000,
                 'text' => 'vacation',
                 'type' => 'Broad'
               }, 'Google::Adwords::KeywordRequest' );

keywordEstimates=$VAR1 = [
          bless( {
                   'upperClicksPerDay' => '5234.62',
                   'lowerCpc' => '2015624',
                   'lowerClicksPerDay' => '5214.775',
                   'id' => '-1',
                   'upperAvgPosition' => '3.0',
                   'upperCpc' => '2519531',
                   'lowerAvgPosition' => '1.0'
                 }, 'Google::Adwords::KeywordEstimate' )
        ];

estimateKeywordList
keywordRequest=$VAR1 = bless( {
                 'maxCpc' => 100000000,
                 'text' => 'vacations',
                 'type' => 'Broad'
               }, 'Google::Adwords::KeywordRequest' );

keywordEstimates=$VAR1 = [
          bless( {
                   'upperClicksPerDay' => '0.0',
                   'lowerCpc' => '0',
                   'lowerClicksPerDay' => '0.0',
                   'id' => '-1',
                   'upperAvgPosition' => '0.0',
                   'upperCpc' => '0',
                   'lowerAvgPosition' => '0.0'
                 }, 'Google::Adwords::KeywordEstimate' )
        ];


-------------------------------------------------
Here's the sample program that produces the output above:

#! /usr/bin/perl -w
=head1 NAME

estimateKeywordList.t - test Google's
TrafficEstimatorService.estimateKeywordList

=head1 SYNOPSIS

  estimateKeywordList.t [options] keyword [options] keyword ...

Options:
  -t --type   Broad, Exact, or Phrase
  -c --cpc    Cost per click, in dollars

=head1 AUTHOR

  Noel Burton-Krahn
  [email protected]

=cut

use strict;

use Google::Adwords::TrafficEstimatorService;
use Google::Adwords::KeywordRequest;
use Data::Dumper;
use Getopt::Long;

my $service = Google::Adwords::TrafficEstimatorService->new()
        ->email('XXXXXX')
        ->password('XXXXXX')
        ->clientCustomerId('744-219-7833')
        ->api_version('v13')
        ->applicationToken('XXXXXX)
        ->developerToken('XXXXXX')
        ;

my $match_type = 'Broad';
my $cpc = 100;
my $country = 'US';

sub lookup {
        my($keyword) = @_;

        my $keywordRequest = Google::Adwords::KeywordRequest->new
                ->text($keyword)
                ->type($match_type)
                ->maxCpc($cpc*1000000);

        my @keywordEstimates = $service->estimateKeywordList
($keywordRequest);

        print("estimateKeywordList"
              . "\nkeywordRequest=" . Dumper($keywordRequest)
              . "\nkeywordEstimates=" . Dumper(\...@keywordestimates)
              . "\n");
}


GetOptions('type|t=s' => \$match_type,
           'cpc|c=i' => \$cpc,
           'country=s' => \$country,
           '<>' => \&lookup);




--

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