Skip to content
Public Ticket #5468

Amp ads

Conversation thread

Penci Design replied

Staff Reply

Hi,

1 .AMP ad code ( Link Ads, Infeed Ads  )

\
<amp-ad width="336" height="280"
type="adsense"
data-ad-client="xxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxx">\ </amp-ad>
\

2 .AMP ad with variable width and fixed height

\

this example shows you how to create an AMP ad unit with a variable width and fixed height (100px). We recommend you leave the width as responsive so it fits naturally with the rest of your page layout.

\
\
<amp-ad
   layout="fixed-height"
   height="100"
   type="adsense"
   data-ad-client="xxxx"
   data-ad-slot="xxxx">
</amp-ad>
\

3. AMP ad with fixed width and height

\

This example shows you how to create an AMP ad unit with a fixed width (300px) and a fixed height (250px).

\
\
<amp-ad
   layout="responsive"
   width="300"
   height="250"
   type="adsense"
   data-ad-client="xxxx"
   data-ad-slot="xxxx">
</amp-ad>

Best Regards,

PenciDesign

\

San replied

Customer Reply

Hi,

i checked all but unable to find the amp code for link ads and infeed/inarticle ad types.

please suggest, how can i place these ad types. 

Thanks

San started the conversation

Conversation Start

Hi,

How to add AMP ads (adsense) for other formats ?

as per guide, below code for normal ads, say for 336X280

<amp-ad width="336" height="280"
type="adsense"
data-ad-client="xxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxx"></amp-ad>

Pl Share AMP Ads format for below adsense ad types :

1. Link Ads

2. Infeed Ads

3. InArticle Ads

4. Responsive.

What to change in the given amp ad code for above formats.

Thanks

Want to join this conversation or access attachments? Sign in first.