# TDAdErrorCode Constants Reference

Declared in | TDAdLoader.h

### TDAdErrorCode

The error codes that can be returned when using ad functionality.

#### Definition

`typedef NS_ENUM(NSInteger, TDAdErrorCode ) {
TDErrorCodeInvalidRequest = 101,
TDErrorCodeUndefinedSize = 102,
TDErrorCodeNoInventory = 103,
TDErrorCodeInvalidAdURL = 104,
TDErrorCodeResponseParsingFailed = 105,
};`

#### Constants

`TDErrorCodeInvalidRequest`

  A network error occurred while requesting the ad

  Declared In `TDAdLoader.h`.

`TDErrorCodeUndefinedSize`

  The width and height of the ad was not specified

  Declared In `TDAdLoader.h`.

`TDErrorCodeNoInventory`

  There’s no ad to be displayed for the request

  Declared In `TDAdLoader.h`.

`TDErrorCodeInvalidAdURL`

  The ad request or media url is malformed

  Declared In `TDAdLoader.h`.

`TDErrorCodeResponseParsingFailed`

  Unable to parse the response

  Declared In `TDAdLoader.h`.

#### Declared In

`TDAdLoader.h`