Google Ad Manager rendering empty slots on the page | Adobe Higher Education
Skip to main content
October 26, 2022
解決済み

Google Ad Manager rendering empty slots on the page

  • October 26, 2022
  • 1 の返信
  • 1097 ビュー

Hi Team ,

 

We have been integrating the Ad manager in our AEM site to display the sponsored ads on the page .But when there is no sponsored ad returned from google , an empty slot is being occupied due to the custom css being applied in the div element section.Could anyone please suggest how to get rid off the empty slots when there is no ad being returned from the Ad Manager.Any idea on this please?

 

Thanks in Advance!

 

このトピックへの返信は締め切られました。
ベストアンサー SantoshSai

Hi @sriga2898,

Are there any possibilities where you can set flag and check if the API returns empty or null value?

In this way I believe, we can render div tag based on condition.

eg in HTL - 

<sly data-sly-test="${api.value}">
........
</sly>

Hope that helps!

Regards,

Santosh

1 の返信

SantoshSai
Community Advisor
Community Advisor
October 26, 2022

Hi @sriga2898,

Are there any possibilities where you can set flag and check if the API returns empty or null value?

In this way I believe, we can render div tag based on condition.

eg in HTL - 

<sly data-sly-test="${api.value}">
........
</sly>

Hope that helps!

Regards,

Santosh

Santosh Sai