GetMerchantList

From Wiki

Jump to: navigation, search

The 'getMerchantList' API request will return the requested advertisers whose products are mapped to the provided ShopWindow category ID and your publisher account joined to.

Parameters


Element

Type

iCategoryId optional

The ID of the selected category

Value Type: int

iMaxResult optional

Max number of results to return

Value Type: int

iAdult optional

Allow adult content

Value Type: int

sColumnToReturn optional

Columns to return with each product. By default only required columns are returned. Add as many columns as you require from the Merchant_PSAPI data type to your API call to get more data.

Value Type: string/array
Example: array('sBrand','sDescription')


Response


oMerchant

Objects for any returned merchant

Value Type: Merchant


Example Request (parameters)


$aParams9 = array('iCategoryId'	=> 586, 'iMaxResult' => 3);

$oResponse = $oClient->call('getMerchantList', $aParams9);


Example Response


stdClass Object
(
    [oMerchant] => Array
        (
            [0] => stdClass Object
                (
                    [iId] => 1901
                    [sName] => DoSomethingDifferent.com
                )

            [1] => stdClass Object
                (
                    [iId] => 610
                    [sName] => LondonTheatreDirect.com
                )

            [2] => stdClass Object
                (
                    [iId] => 1936
                    [sName] => Theatre Tickets Direct
                )

        )

)

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button