*/
$request->ActiveList = new Types\ItemListCustomizationType();
$request->ActiveList->Include = true;
$request->ActiveList->Pagination = new Types\PaginationType();
$request->ActiveList->Pagination->EntriesPerPage = 10;
$request->ActiveList->Sort = Enums\ItemSortTypeCodeType::C_CURRENT_PRICE_DESCENDING;
$pageNum = 1;
do {
    $request->ActiveList->Pagination->PageNumber = $pageNum;
    /**
     * Send the request to the GetMyeBaySelling service operation.
     *
     * For more information about calling a service operation, see:
     * http://devbay.net/sdk/guides/getting-started/#service-operation
     */
    $response = $service->getMyeBaySelling($request);
    /**
     * Output the result of calling the service operation.
     *
     * For more information about working with the service response object, see:
     * http://devbay.net/sdk/guides/getting-started/#response-object
     */
    echo "==================\nResults for page {$pageNum}\n==================\n";
    if (isset($response->Errors)) {
        foreach ($response->Errors as $error) {
            printf("%s: %s\n%s\n\n", $error->SeverityCode === Enums\SeverityCodeType::C_ERROR ? 'Error' : 'Warning', $error->ShortMessage, $error->LongMessage);
        }
    }
    if ($response->Ack !== 'Failure' && isset($response->ActiveList)) {
        foreach ($response->ActiveList->ItemArray->Item as $item) {
            printf("(%s) %s: %s %.2f\n", $item->ItemID, $item->Title, $item->SellingStatus->CurrentPrice->currencyID, $item->SellingStatus->CurrentPrice->value);