| 1 | # Copyright 2011, Google Inc. All Rights Reserved. | ||
| 2 | # | ||
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | # you may not use this file except in compliance with the License. | ||
| 5 | # You may obtain a copy of the License at | ||
| 6 | # | ||
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | # | ||
| 9 | # Unless required by applicable law or agreed to in writing, software | ||
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | # See the License for the specific language governing permissions and | ||
| 13 | # limitations under the License. | ||
| 14 | # | ||
| 15 | # Module to store package-level constants. | ||
| 16 | |||
| 17 | package Google::Ads::Common::Constants; | ||
| 18 | |||
| 19 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 10 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | # Main version number that the rest of the modules on this package pick up of. | ||
| 23 | 10 | our $VERSION = qv("2.10.0"); | |
| 24 | |||
| 25 | 10 | ▶ | use constant CLIENT_LOGIN_DEPRECATION_MESSAGE => |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | "ClientLogin has been officially deprecated" . | ||
| 27 | " as of April 20, 2012, for more information consult our documentation at" . | ||
| 28 | " https://developers.google.com/accounts/docs/AuthForInstalledApps.\n" . | ||
| 29 | "Instead, we strongly recommend you migrate to OAuth2.0, read our" . | ||
| 30 | " client library guide to get started today at" . | ||
| 31 | 10 | " https://github.com/googleads/googleads-perl-lib/wiki/Using-OAuth-2.0"; | |
| 32 | |||
| 33 | 10 | ▶ | use constant NO_AUTH_HANDLER_IS_SETUP_MESSAGE => |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | "The library couldn't find any authorization mechanism set up to " . | ||
| 35 | "properly sign the requests against the API. Please read the following " . | ||
| 36 | "guide on how to setup OAuth2 " . | ||
| 37 | 10 | "https://github.com/googleads/googleads-perl-lib/wiki/Using-OAuth-2.0"; | |
| 38 | |||
| 39 | 10 | 1; | |