PYH Ads lets you create, target, display and measure advertisements from your WordPress dashboard, with no separate ad platform and no external service.
It is built around three connected systems:
Header, below header, homepage hero, before content, after the first paragraph, middle of content, before the final paragraph, after content, sidebar and footer. You can also place an ad manually with the [pyh_ads id="123"] shortcode, the PYH Ad block, the PYH Ads widget, or template tags.
When several ads compete for one placement, choose highest priority, weighted random, even rotation, random, or best CTR.
pyh_ads_display( 123 ); prints a specific addo_action( 'pyh_ads_placement', 'header' ); prints whichever ad wins a placementpyh_ads_capability, pyh_ads_ad_html, pyh_ads_allowed_html, pyh_ads_custom_placementsPYH Ads itself does not send any data to external services. Two optional features involve third parties:
Google AdSense (only if you create an AdSense ad)
* What: when an AdSense ad is displayed, your visitor’s browser loads Google’s AdSense library (pagead2.googlesyndication.com) using your publisher ID.
* When: only on pages where an AdSense ad is shown.
* Data sent: whatever Google’s AdSense script collects from the visitor’s browser, such as IP address and cookies, under Google’s terms. You are responsible for any visitor consent your region requires.
* Terms of Service: https://policies.google.com/terms
* Privacy Policy: https://policies.google.com/privacy
Video oEmbed (only if you use an embed URL such as YouTube)
* What: embedded by WordPress core’s oEmbed feature, which contacts the video provider (for example YouTube) to build the embed.
* Terms and privacy: those of the provider you choose.
PYH Ads does not set cookies and does not store IP addresses, user agents, names, email addresses or any other personal data. It stores only daily totals of impressions and clicks per ad, placement and device type (mobile, tablet or desktop, derived from screen width). Google AdSense, if you use it, may set its own cookies; that is governed by Google (see External services).