GOOGLE-ADWORDS-PERL-CLIENT

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

                 "Cwd" => 0,
                 "Data::Uniqid" => 0,
                 "Date::Parse" => 0,
                 "Date::Format" => 0,
                 "File::Basename" => 0,
                 "File::HomeDir" => 0,
                 "File::Path" => 0,
                 "File::Spec" => 0,
                 "File::Temp" => 0,
                 "Getopt::Long" => 0,
                 "IO::Socket::SSL" => 0,
                 "List::Util" => 0,
                 "Log::Log4perl" => 0,
                 "LWP::UserAgent" => 0,
                 "Math::Random::MT" => 0,
                 "POSIX" => 0,
                 "SOAP::WSDL" => "2.00.10",
                 "Template" => 0,
                 "URI::Escape" => 0,
                 "XML::Simple" => 0,
                 "XML::XPath" => 0,

META.json  view on Meta::CPAN

            "Cwd" : "0",
            "Data::Uniqid" : "0",
            "Date::Format" : "0",
            "Date::Parse" : "0",
            "File::Basename" : "0",
            "File::HomeDir" : "0",
            "File::Path" : "0",
            "File::Spec" : "0",
            "File::Temp" : "0",
            "Getopt::Long" : "0",
            "IO::Socket::SSL" : "0",
            "LWP::UserAgent" : "0",
            "List::Util" : "0",
            "Log::Log4perl" : "0",
            "Math::Random::MT" : "0",
            "POSIX" : "0",
            "SOAP::WSDL" : "2.000010",
            "Template" : "0",
            "URI::Escape" : "0",
            "XML::Simple" : "0",
            "XML::XPath" : "0",

META.yml  view on Meta::CPAN

  Cwd: 0
  Data::Uniqid: 0
  Date::Format: 0
  Date::Parse: 0
  File::Basename: 0
  File::HomeDir: 0
  File::Path: 0
  File::Spec: 0
  File::Temp: 0
  Getopt::Long: 0
  IO::Socket::SSL: 0
  LWP::UserAgent: 0
  List::Util: 0
  Log::Log4perl: 0
  Math::Random::MT: 0
  POSIX: 0
  SOAP::WSDL: 2.000010
  Template: 0
  URI::Escape: 0
  XML::Simple: 0
  XML::XPath: 0

Makefile.PL  view on Meta::CPAN

                   'Cwd' => 0,
                   'Data::Uniqid' => 0,
                   'Date::Format' => 0,
                   'Date::Parse' => 0,
                   'File::Basename' => 0,
                   'File::HomeDir' => 0,
                   'File::Path' => 0,
                   'File::Spec' => 0,
                   'File::Temp' => 0,
                   'Getopt::Long' => 0,
                   'IO::Socket::SSL' => 0,
                   'LWP::UserAgent' => 0,
                   'List::Util' => 0,
                   'Log::Log4perl' => 0,
                   'Math::Random::MT' => 0,
                   'Module::Build' => 0,
                   'POSIX' => 0,
                   'SOAP::WSDL' => '2.000010',
                   'Template' => 0,
                   'Test::MockObject' => 0,
                   'Test::MockObject::Extends' => 0,

adwords.properties  view on Meta::CPAN

# This can be programmatically set in the Client object as
# $client->set_client_id
clientId=INSERT_CLIENT_CUSTOMER_ID_HERE

### Peer verification of SSL certificates ###
#
# To avoid spoofing attacks, enable either a CAPath or CAFile for SSL
# certificates validation.
#
# This library can use two different underlying SSL modules either
# IO::Socket::SSL or Crypt::SSLeay, being IO::Socket::SSL the default and
# recommended since it can do certificate authenticity validation as well as
# hostname validation while Crypt::SSLeay does not support hostname validation.

# The certificate authority directory to search in when performing peer
# validation. For example: /etc/ssl/certs
# CAPath=<PATH TO CERTIFICATE AUTHORITY DIRECTORY>

# The certificate authority file to use when performing peer validation.
# For example: /etc/ssl/certs/ca-certificates.crt
# CAFile=<PATH TO CERTIFICATE AUTHORITY FILE>

lib/Google/Ads/AdWords/Client.pm  view on Meta::CPAN

  foreach my $handler_id (AUTH_HANDLERS_ORDER) {
    if ( $auth_handlers->{$handler_id}->is_auth_enabled() ) {
      $self->set___enabled_auth_handler( $auth_handlers->{$handler_id} );
      last;
    }
  }

  return $self->get___enabled_auth_handler();
}

# Private method to setup IO::Socket::SSL and Crypt::SSLeay variables
# for certificate and hostname validation.
sub __setup_SSL {
  my ( $self, $ca_path, $ca_file ) = @_;
  if ( $ca_path || $ca_file ) {
    $ENV{HTTPS_CA_DIR}  = $ca_path;
    $ENV{HTTPS_CA_FILE} = $ca_file;
    eval {
      require IO::Socket::SSL;
      require Net::SSLeay;
      IO::Socket::SSL::set_ctx_defaults(
        verify_mode         => Net::SSLeay->VERIFY_PEER(),
        SSL_verifycn_scheme => "www",
        ca_file             => $ca_file,
        ca_path             => $ca_path
      );
    };
  }
}

# Private method to parse values in a properties file.

lib/Google/Ads/AdWords/Client.pm  view on Meta::CPAN

Returns the ClientLogin authorization handler attached to the client, for
manully setting its specific properties.

$client->get_auth_token_handler()->set_email('email');
$client->get_auth_token_handler()->set_password('email');

Refer to L<Google::Ads::AdWords::AuthTokenHandler> for more details.

=head2 __setup_SSL (Private)

Setups IO::Socket::SSL and Crypt::SSLeay enviroment variables to work with
SSL certificate validation.

=head3 Parameters

The path to the certificate authorites folder and the path to the certificate
authorites file. Either can be null.

=head3 Returns

Nothing.



( run in 0.264 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )