EXPORT NETWORK PUBLISHER DATA - Reports Export Examples
This endpoint allows you to retrieve information about publishers associated with a Network Publisher account. Data is returned in JSON format by default, but can be exported as XLSX by including the download=true parameter in the query string.
🔹 Important: Only publishers operating in the Network format are allowed to access this report.
Request
curl --location 'https://api-retail-media.newtail.com.br/report/network/publishers?start_date=2025-01-01&end_date=2025-01-31' \
--header 'x-app-id: XXXX' \
--header 'x-api-key: YYYY' \
--header 'Content-Type: application/json'
Query Parameters
| Parameter |
Required |
Description |
start_date |
Yes |
Start date for metrics in YYYY-MM-DD format. |
end_date |
Yes |
End date for metrics in YYYY-MM-DD format. |
publisher_name |
No |
Filters results by publisher name. |
account_info |
No |
If true, includes detailed account information in the result. Default: false. |
page |
No |
Page number of the results. Default: 1. |
quantity |
No |
Number of items per page. Default: 100. |
count |
No |
If true, returns the total number of available records. Default: false. |
order_by |
No |
Field for sorting results. Possible values: name, impressions, clicks, ctr, conversions, conversion_rate, income, roas, requests. |
order_direction |
No |
Sort direction. Possible values: asc (ascending) or desc (descending). |
download |
No |
If true, returns an XLSX file buffer for download instead of JSON. |
Response
{
"total": 1,
"pages": 1,
"currentPage": 1,
"data": [
{
"id": "publisher-id",
"name": "publisher-name",
"account_id": "publisher-account-name",
"metrics": {
"publisher_id": "publisher-id",
"impressions": "0",
"views": "0",
"clicks": "0",
"conversions": "0",
"conversion_rate": "0",
"total_conversions_items_quantity": "0",
"ctr": "0",
"income": "0.00",
"ecpm": "0",
"total_spent": "0.0000",
"cpa": "0",
"avg_cpc": "0",
"avg_cpm": "0",
"conversions_quantity": "0",
"roas": "0.0",
"adcost": "0.0",
"requests": "1"
},
"account_logo": "https://cdn.newtail.com.br/accounts/4852asd4q-3b0a-11ef-b7a2-014ea2680b7e/assets/publisher-logo.png",
"account_theme": {
"primary_color": "#00B941",
"header_color": "#00B941",
"second_color": "#00B941",
"dark_color": "#00B941"
}
}
]
}
Response Body
| Field |
Type |
Description |
total |
Number |
Total number of network publishers available |
pages |
Number |
Total number of pages for pagination |
currentPage |
Number |
Current page number |
data |
Array |
Array of network publisher objects |
Network Publisher Object Fields
| Field |
Type |
Description |
id |
String |
Unique network publisher identifier |
name |
String |
Publisher name |
account_id |
String |
Account identifier |
metrics |
Object |
Performance metrics object |
account_logo |
String |
URL of the publisher’s logo |
account_theme |
Object |
Theme configuration object |
Metrics Object Fields
| Field |
Type |
Description |
publisher_id |
String |
Publisher identifier |
impressions |
String |
Total number of ad impressions |
views |
String |
Total number of ad views |
clicks |
String |
Total number of ad clicks |
conversions |
String |
Total number of conversions |
conversion_rate |
String |
Conversion rate percentage |
total_conversions_items_quantity |
String |
Total quantity of converted items |
ctr |
String |
Click-through rate percentage |
income |
String |
Total income generated |
ecpm |
String |
Effective cost per mille (CPM) |
total_spent |
String |
Total amount spent |
cpa |
String |
Cost per acquisition |
avg_cpc |
String |
Average cost per click |
avg_cpm |
String |
Average cost per mille |
conversions_quantity |
String |
Total quantity of converted items |
roas |
String |
Return on ad spend |
adcost |
String |
Ad cost |
requests |
String |
Total number of ad requests |
Account Theme Object Fields
| Field |
Type |
Description |
primary_color |
String |
Primary color code (hex format) |
header_color |
String |
Header color code (hex format) |
second_color |
String |
Secondary color code (hex format) |
dark_color |
String |
Dark color code (hex format) |