Data structure returned is not convertible in the requested format. Try to call this method with the parameters '&format=original&serialize=1'; you will get the original php data structure serialized. The data structure looks like this:
$data = array (
'website' => 'e-training',
'prettyDate' => 'Week 10 August - 16 August 2020',
'metadata' =>
array (
'category' => 'Visitors',
'name' => 'Country',
'module' => 'UserCountry',
'action' => 'getCountry',
'dimension' => 'Country',
'metrics' =>
array (
'nb_visits' => 'Visits',
'nb_actions' => 'Actions',
),
'processedMetrics' =>
array (
'nb_actions_per_visit' => 'Actions per Visit',
'avg_time_on_site' => 'Avg. Time on Website',
'bounce_rate' => 'Bounce Rate',
'conversion_rate' => 'Conversion Rate',
),
'uniqueId' => 'UserCountry_getCountry',
),
'columns' =>
array (
'label' => 'Country',
'nb_visits' => 'Visits',
'nb_actions' => 'Actions',
'nb_actions_per_visit' => 'Actions per Visit',
'avg_time_on_site' => 'Avg. Time on Website',
'bounce_rate' => 'Bounce Rate',
'conversion_rate' => 'Conversion Rate',
),
'reportData' =>
array (
),
'reportMetadata' =>
array (
),
);