NAME

Google::Ads::Common::MapUtils

SYNOPSIS

use Google::Ads::Common::MapUtils;

my $map_entries = Google::Ads::Common::MapUtils::get_map($map_xml);
# Make use of $map_entries.

DESCRIPTION

A collection of utility methods for working with maps (associative arrays).

SUBROUTINES

get_map

Gets a map (associative array) from an array of map entries. A map entry is any object that has a key and value field.

Parameters

An array of map entries.

Returns

A map built from the keys and values of the map entries.

build_api_map

Builds an API map as defined in the WSDLs, which is really a list of key-value maps from a given native Perl map.

Parameters

A native Perl map to be translated to "map" as expected by the API.

Returns

A list of maps in which each map represents an entry of a key and value from the given map.

LICENSE AND COPYRIGHT

Copyright 2011 Google Inc.

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: $