From 6b49a8b4cc17d314c4dec10beadc4c9db25d8071 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Sun, 21 Dec 2025 12:42:28 +0000 Subject: [PATCH] docs: add contextual help for DFP and AdSense provider fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users unfamiliar with Google Ad Manager (formerly DFP) or AdSense often struggle to understand what values are required for fields like Tag ID, DFP ID, Tag Name, and Publisher ID. This is a common support request. The new "Provider Fields" help tab explains each field with examples and guidance on where to find the values in the respective ad platforms. This complements the existing help tabs for Overview, Configuration, and Conditionals. Fixes #123 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/UI/class-contextual-help.php | 50 +++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/src/UI/class-contextual-help.php b/src/UI/class-contextual-help.php index f8f1c30..d6cac64 100644 --- a/src/UI/class-contextual-help.php +++ b/src/UI/class-contextual-help.php @@ -110,6 +110,47 @@ public function render( WP_Screen $screen ): void { +

+
+
+
+ +
+
+ +
+
+ +
+ Admin > Global Settings > Network Code.', 'ad-code-manager' ) ); ?> +
+ +
+ +
+
+ +
+ +
+
+

+

+
+
+
+ +
+ +
+ Account > Account Information > Publisher ID.', 'ad-code-manager' ) ); ?> +
+
+ add_help_tab( array( 'id' => 'acm-overview', @@ -127,9 +168,16 @@ public function render( WP_Screen $screen ): void { get_current_screen()->add_help_tab( array( 'id' => 'acm-conditionals', - 'title' => 'Conditionals', + 'title' => __( 'Conditionals', 'ad-code-manager' ), 'content' => $conditionals, ) ); + get_current_screen()->add_help_tab( + array( + 'id' => 'acm-provider-fields', + 'title' => __( 'Provider Fields', 'ad-code-manager' ), + 'content' => $provider_fields, + ) + ); } }