Add display ads to a personal website
Separate integration, site approval, privacy choices and actual earnings when adding configurable ads to a Cloudflare Pages site.
0101 / Prepare the site and publisher account
Complete real content, navigation, contact and privacy information before registration and site verification. Keep configurable AdSense publisher and slot IDs disabled until valid credentials and approval exist. A working free domain does not guarantee network acceptance.
0202 / Use explicit placements
Separate the ad loader from product features and initialize only designated containers. Pages can host the static integration and root ads.txt file. Copy real seller authorization from your account. Label placements as advertisements or sponsored content and keep them distinct from genuine download buttons.
0303 / Handle regional consent
Google personalized ads in the EEA, UK and Switzerland require a certified CMP integrated with the TCF. A homemade agreement checkbox is not a substitute. Other ad modes still have applicable privacy requirements. Do not load tracking proactively; honor consent and provide a way to revisit choices.
0404 / Enable after approval and test failures
Confirm site, placement and authorization status before enabling ads. Test mobile, desktop, refusal, no-fill and network failures. Never click your own ads or reward ordinary display clicks. Label installation promotions and use real destinations; your own APK QR code should open its website download page.
Working code does not guarantee inventory or revenue. Approval, regions, traffic quality and payment eligibility remain subject to platform rules; a disabled integration does not mean an account is approved.
Sources & further reading
An original Qiyue synthesis of these sources. Suggested actions are not platform guarantees.