Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

xtopher's avatar

Laravel and Adsense

I have a client project where users register to post news and articles. But the site owners want to run google ads in articles pages and in return give the users a percentage of the AdSense returns, either for the month or week as the case maybe. I have designed the frontend end cruds but the AdSense part is where I got stuck. I need suggestions on how to code that part of the project.

1 like
3 replies
bobbybouwmann's avatar

You can implement the AdSense API from Google for this. I looked around, but I didn't see any updated packages for it. I think you have to build this from scratch in the end.

You can find the documentation here: https://developers.google.com/adsense

if you really can't handle this you should think about hiring a backend developer that can do this ;)

Sylla's avatar

@bobbybouwmann I have the same concern.

Is it this : 'AdSense Management API' or this one 'AdSense for Platforms' ? thank you in advance !

xtopher's avatar

Thanks for the reply. I have looked into the AdSense docs and it's pretty clear on what to do.

Please or to participate in this conversation.