I am trying to retrieve earnings from a channel in my CMS using the YouTube API. When I execute my query the response only contains the metrics datatype and not the actual value. How do I return the earnings from the API?
stdClass Object (
[kind] => youtubeAnalytics#resultTable [columnHeaders] => Array (
[0] => stdClass Object (
[name] => earnings [columnType] => METRIC [dataType] => FLOAT
)
[1] => stdClass Object (
[name] => grossRevenue [columnType] => METRIC [dataType] => FLOAT
)
)
)