Hi Martin,
Below is the sample HTTP POST request for Search Query Performance Report. The first half is what you are putting for the HTTP header (e.g. developer token, clientCustomerId, etc), and the second half is the details of your HTTP body.
POST /api/adwords/reportdownload/v201710 HTTP/1.1
Host: adwords.google.com
User-Agent: curl, gzip
Accept: /
Accept-Encoding: gzip
Authorization: Bearer [Enter OAuth 2.0 access token here]
developerToken: [Enter developerToken here]
clientCustomerId: [Enter clientCustomerID here]
Content-Length: 784
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------12d01fae60c7b559
Parameters:
__rdxml: <?xml version="1.0" encoding="UTF-8"?>
<reportDefinition xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201710">
<ns2:selector>
<ns2:fields>CampaignId</ns2:fields>
<ns2:fields>CampaignName</ns2:fields>
<ns2:fields>Query</ns2:fields>
<ns2:fields>Clicks</ns2:fields>
</ns2:selector>
<ns2:reportName>Sampe report #XXXXXXX</ns2:reportName>
<ns2:reportType>SEARCH_QUERY_PERFORMANCE_REPORT</ns2:reportType>
<ns2:dateRangeType>YESTERDAY</ns2:dateRangeType>
<ns2:downloadFormat>CSV</ns2:downloadFormat>
</reportDefinition>
Let me know if you have further clarifications.
Thanks,
Vincent
AdWords API Team