Google Ad Manager rendering empty slots on the page | Community
Skip to main content
October 26, 2022
Solved

Google Ad Manager rendering empty slots on the page

  • October 26, 2022
  • 1 reply
  • 1097 views

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!

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by 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 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
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