Petal Ads report
petal_reportQuery Huawei Petal Ads reporting API to retrieve monetization data such as earnings, ad requests, impressions, and rates. Supports grouping by country, app, placement, or ad type, with filters and pagination.
Instructions
Query the Huawei Petal Ads Publisher Service Reporting API with full control over grouping, filtering, ordering, and pagination. Returns monetization data (earnings, ad requests, impressions, clicks, match/show/click rates).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return the raw API JSON instead of a formatted table | |
| page | No | Page number (default 1) | |
| app_ids | No | Filter to specific Petal Ads app IDs | |
| ad_types | No | Filter to specific ad formats | |
| currency | No | Report currency: CNY, USD, or EUR (default USD) | |
| end_date | No | End date in YYYY-MM-DD (defaults to start_date) | |
| group_by | No | Breakdown dimensions, e.g. STAT_BREAK_DOWNS_APP_ID | |
| countries | No | Filter to country codes, e.g. ["ID", "US"] | |
| page_size | No | Rows per page (default 50, max 1000) | |
| order_type | No | Order direction | |
| start_date | Yes | Start date in YYYY-MM-DD | |
| order_field | No | Field to order by | |
| placement_ids | No | Filter to specific ad placement IDs | |
| time_granularity | No | Time granularity (default STAT_TIME_GRANULARITY_DAILY) |