* * @var string $unit_type The type of the AdSense unit, e.g. 'responsive'. * @var string $unit_resize The value of the resize option. * @var string $unit_id The client ID. * @var string $unit_code The slot ID. * @var string $unit_pubid The publisher ID which differs if there comes a different it from the content. * @var string $layout The in-feed layout. * @var string $layout_key The in-feed layout key. * @var string $json_content The content as JSON. * @var string $pub_id The publisher ID. * @var Ad_Adsense $ad The AdSense Ad type. * @var string|false $pub_id_errors A string with error messages, or false. * @var string $content The content. * @var array{default_width: string, default_height: string, at_media: array} $extra_params Filterable extra params that can be passed. */ use AdvancedAds\Modules\AdSense\Utils; use AdvancedAds\Modules\AdSense\Types\Ad_Adsense; defined( 'ABSPATH' ) || exit; $adsense_id = Utils::get_adsense_id(); $has_token = \Advanced_Ads_AdSense_MAPI::has_token( $adsense_id ); $sizing_array = apply_filters( 'advanced-ads-gadsense-responsive-sizing', [ 'auto' => __( 'Auto', 'advanced-ads' ) ] ); $use_paste_code = apply_filters( 'advanced-ads-gadsense-use-pastecode', true ); $is_responsive = 'responsive' === $unit_type; $is_in_feed = 'in-feed' === $unit_type; $is_link_unit = in_array( $unit_type, [ 'link', 'link-responsive' ], true ); // Units that AdSense sizes itself have no use for the fixed size fields. if ( in_array( $unit_type, [ 'responsive', 'link-responsive', 'matched-content' ], true ) ) { echo ''; } /* * Visibility of the conditional field rows. Resolved once here instead of repeating the same * expression inside every label and wrapper below. */ $hide_resize = ! $is_responsive || 2 > count( $sizing_array ); $hide_in_feed = ! $is_in_feed; $hide_clearfix = ! $is_responsive; // Warn when the slot ID looks like it contains the publisher ID. $slot_holds_pub_id = '' !== $pub_id && 0 === strpos( $pub_id, 'pub-' ) && false !== strpos( $unit_code, substr( $pub_id, 4 ) ); $settings_url = admin_url( 'admin.php?page=advanced-ads-app&path=/settings&tab=adsense' ); ?> get_quota(); ?>


change it here.', 'advanced-ads' ) ), esc_url( $settings_url ) ); ?>


>
>
>
/>