Google-Ads-AdWords-Client

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

                 "Date::Parse" => 0,
                 "Date::Format" => 0,
                 "Digest::SHA" => 0,
                 "File::Basename" => 0,
                 "File::HomeDir" => 0,
                 "File::Path" => 0,
                 "File::Spec" => 0,
                 "File::Temp" => 0,
                 "Getopt::Long" => 0,
                 "HTTP::Server::Simple::CGI" => 0,
                 "IO::Socket::SSL" => 0,
                 "JSON::Parse" => 0,
                 "List::Util" => 0,
                 "Log::Log4perl" => 0,
                 "LWP::Protocol::https" => 0,
                 "LWP::UserAgent" => 0,
                 "Math::Random::MT" => 0,
                 "POSIX" => 0,
                 "SOAP::WSDL" => "2.00.10",
                 "Template" => 0,
                 "URI::Escape" => 0,

META.json  view on Meta::CPAN

            "Date::Format" : "0",
            "Date::Parse" : "0",
            "Digest::SHA" : "0",
            "File::Basename" : "0",
            "File::HomeDir" : "0",
            "File::Path" : "0",
            "File::Spec" : "0",
            "File::Temp" : "0",
            "Getopt::Long" : "0",
            "HTTP::Server::Simple::CGI" : "0",
            "IO::Socket::SSL" : "0",
            "JSON::Parse" : "0",
            "LWP::Protocol::https" : "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",

META.yml  view on Meta::CPAN

  Date::Format: '0'
  Date::Parse: '0'
  Digest::SHA: '0'
  File::Basename: '0'
  File::HomeDir: '0'
  File::Path: '0'
  File::Spec: '0'
  File::Temp: '0'
  Getopt::Long: '0'
  HTTP::Server::Simple::CGI: '0'
  IO::Socket::SSL: '0'
  JSON::Parse: '0'
  LWP::Protocol::https: '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'

Makefile.PL  view on Meta::CPAN

                   'Date::Format' => 0,
                   'Date::Parse' => 0,
                   'Digest::SHA' => 0,
                   'File::Basename' => 0,
                   'File::HomeDir' => 0,
                   'File::Path' => 0,
                   'File::Spec' => 0,
                   'File::Temp' => 0,
                   'Getopt::Long' => 0,
                   'HTTP::Server::Simple::CGI' => 0,
                   'IO::Socket::SSL' => 0,
                   'JSON::Parse' => 0,
                   'LWP::Protocol::https' => 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,

adwords.properties  view on Meta::CPAN

# Optional: Set to 0 to not include utility usage information in the
# header's user agent when making requests. Defaults to true (1) if omitted.
# header.userAgent.includeUtilities=1

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

$client->get_oauth_2_service_accounts_handler()->
    set_delegated_email_address('delegated-email');
$client->get_oauth_2_service_accounts_handler()->
    set_pem_file('path-to-certificate');
$client->get_oauth_2_service_accounts_handler()->set_display_name('email');

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

=head2 __setup_SSL (Private)

Setups IO::Socket::SSL and Crypt::SSLeay environment 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.852 second using v1.01-cache-2.11-cpan-4d50c553e7e )