Hello,
You may refer to all the report types listed
here to pull the Cost metrics at different levels. At the campaign level, you may use the Campaign performance Report which will return the Cost metrics with one row per campaign. You can also take a look at the
PHP Reporting code samples as a reference.
Let me know if you have any other questions.
Regards,
Bharani, AdWords API Team