

# Use the solution
<a name="use-the-solution"></a>

## Demo website
<a name="demo-website"></a>

The solution includes a demo website that demonstrates end-to-end integration with Prebid.js and provides a working example of banner and video ad units.

### Accessing the demo website
<a name="accessing-the-demo-website"></a>

After deploying the solution with the bidder simulator:

1. Sign in to the [AWS CloudFormation console](https://console.aws.amazon.com/cloudformation/home?).

1. Locate the `BiddingServerSimulator` stack.

1. In the **Outputs** tab, find the `DemoWebsiteUrl` value.

1. Open the URL in your web browser to access the demo website.

The demo website includes:
+ Banner ad unit examples
+ Video ad unit examples with VAST instream video support
+ Integration with Prebid.js showing real-time bidding flow
+ Visual demonstration of ad rendering

For detailed information about the demo website implementation and customization options, see the [demo website README](https://github.com/aws-solutions-library-samples/prebid-server-deployment-on-aws/tree/main/source/loadtest/demo) in the GitHub repository.

## Testing RTB Fabric connectivity
<a name="testing-rtb-fabric-connectivity"></a>

If you deployed the solution with RTB Fabric integration (`--include-rtb-fabric` flag), you can verify that bid requests are being routed through the AWS RTB Fabric private network.

### Verify Fabric Link status
<a name="verify-fabric-link-status"></a>

1. Sign in to the [AWS RTB Fabric console](https://console.aws.amazon.com/rtbfabric/home?).

1. Navigate to **Fabric Links** in the left navigation pane.

1. Locate the Fabric Link created by the solution (named with your stack name prefix).

1. Verify the link status is **Active**.

### Monitor RTB Fabric metrics
<a name="monitor-rtb-fabric-metrics"></a>

RTB Fabric provides CloudWatch metrics for monitoring traffic through the Fabric Link:

1. Sign in to the [Amazon CloudWatch console](https://console.aws.amazon.com/cloudwatch/home?).

1. Navigate to **Metrics** > **All metrics**.

1. Select the **RTBFabric** namespace.

1. View metrics such as:
   +  `RequestCount` - Number of bid requests sent through the Fabric Link
   +  `DataTransferred` - Amount of data transferred through the link
   +  `Latency` - Request latency through the Fabric Link

## Querying metrics with Athena
<a name="querying-metrics-with-athena"></a>

Metrics collected from the Prebid Server application running on ECS are stored in the `MetricsEtl` S3 bucket for querying with Athena.

This section details information on the [metric definitions](metric-definitions.md), [Glue table schemas](glue-table-schemas.md), and [example queries](example-queries.md) to get started.