All URIs are relative to https://api.ebay.com/sell/marketing/v1.
Method | HTTP request | Description |
---|---|---|
getReport() | GET /ad_report/{report_id} |
getReport($report_id): object
This call downloads the report as specified by the report_id path parameter. Call createReportTask to schedule and generate a Promoted Listings report. All date values are returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Authorization Code
$config = Ebay\Sell\Marketing\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Ebay\Sell\Marketing\Api\AdReportApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$report_id = 'report_id_example'; // string | The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when you run a report task with a call to createReportTask. Get all the seller's report IDs by calling getReportTasks.
try {
$result = $apiInstance->getReport($report_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AdReportApi->getReport: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
report_id | string | The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when you run a report task with a call to createReportTask. Get all the seller's report IDs by calling getReportTasks. |
object
[Authorization Code](../../README.md#Authorization Code)
- Content-Type: Not defined
- Accept:
text/tab-separated-values
,application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]