✅ Google Search Console connected successfully!
✅ Property re-detected:
'No Client ID found. Enter your OAuth Client ID and Secret below, save, then click Connect.',
'no_code' => 'Google did not return an auth code. Please try again.',
'invalid_state' => 'Security check failed. Please try again.',
'token_error' => 'Could not exchange code for token. Check your Client Secret.',
'no_token' => 'Google did not return an access token. Check your credentials.',
'broker_unreachable' => 'Could not reach the AWBSEO authorization service. Check your site\'s outbound connections, or try again in a moment.',
'broker_error' => 'The AWBSEO authorization service did not return a valid response. Please try again.',
'no_property_found' => 'Could not find a Search Console property matching this site. Make sure this exact domain is verified in Search Console, then try again.',
];
echo esc_html( $msgs[ $gsc_error ] ?? "OAuth error: {$gsc_error}" );
if ( $gsc_detail ) :
?>
Detail:
No Search Console property was detected for this Google account - this is why the Dashboard shows zero data with no specific error. Make sure this exact domain (or a matching sc-domain: property) is verified in Search Console under the account you connected, then click "Re-detect property" above.
Connect Google Search Console to see your search traffic, keyword rankings, and content performance - all in one place.
✅ Google Analytics 4 connected successfully!
✅ GA4 property detected:
GA4 disconnected.
'Security check failed. Please try connecting again.',
'no_token' => 'Google did not return an access token. Please try again.',
'broker_unreachable' => 'Could not reach the AWBSEO authorization service. Check your site\'s outbound connections, or try again in a moment.',
'broker_error' => 'The AWBSEO authorization service did not return a valid response. Please try again.',
'no_property_found' => 'No GA4 property was found for this Google account. Make sure the account you connect owns at least one GA4 property, then try again.',
];
echo esc_html( $ga4_msgs[ $ga4_error ] ?? "GA4 error: {$ga4_error}" );
if ( $ga4_detail ) :
?>
Detail:
Change
⚠ GA4 session expired
Your Google Analytics authorization has expired. Reconnect to restore access.
⚠ Google Analytics Admin API is not enabled
The Admin API is required to load your property list. Enable it in your Google Cloud project, then click Retry.
After enabling, wait ~1 minute for it to propagate, then click Retry. You only need to do this once.
⚠ Could not load properties
RetryOr enter your GA4 Property ID manually (Google Analytics → Admin → Property Settings → Property ID):
Connect Google Analytics 4 to see real visitor data, including which AI engines are sending you traffic and which pages they land on.
✅ Bing Webmaster Tools connected successfully!
'Please enter an API key.', 'invalid_key' => 'Bing rejected that API key. Double-check it and try again.', ]; echo esc_html( $bing_msgs[ $bing_error ] ?? "Bing error: {$bing_error}" ); ?>
Connect Bing Webmaster Tools to track Bing search performance alongside Google. Get a free API key from Bing Webmaster Tools ↗ under Settings → API Access.
' . esc_js( __( "Could not run validation. Please try again.", "adworksbid-seo" ) ) . '
"); return; } var data = resp.data; if (data.notice) { $results.html("" + data.notice + "
"); return; } if (!data.issues || data.issues.length === 0) { $results.html("✓ ' . esc_js( __( "All hreflang pairs checked out - each page returns 200 and links back reciprocally.", "adworksbid-seo" ) ) . '
"); return; } var html = "" + data.issues.length + " ' . esc_js( __( "issue(s) found:", "adworksbid-seo" ) ) . '
' . esc_js( __( "Could not run validation. Please try again.", "adworksbid-seo" ) ) . '
"); }); }); });'; wp_add_inline_script( 'awbseo-admin', $awb_settings_js ); ?>