Google::Ads::GoogleAds::Utils::GoogleAdsHelper
This module provides utility methods to other services.
Removes the fields not presenting in the constructor arguments from a newly created Google Ads API entity. These fields will be excluded when encoding the JSON HTTP request payload.
hash_ref: a hash reference to the newly created Google Ads API entity.
args: the arguments for the constructor of a Google Ads API entity.
Checks whether the parameters in the code sample are correctly specified. The values can either be set in the source code or passed in from the command line.
params: an array of parameters in the code sample to verify.
True, if all the parameters are correctly specified. False, otherwise.
Removes the leading and trailing spaces and line breaks from a string.
The original input string.
The trimmed string without leading and trailing white spaces.
Expands a path template by replacing the parameters in braces with the given arguments.
path_template: the path template to expand. The format could be: 'customers/{customer_id}/adGroups/{ad_group_id}' or 'v2/customers/{+customerId}/adGroups:mutate'.
args: the args in scalar or array/hash reference used to expand the template.
The expanded path template.
Copies a hash reference deeply to a new object.
original: the original hash reference to copy from.
A deeply copied object based on the original hash reference.
original
Convert a string to lower underscore case.
The result string in lower underscore case.
Converts a scalar to boolean string.
The original input scalar value.
"true" if the input value is valid. "false", otherwise.
Copyright 2019 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
$Rev: $ $LastChangedBy: $ $Id: $
To install Google::Ads::GoogleAds::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::GoogleAds::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::GoogleAds::Client
For more information on module installation, please visit the detailed CPAN module installation guide.