ent/v2/quickstart>
For convenience, add your Merchant account ID to the *.json file provided by Google.
Your complete *.json file, after adding your merchant ID, will look something like this:
{
ogleapis.com/content/v2.1',
debug => 0,
config_file => 'content-api-key.json',
config_json => $json_text,
merchant_id => '123456789',
});
my ($result, $products, $batch_id
e of external C<.json> config file.
Either config_file or config_json must be provided. If both config_file
and config_json are provided, config_file will be used.
=head3 config_json
Text containing
tstatuses, productstatuses methods. Add "custom" resource
# + v1.01 03/27/2018 Added config_json, merchant_id options and switched to Crypt::JWT
# + v1.00 03/23/2018 initial release
#
# CO
##########################
package Google::ContentAPI;
use strict;
use warnings;
use Carp;
use JSON;
use Crypt::JWT qw(encode_jwt);
use REST::Client;
use HTML::Entities;
our $VERSION = '1.03';
su
file});
} elsif ($params->{config_json}) {
$self->{config} = decode_json $params->{config_json};
} else {
croak "config_file or config_json not provided in new()";
}
$se