This example in Java explains how to download a Criteria Performance Report. You can download Ad Performance Report using the same example by changing the report type
here. Also, you can change the download format to XML
here (JSON
download format is currently not supported). If you plan to read the report output as a stream, you can use the
StreamCriteriaReportResults.java example instead. Same examples are available in
other client libraries as well, however, please note that the streaming example is not available in the PHP client library. Please revert if you have additional questions or concerns.