Note that there are some explanatory texts on larger screens.

plurals
  1. POGoogle Ads not showing when my site is inside an iFrame
    primarykey
    data
    text
    <p>I'm building a web application (a web site) which has a feature where you can embed it inside your own web site (using an iframe). So, my app has Google Ads, and sometimes when the it is inside another site as embed (inside an iFrame) it doesn't show Ads, I mean, ads are being rendered, but sometimes that html from google is blank.</p> <p>I'm concern about the Policy of GoogleAds and to not use iFrames to show ads, but I'm not using iframes to show them, my app is just inside another site as a feature.</p> <p>My question is: can this be done?, or by that policy I won't be able to show ads on my embed feature?</p> <p><strong>EDIT 1</strong><br> This is the content which Google is rendering (inside another iframe of another iframe):</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body style="background-color:transparent" marginwidth="0" marginheight="0"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>and also, I getting an error on the console:</p> <blockquote> <p>Blocked a frame with origin "<a href="http://googleads.g.doubleclick.net" rel="nofollow">http://googleads.g.doubleclick.net</a>" from accessing a frame with origin "<a href="http://example.com" rel="nofollow">http://example.com</a>". Protocols, domains, and ports must match.</p> </blockquote> <p>where "example.com" is some site that is using my feature</p> <p><strong>EDIT 2</strong></p> <p>So, I step at the Network tab of the console, and watch what was calling. Does a GET <a href="http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-XXXX" rel="nofollow">http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-XXXX</a>.... With 200 OK always, but sometimes it returns just the blank HTML (posted above) and sometimes the actual html with an AD.</p> <p>One more thing I didn't tell, I'm using the Asynch new Beta method, not the Synch, so I'm thinking of try the Synch and see what happens.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload