How to Show AdSense Link Ads & Also in AMP?

I have an adsense which doesnot have link ads option. Still link ads are being served by google. And it is the best ad unit to earn.

The question here is
Can I change ad unit to link ads?
Is it safe Or not?
@DUGGU
@GulshanKumar

Try this

<style type="text/css">.link_unit_slot { width: 300px; height: 250px; }</style> 

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<!-- Responsive Links | Make sure to update publisher ID -->
<ins class="adsbygoogle link_unit_slot"
 style="display:block"
 data-ad-client="ca-pub-xxxxxxx"
 data-ad-slot="xxxxxxxx"
 data-ad-format="link"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

Source: https://webmasters.stackexchange.com/q/107342

There shouldn’t be problem forcing data-ad-format to link type of ad unit because it existed in the past and as far I know Google has not instructed anyone to do not use link ad unit. The docs still exist.

3 Likes

Thank you @GulshanKumar sir

Most welcome! :blush:

1 Like

Is this code anyway violates AdSense policy as it’s forcing the adserver to fetch & show link ads only?

1 Like

This code returns normal display ads. What to do?

Added on August 10th, 2020: How to Show Link ads in AMP?
I have found a code from StackExchange and modified it as given below

    <amp-ad width="100vw" height="320"
     type="adsense"
     data-ad-client="ca-pub-123456789"
     data-ad-slot="123456789"
     data-auto-format="rspv"
data-ad-slot="link"
     data-full-width="">
  <div overflow=""></div>
</amp-ad>

Will it work?