# [Helpers](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#amp-html-helpers) / `amp_embed`
## Information
`amp_embed` allows to easily embed ads with AMP, not hurting performance. It is an alias to the [`amp_ad`](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs/amp_ad.md) helper.
---
### Quick info
#### Latest update: 0.5.4 (Pre-release) - 2017-03-19
[**Changelog for version 0.5.4**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md#054-pre-release---2017-03-19)
#### [DeepIntegration](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#deepintegration-helpers): Enabled
#### [Availability](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#availability-of-helpers): Installable with the [Advertisements Component](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs/ad.md)
#### [Takes a block?](https://github.com/slooob/amp-html/tree/master/lib/amp-html/helpers/docs#takes-a-block): Yes
---
## General
### Reference
[**AMP Reference**](https://www.ampproject.org/docs/reference/components/ads/amp-ad)
#### Required Parameters
* `network` (if not set in the AMP-HTML configuration)
* `size` (or `width` & `height`)
#### Structure
<%= amp_embed(network, options) %>
#
**Note:** `layout` defaults to `responsive` if not explicitly permitted.
## Examples
Setting width & height:
<%= amp_embed("a9", width: 400, height: 300) %>
<%= amp_embed("a9", size: "400x300") %>
#
Creating a sticky ad at the bottom of the viewport:
<%= amp_embed("a9", sticky: true) %>
#
#
#
Setting a placeholder:
<%= amp_embed("a9", placeholder: "my-ad-screencap.jpg") %>
#
#
#
Setting a fallback:
<%= amp_embed("a9", fallback: "my-ad-screencap.jpg") %>
#
#
#
**Note:** Currently you can only pass `sticky` **or** `placeholder` **or** `fallback` as an option.
`amp_ad` also takes a block:
<%= amp_embed("a9", options) do %>
<%= amp_placeholder("amp-img", src: "my-ad-screencap.jpg") %>
<%= amp_fallback("amp-img", src: "my-ad-screencap.jpg") %>
<% end %>
#
#
#
#
**References:** [`amp_placeholder`](https://github.com/slooob/amp-html/blob/master/lib/amp-html/helpers/docs/amp_placeholder.md), [`amp_fallback`](https://github.com/slooob/amp-html/blob/master/lib/amp-html/helpers/docs/amp_fallback.md)