The API uses a key from the developer dashboard. To find it:
From the Operate tab of the developer dashboard, ensure that you are viewing you Organization dashboard (no specific Project is selected).
Select Ad Data Export on the left navigation bar to expand its options, then select API Access.
For more information, see documentation on using the Monetization Stats API.