> For the complete documentation index, see [llms.txt](https://intowow.gitbook.io/crystalexpress-documentation-v3-x/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intowow.gitbook.io/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md).

# RequestInfo

The `RequestInfo` is the information for request the ad. **Please set the RequestInfo before loadAd**&#x20;

| Public constructors                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#RequestInfo">RequestInfo()</a> <br> Create RequestInfo object.</p> |

| Public methods |                                                                                                                                                                                                                                     |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#setPlacement">setPlacement(String placement)</a> <br> Set the placement for this ad request.</p>                                            |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#setPlacement-1">setTimeout(long timeout)</a></p><p>Set the timeout for this ad request.</p>                                                 |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#setLocalExtra">setLocalExtra(JSONObject object)</a> <br> Send more information to custom event if necessary.</p>                            |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#setTargeting">setTargeting(String key, List\<CETargeting> ceTargetingList)</a> <br> Set the contextual targeting rules on specific key.</p> |
| void           | <p><a href="/crystalexpress-documentation-v3-x/android-sdk/api-reference/requestinfo.md#addTargeting">addTargeting(String key, CETargeting ceTargeting)</a> <br> Append the contextual targeting rules on specific key.</p>         |

## Public methods

### setPlacement <a href="#setplacement" id="setplacement"></a>

void setPlacement(String placement)

Set the placement for this ad request.

| Parameters |                        |
| ---------- | ---------------------- |
| placement  | String: the placement. |

### setTimeout <a href="#setplacement" id="setplacement"></a>

void setTimeout(String placement)

| Parameters |                                                                                                                                                                                                                           |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| timeout    | <p>long: the timeout.</p><p>Ad response would be returned within specified timeout period (only works for <strong>loadAdAsync.</strong> The timeout value is meaningless if you use <strong>loadAdInstant</strong> ).</p> |

### setLocalExtra <a href="#setlocalextra" id="setlocalextra"></a>

void setLocalExtra(JSONObject object)

Send more information to custom event if necessary.

| Parameters |                                                                              |
| ---------- | ---------------------------------------------------------------------------- |
| object     | JSONObject: the jsonObject you would like to pass to  different customevent. |

### setTargeting <a href="#settargeting" id="settargeting"></a>

void setTargeting(String key, List\<CETargeting> ceTargetingList)

Set the contextual targeting rules on specific key.

| Parameters      |                                              |
| --------------- | -------------------------------------------- |
| key             | String: the key for targeting.               |
| ceTargetingList | List\<CETargeting>: the rules for targeting. |

### addTargeting <a href="#addtargeting" id="addtargeting"></a>

void addTargeting(String key, CETargeting ceTargetingList)

Append the contextual targeting rules on specific key.

| Parameters  |                                      |
| ----------- | ------------------------------------ |
| key         | String: the key for targeting.       |
| ceTargeting | CETargeting: the rule for targeting. |
