santoshdevnath15
28 May 2021 05:51
1
Hi, I have installed google ad manager package that is @frontity /google-ad-manager
and also put this code on frontity.settings.js file
{
“name”: “@frontity /google-ad-manager”,
“state”: {
“fills”: {
“googleAdManager”: {
“belowHeaderAd”: {
“slot”: “below-header”,
“library”: “googleAdManager.GooglePublisherTag”,
“priority”: 5,
“props”: {
“id”: “div-gpt-below-header”,
“unit”: “/1234/my-ad-unit-code”,
“size”: [320, 50],
},
}
}
}
}
},
But I am getting the error of access control has been blocked by CORS policy
Here is the link to the site - https://babacric.in/
Here is the screenshot
santoshdevnath15
28 May 2021 06:51
2
This CROS origin issue has been solved automatically. But the ads are not showing. Do I need to do anything else?
santoshdevnath15
28 May 2021 07:09
3
Now ads are coming. My ad slot was hiding behind the navbar, that’s why ad was not loading. Now it’s working. Thanks
1 Like
jewel
17 July 2021 17:49
4
Hello @santoshdevnath15
I have the same cors issue, how did you fix that?
santoshdevnath15
19 July 2021 04:48
5
Hi @jewel
The cross-origin issue is solved automatically within 2 days. I think somehow google just verified the IP of the domain.
the ads are coming here as you can see on the header - https://frontity-app.babacric.in/
1 Like
jewel
19 July 2021 10:19
6
Thanks for the reply. It’s gone few days but no ads on my site. Stills the same cors issue. Not sure, How to figure that out