Google Ad Manager rendering empty slots on the page | Community
Skip to main content
New Participant
Oct 26, 2022 6:16 PM UTC
Solved

Google Ad Manager rendering empty slots on the page

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.
SantoshSai
SantoshSaiAccepted solution
New Participant
Oct 26, 2022 7:18 PM UTC

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

1 reply

SantoshSai
SantoshSaiAccepted solution
New Participant
Oct 26, 2022 7:18 PM UTC

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

Translate
Santosh Sai