# Advertisers

## Get All

`GET https://api.leadspedia.com/core/v2/advertisers/getAll.do`

### Parameters

- `search` (string, optional)

- `status` (enum, optional)
  Allowed values: `Active`, `InActive`, `Prospect`, `Paused`, `Suspended`, `Pending InActive`.

- `advertiserID` (integer, optional)

- `accountManagerID` (integer, optional)

- `advertiserType` (enum, optional)
  Allowed values: `Corporate`, `Individual`.

- `isCreditEnabled` (enum, optional)
  Allowed values: `Yes`, `No`.

- `hasCreditCardOnFile` (enum, optional)
  Allowed values: `Yes`, `No`.

- `start` (integer, optional)
  Offset of the first row to return. Default: `0`.

- `limit` (integer, optional)
  Maximum number of rows to return. Default: `100`.


## Search

`GET https://api.leadspedia.com/core/v2/advertisers/search.do`

### Parameters

- `search` (string, required)

- `start` (integer, optional)
  Offset of the first row to return. Default: `0`.

- `limit` (integer, optional)
  Maximum number of rows to return. Cannot be greater than 1000. Default: `100`.


## Get

`GET https://api.leadspedia.com/core/v2/advertisers/getInfo.do`

### Parameters

- `advertiserID` (integer, required)


## Create

`POST https://api.leadspedia.com/core/v2/advertisers/create.do`

### Parameters

- `advertiserName` (string, required)

- `accountManagerID` (integer, required)

- `status` (enum, required)
  Allowed values: `Active`, `InActive`.


## Update

`POST https://api.leadspedia.com/core/v2/advertisers/updateInfo.do`

### Parameters

- `advertiserID` (integer, required)

- `advertiserName` (string, optional)

- `alternateID` (string, optional)

- `externalCRMID` (string, optional)

- `address` (string, optional)

- `address2` (string, optional)

- `city` (string, optional)

- `state` (string, optional)

- `zipCode` (string, optional)

- `country` (string, optional)

- `source` (string, optional)

- `website` (string, optional)


## Change Status

`POST https://api.leadspedia.com/core/v2/advertisers/changeStatus.do`

### Parameters

- `advertiserID` (integer, required)

- `status` (enum, required)
  Allowed values: `Active`, `InActive`.


## Update Portal Settings

`POST https://api.leadspedia.com/core/v2/advertisers/updatePortalSettings.do`

### Parameters

- `portal_access` (enum, optional)
  Allowed values: `Yes`, `No`.


## Delete

`POST https://api.leadspedia.com/core/v2/advertisers/delete.do`

### Parameters

- `advertiserID` (integer, required)
