Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1789902
Amp ads
Closed

Comments

  •  1
    San started the conversation

    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

  •  501
    Penci replied

    Hi,

    Please checkthis guide to know more information  AMP Ads

    and please check example : https://ampbyexample.com/components/amp-ad/


    Best Regards,

    PenciDesign

  •  1
    San replied

    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

  •  501
    Penci replied

    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