Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 2.38 KB

AdReportApi.md

File metadata and controls

71 lines (46 loc) · 2.38 KB

eBay\Sell\Marketing\AdReportApi

All URIs are relative to https://api.ebay.com/sell/marketing/v1.

Method HTTP request Description
getReport() GET /ad_report/{report_id}

getReport()

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).

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: api_auth
$config = eBay\Sell\Marketing\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Configure OAuth2 access token for authorization: api_auth
$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;
}

Parameters

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.

Return type

object

Authorization

api_auth, api_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/tab-separated-values

[Back to top] [Back to API list] [Back to Model list] [Back to README]