AdRequest

Details of an ad request to an ad server.

JSON representation
{
  "uri": string,
  "requestMetadata": {
    object (RequestMetadata)
  },
  "responseMetadata": {
    object (ResponseMetadata)
  }
}
Fields
uri

string

The ad tag URI processed with integrated macros.

requestMetadata

object (RequestMetadata)

The request metadata used to make the ad request.

responseMetadata

object (ResponseMetadata)

The response metadata received from the ad request.

RequestMetadata

Metadata for an ad request.

JSON representation
{
  "headers": {
    object
  }
}
Fields
headers

object (Struct format)

The HTTP headers of the ad request.

ResponseMetadata

Metadata for the response of an ad request.

JSON representation
{
  "error": string,
  "headers": {
    object
  },
  "statusCode": string,
  "sizeBytes": integer,
  "duration": string,
  "body": string
}
Fields
error

string

Error message received when making the ad request.

headers

object (Struct format)

Headers from the response.

statusCode

string

Status code for the response.

sizeBytes

integer

Size in bytes of the response.

duration

string (Duration format)

Total time elapsed for the response.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

body

string

The body of the response.