# Display a test ad

# Display a test ad

This example displays a test ad using the Google Publisher Tag library. See
[Get Started with Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) to learn more about how
this sample works.

## Sample implementation

[View demo](https://googleads.github.io/google-publisher-tag-samples/display-test-ad/js/demo.html)

### JavaScript

## Loading...

<iframe id="builder" class="fixed-size" loading="lazy"></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/display-test-ad/js) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+display-test-ad/js)

### TypeScript

## Loading...

<iframe id="builder" class="fixed-size" loading="lazy"></iframe>

## Loading...

[Improve this sample](https://github.com/googleads/google-publisher-tag-samples/tree/main/dist/display-test-ad/ts) [Report an issue](https://github.com/googleads/google-publisher-tag-samples/issues/new?labels=documentation&template=sample-feedback.md&title=Sample+feedback:+display-test-ad/ts)