NAME
Google::Ads::GoogleAds::Utilities::GoogleAdsHelper
DESCRIPTION
This module provides utility methods to other services.
METHODS
remove_unassigned_fields
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.
Parameters
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.
check_params
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.
Parameters
params: an array of parameters in the code sample to verify.
Returns
True, if all the parameters are correctly specified. False, otherwise.
trim
Remove the leading and trailing white spaces from a string.
Parameters
The original input string.
Returns
The trimmed string without leading and trailing white spaces.
LICENSE AND COPYRIGHT
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.
REPOSITORY INFORMATION
$Rev: $
$LastChangedBy: $
$Id: $