
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: SetupCampaign.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
declare( strict_types=1 );

namespace Automattic\WooCommerce\GoogleListingsAndAds\Notes;

use Automattic\WooCommerce\Admin\Notes\Note as NoteEntry;

defined( &#039;ABSPATH&#039; ) || exit;

/**
 * Class SetupCampaign
 *
 * @package Automattic\WooCommerce\GoogleListingsAndAds\Notes
 */
class SetupCampaign extends AbstractSetupCampaign {

	/**
	 * Get the note&#039;s unique name.
	 *
	 * @return string
	 */
	public function get_name(): string {
		return &#039;gla-setup-campaign&#039;;
	}

	/**
	 * Get the number of days after which to add the note.
	 *
	 * @since 1.11.0
	 *
	 * @return int
	 */
	protected function get_gla_setup_days(): int {
		return 3;
	}

	/**
	 * Set the title and content of the Note.
	 *
	 * @since 1.11.0
	 *
	 * @param NoteEntry $note
	 *
	 * @return void
	 */
	protected function set_title_and_content( NoteEntry $note ): void {
		if ( ! $this-&gt;ads_service-&gt;is_setup_started() ) {
			$note-&gt;set_title( __( &#039;Launch ads to drive traffic and grow sales&#039;, &#039;google-listings-and-ads&#039; ) );
			$note-&gt;set_content(
				__(
					&#039;Your products are ready for Google Ads! Get your products shown on Google exactly when shoppers are searching for the products you offer. For new Google Ads accounts, get $500 in ad credit when you spend $500 within your first 60 days. T&amp;Cs apply.&#039;,
					&#039;google-listings-and-ads&#039;
				)
			);
			$note-&gt;add_action(
				&#039;setup-campaign&#039;,
				__( &#039;Set up Google Ads&#039;, &#039;google-listings-and-ads&#039; ),
				$this-&gt;get_setup_ads_url(),
				NoteEntry::E_WC_ADMIN_NOTE_ACTIONED,
				true
			);
		} else {
			$note-&gt;set_title( __( &#039;Finish connecting your Google Ads account&#039;, &#039;google-listings-and-ads&#039; ) );
			$note-&gt;set_content(
				__(
					&#039;Your products are ready for Google Ads! Finish connecting your account, create your campaign, pick your budget, and easily measure the impact of your ads. Plus, Google will give you $500 USD in ad credit when you spend $500 for new accounts. T&amp;Cs apply.&#039;,
					&#039;google-listings-and-ads&#039;
				)
			);
			$note-&gt;add_action(
				&#039;setup-campaign&#039;,
				__( &#039;Complete Setup&#039;, &#039;google-listings-and-ads&#039; ),
				$this-&gt;get_setup_ads_url(),
				NoteEntry::E_WC_ADMIN_NOTE_ACTIONED,
				true
			);
		}

		$note-&gt;add_action(
			&#039;setup-campaign-learn-more&#039;,
			__( &#039;Learn more&#039;, &#039;google-listings-and-ads&#039; ),
			&#039;https://woocommerce.com/document/google-for-woocommerce/get-started/google-performance-max-campaigns&#039;
		);
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
