# Google Cloud Video Stitcher V1 Client - Class AdRequest (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class AdRequest.

Details of an ad request to an ad server.

Generated from protobuf message `google.cloud.video.stitcher.v1.AdRequest`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ uri` | `string` The ad tag URI processed with integrated macros. |
| `↳ request_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.RequestMetadata` The request metadata used to make the ad request. |
| `↳ response_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ResponseMetadata` The response metadata received from the ad request. |

### getUri

The ad tag URI processed with integrated macros.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUri

The ad tag URI processed with integrated macros.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestMetadata

The request metadata used to make the ad request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.RequestMetadata|null` |   |

### hasRequestMetadata

### clearRequestMetadata

### setRequestMetadata

The request metadata used to make the ad request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.RequestMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResponseMetadata

The response metadata received from the ad request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ResponseMetadata|null` |   |

### hasResponseMetadata

### clearResponseMetadata

### setResponseMetadata

The response metadata received from the ad request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-stitcher/latest/V1.ResponseMetadata` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |