scttcper / ng2-adsense

Angular Adsense Component
https://ng2-adsense.xmplaylist.com
MIT License
137 stars 24 forks source link

How do you peoples get your angular website accepted by Google Adsense ? #398

Open borisBelloc opened 4 years ago

borisBelloc commented 4 years ago

Hello,

I don't know if I 'm allowed to ask here, but I don't know where to ask this question...

Every forums, thread, articles I read about "Google Adsense and Angular" says that Google's can't crawl angular website.

I tried to add ng2-adsense to my website but google told me that my website "got no content", google is not able to see what's inside my website.

I spent a lot of time trying to find a solution to make my Angular website Adsense compatible and didn't find any.

Can someone give me some tips ? 😷

rawoke083 commented 4 years ago

I had to enable ssr or any pre-rendering framework. From there I had to submit at least 3 times, and made sure to show them my "blog/articles" section. By then I had about 15 original pieces of content.

scttcper commented 4 years ago

I got mine approved without ssr, i did have to put more text and setup meta tags on all pages. make sure the pages you're adding ads on are public

rawoke083 commented 4 years ago

Might be worthwhile to have a "Best Practises / FAQ" doc somewhere in this repo ? With regards to using Adsense+Angular+NG2-Adsense ?

borisBelloc commented 4 years ago

thanks you all for your answesr, I didn't know about "pretender", "ssr' and thoses type of things.

Look like the solution could be Angular universal

I know it's not related to ng2-adsense but like rawoke083 said a FAQ would help a lot of peoples

scttcper commented 4 years ago

You can see the angular website i got approved with here https://honbot.com/ I have others now, but only the first one has to be approved.

mightymatth commented 4 years ago

@scttcper I don't believe you 😆 I've tried to setup AdSense without SSR on site https://zorrotunes.com/, but I cannot get it approved for months. I've tried to prerender everything, setup dummy content, link it through, but it always says that there is not enough content. Do you have any suggestions?

Ideki commented 4 years ago

@mightymatth I had trouble with SSR too. What I ended up doing was the following:

  1. Prerendered my site
  2. Copied the content of my prerended home page inside the in my index.prod.html (don't forget your css too) The dynamic content will replace the prerendered content after it has been loaded.
  3. Published my side normally (no SSR, no prerender)
  4. Submitted the application to AdSense again and got accepted.

I will eventually get around to get SRR/prerender working properly.

After you have been approved, you can remove the prerendered content (and css) from your index.prod.html

kidqn commented 1 year ago

@mightymatth I had trouble with SSR too. What I ended up doing was the following:

  1. Prerendered my site
  2. Copied the content of my prerended home page inside the in my index.prod.html (don't forget your css too) The dynamic content will replace the prerendered content after it has been loaded.
  3. Published my side normally (no SSR, no prerender)
  4. Submitted the application to AdSense again and got accepted.

I will eventually get around to get SRR/prerender working properly.

After you have been approved, you can remove the prerendered content (and css) from your index.prod.html

Hi @Ideki, you mean that remove all SSR, only generate prerender homepage , then submit to AdSense. After approving, remove prerender and re-deploy SSR, right?