ampproject / ampproject/amphtml
$sf is not defined within the Google safeFrame when not checked in google admanager
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
all AMP creatives served through google `

Here's the setup on google admanager. If i checked the `serve into safeframe` option i have access to the sf api

I think when serving ads into safeframe, $sf api should be available by default
Thx for your help :)
### Reproduction Steps
Go on this page :
https://seedtagtest.com/2021/09/03/test-seedtag-false/amp/
open a JS console. and locate the safeframe window
try to call `window.$sf` in this scope and you'll get the exception `$sf` is not defined
### Relevant Logs
_No response_
### Browser(s) Affected
_No response_
### OS(s) Affected
_No response_
### Device(s) Affected
_No response_
### AMP Version Affected
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.