data->get_options(); $adsense_id = $this->data->get_adsense_id(); $mapi_options = Advanced_Ads_AdSense_MAPI::get_option(); $mapi_account_details = false; $CID = Advanced_Ads_AdSense_MAPI::CID; $use_user_app = Advanced_Ads_AdSense_MAPI::use_user_app(); if ( $use_user_app ) { $CID = ADVANCED_ADS_MAPI_CID; } $can_connect = true; if ( $use_user_app && !( ( defined( 'ADVANCED_ADS_MAPI_CID' ) && '' != ADVANCED_ADS_MAPI_CID ) && ( defined( 'ADVANCED_ADS_MAPI_CIS' ) && '' != ADVANCED_ADS_MAPI_CIS ) ) ) { $can_connect = false; } $has_token = Advanced_Ads_AdSense_MAPI::has_token( $adsense_id ); if ( $has_token && isset( $mapi_options['accounts'][ $adsense_id ]['details'] ) ) { $mapi_account_details = $mapi_options['accounts'][ $adsense_id ]['details']; } $alerts = Advanced_Ads_AdSense_MAPI::get_stored_account_alerts( $adsense_id ); $alerts_heading = __( 'AdSense warnings', 'advanced-ads' ); $alerts_dismiss = __( 'dismiss', 'advanced-ads' ); $connection_error_messages = Advanced_Ads_AdSense_MAPI::get_connect_error_messages(); $alerts_advads_messages = Advanced_Ads_Adsense_MAPI::get_adsense_alert_messages(); ?>
' . esc_html( $mapi_account_details['name'] ) . ''; ?>
(pub-xxxxxxxxxxxxxx)', 'advanced-ads' ) ?>
array( 'href' => array(), 'target' => array(), ), ) ), '', '', '', '' ); ?>
array( 'href' => array(), 'target' => array(), ), ) ), '', '' ); ?>