Skip to content

Commit

Permalink
Merge pull request #2672 from woocommerce/update/2664-remove-paid-word
Browse files Browse the repository at this point in the history
Remove the word "Paid" from Ads creation flows
  • Loading branch information
joemcgill authored Nov 17, 2024
2 parents 2c3f089 + 10dc1c9 commit 98c62a5
Show file tree
Hide file tree
Showing 31 changed files with 58 additions and 64 deletions.
6 changes: 3 additions & 3 deletions js/src/components/paid-ads/add-paid-campaign-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import { getCreateCampaignUrl } from '.~/utils/urls';
import { recordGlaEvent } from '.~/utils/tracks';

/**
* "Add paid campaign" button is clicked.
* "Add campaign" button is clicked.
*
* @event gla_add_paid_campaign_clicked
* @property {string} context Indicate the place where the button is located.
* @property {string} href Indicate the destination where the users is directed to, e.g. `'/google/setup-ads'`.
*/

/**
* Renders an AppButton with the text "Add Paid Campaign".
* Renders an AppButton with the text "Add campaign".
* Clicking on the button will call `recordGlaEvent` and
* redirect to Setup MC or Create New Campaign depending on
* whether the users have completed ads setup or not.
Expand Down Expand Up @@ -68,7 +68,7 @@ const AddPaidCampaignButton = ( props ) => {

return (
<AppButton isSmall isSecondary onClick={ handleClick } { ...rest }>
{ children || __( 'Add paid campaign', 'google-listings-and-ads' ) }
{ children || __( 'Add campaign', 'google-listings-and-ads' ) }
</AppButton>
);
};
Expand Down
2 changes: 1 addition & 1 deletion js/src/components/paid-ads/ads-campaign/ads-campaign.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function AdsCampaign( {

let description = createInterpolateElement(
__(
'Paid Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>',
'Performance Max campaigns are automatically optimized for you by Google. <link>See what your ads will look like.</link>',
'google-listings-and-ads'
),
{
Expand Down
5 changes: 1 addition & 4 deletions js/src/components/paid-ads/asset-group/asset-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ export default function AssetGroup( { campaign } ) {
onClick={ handleLaunchClick }
>
{ isCreation
? __(
'Launch paid campaign',
'google-listings-and-ads'
)
? __( 'Create campaign', 'google-listings-and-ads' )

Check warning on line 166 in js/src/components/paid-ads/asset-group/asset-group.js

View check run for this annotation

Codecov / codecov/patch

js/src/components/paid-ads/asset-group/asset-group.js#L166

Added line #L166 was not covered by tests
: __( 'Save changes', 'google-listings-and-ads' ) }
</AppButton>
</StepContentActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const EditProgramPromptModal = ( { programId, onRequestClose } ) => {
>
<p>
{ __(
'Results typically improve with time with Google’s Free Listing and paid ad campaigns.',
'Results typically improve with time.',
'google-listings-and-ads'
) }
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ const PauseProgramModal = ( props ) => {
>
<p>
{ __(
'Results typically improve with time with Google’s paid ad campaigns. If you pause, your products won’t be shown to people looking for what you offer.',
'Results typically improve with time. If you pause, your products won’t be shown to people looking for what you offer.',
'google-listings-and-ads'
) }
</p>
<p>
{ __(
'Pausing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.',
'Pausing a campaign will result in the loss of any optimisations learned from those campaigns.',
'google-listings-and-ads'
) }
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const RemoveProgramModal = ( props ) => {
>
<p>
{ __(
'Results typically improve with time with Google’s paid ad campaigns. Removing a paid ad campaign will result in the loss of any optimisations learned from those campaigns.',
'Results typically improve with time. Removing a campaign will result in the loss of any optimisations learned from those campaigns.',
'google-listings-and-ads'
) }
</p>
Expand Down
2 changes: 1 addition & 1 deletion js/src/dashboard/campaign-creation-success-guide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function CampaignCreationSuccessGuide( {
</div>
<GuidePageContent
title={ __(
`You've set up a paid Performance Max Campaign!`,
`You've set up a Performance Max Campaign!`,
'google-listings-and-ads'
) }
>
Expand Down
2 changes: 1 addition & 1 deletion js/src/dashboard/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jest.mock( '@woocommerce/navigation', () => {
jest.mock( '.~/utils/isWCTracksEnabled', () => jest.fn() );

const CAMPAIGN_CREATION_SUCCESS_GUIDE_TEXT =
"You've set up a paid Performance Max Campaign!";
"You've set up a Performance Max Campaign!";
const CES_PROMPT_TEXT = 'How easy was it to create a Google Ad campaign?';

jest.mock( '.~/components/customer-effort-score-prompt', () => () => (
Expand Down
2 changes: 1 addition & 1 deletion js/src/get-started-page/faqs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const faqItems = [
<p>
{ createInterpolateElement(
__(
'Yes, you can run both at the same time, and we recommend you do! Once you sync your store it’s automatically listed on Google, so you can choose to run a paid <linkPmax>Performance Max campaign</linkPmax> as soon as you’d like. In the US, advertisers who sync their products to Google and run Google Ads <linkPmax>Performance Max campaigns</linkPmax> have seen an average of over 50% increase in clicks and over 100% increase in impressions in both their product listings and their ads on the Shopping tab. ',
'Yes, you can run both at the same time, and we recommend you do! Once you sync your store it’s automatically listed on Google, so you can choose to run a <linkPmax>Performance Max campaign</linkPmax> as soon as you’d like. In the US, advertisers who sync their products to Google and run Google Ads <linkPmax>Performance Max campaigns</linkPmax> have seen an average of over 50% increase in clicks and over 100% increase in impressions in both their product listings and their ads on the Shopping tab. ',
'google-listings-and-ads'
),
{
Expand Down
2 changes: 1 addition & 1 deletion js/src/get-started-page/features-card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const FeaturesCard = () => {
variant="label"
>
{ __(
'Promote products and drive more sales with paid ads',
'Promote products and drive more sales with Google Ads',
'google-listings-and-ads'
) }
</Text>
Expand Down
8 changes: 4 additions & 4 deletions js/src/pages/create-paid-ads-campaign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const CreatePaidAdsCampaign = () => {
createNotice(
'success',
__(
'You’ve successfully created a paid campaign!',
'You’ve successfully created a campaign!',
'google-listings-and-ads'
)
);
Expand All @@ -125,7 +125,7 @@ const CreatePaidAdsCampaign = () => {
<>
<TopBar
title={ __(
'Create your paid campaign',
'Create your campaign',
'google-listings-and-ads'
) }
helpButton={ <HelpIconButton eventContext={ eventContext } /> }
Expand All @@ -144,13 +144,13 @@ const CreatePaidAdsCampaign = () => {
{
key: STEP.CAMPAIGN,
label: __(
'Create paid campaign',
'Create campaign',
'google-listings-and-ads'
),
content: (
<AdsCampaign
headerTitle={ __(
'Create your paid campaign',
'Create your campaign',
'google-listings-and-ads'
) }
context={ eventContext }
Expand Down
6 changes: 3 additions & 3 deletions js/src/pages/edit-paid-ads-campaign/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const EditPaidAdsCampaign = () => {
/>
<div>
{ __(
'Error in loading your paid ads campaign. Please try again later.',
'Error in loading your ads campaign. Please try again later.',
'google-listings-and-ads'
) }
</div>
Expand Down Expand Up @@ -197,15 +197,15 @@ const EditPaidAdsCampaign = () => {
{
key: STEP.CAMPAIGN,
label: __(
'Edit paid campaign',
'Edit campaign',
'google-listings-and-ads'
),
content: (
<AdsCampaign
campaign={ campaign }
context={ eventContext }
headerTitle={ __(
'Edit your paid campaign',
'Edit your campaign',
'google-listings-and-ads'
) }
continueButton={ ( formContext ) => (
Expand Down
2 changes: 1 addition & 1 deletion js/src/product-feed/submission-success-guide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const SubmissionSuccessGuide = () => {
action: 'create-paid-campaign',
} }
>
{ __( 'Create paid campaign', 'google-listings-and-ads' ) }
{ __( 'Create campaign', 'google-listings-and-ads' ) }
</AddPaidCampaignButton>
</>
);
Expand Down
2 changes: 1 addition & 1 deletion js/src/reports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export { default as ProductsReport } from './products';
/**
* @typedef {Object} ProgramsReportData
* @property {Array<ProgramsData>} freeListings Free listings data
* @property {Array<ProgramsData>} campaigns Paid campaigns data.
* @property {Array<ProgramsData>} campaigns Ad campaigns data.
* @property {Array<IntervalsData> | null} intervals Intervals data.
* @property {PerformanceData} totals Performance data.
*/
Expand Down
2 changes: 1 addition & 1 deletion js/src/reports/metric-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const MetricNumber = ( {
// And Free Listings API may not respond with data.
if ( missingFreeListingsData !== MISSING_FREE_LISTINGS_DATA.NONE ) {
const text = __(
'This data is currently available for paid campaigns only.',
'This data is currently available for Google Ads campaigns only.',
'google-listings-and-ads'
);
infos.push( text );
Expand Down
2 changes: 1 addition & 1 deletion js/src/reports/products/filter-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const reportSourceConfig = {
filters: [
{
value: REPORT_SOURCE_PAID,
label: __( 'Paid campaigns', 'google-listings-and-ads' ),
label: __( 'Ad campaigns', 'google-listings-and-ads' ),
},
{
value: REPORT_SOURCE_FREE,
Expand Down
4 changes: 2 additions & 2 deletions js/src/settings/disconnect-modal/confirm-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const textDict = {
'google-listings-and-ads'
),
__(
'Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).',
'Any ongoing campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).',
'google-listings-and-ads'
),
],
Expand All @@ -57,7 +57,7 @@ const textDict = {
'google-listings-and-ads'
),
__(
'Any ongoing paid campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).',
'Any ongoing campaigns will continue to run. They can be managed, edited, or deleted manually from Google Ads (ads.google.com).',
'google-listings-and-ads'
),
__(
Expand Down
2 changes: 1 addition & 1 deletion js/src/setup-ads/ads-stepper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const AdsStepper = () => {
},
{
key: '2',
label: __( 'Create your paid campaign', 'google-listings-and-ads' ),
label: __( 'Create your campaign', 'google-listings-and-ads' ),
content: <SetupPaidAds />,
onClick: handleStepClick,
},
Expand Down
2 changes: 1 addition & 1 deletion js/src/setup-ads/ads-stepper/setup-accounts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const SetupAccounts = ( props ) => {
'google-listings-and-ads'
) }
description={ __(
'Connect your Google account and your Google Ads account to set up a paid Performance Max campaign.',
'Connect your Google account and your Google Ads account to set up a Performance Max campaign.',
'google-listings-and-ads'
) }
/>
Expand Down
4 changes: 2 additions & 2 deletions js/src/setup-ads/ads-stepper/setup-paid-ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ const SetupPaidAds = () => {
>
<AdsCampaign
headerTitle={ __(
'Create your paid campaign',
'Create your campaign',
'google-listings-and-ads'
) }
context="setup-ads"
continueButton={ ( formContext ) => (
<AppButton
isPrimary
text={ __(
'Launch paid campaign',
'Create campaign',
'google-listings-and-ads'
) }
disabled={
Expand Down
2 changes: 1 addition & 1 deletion js/src/setup-ads/top-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SetupAdsTopBar = () => {

return (
<TopBar
title={ __( 'Set up paid campaign', 'google-listings-and-ads' ) }
title={ __( 'Set up your campaign', 'google-listings-and-ads' ) }
helpButton={ <HelpIconButton eventContext="setup-ads" /> }
backHref={ getNewPath( {}, '/google/dashboard' ) }
onBackButtonClick={ handleBackButtonClick }
Expand Down
5 changes: 1 addition & 4 deletions js/src/setup-mc/setup-stepper/skip-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ export default function SkipButton( {
<>
<AppButton
isTertiary
text={ __(
'Skip paid ads creation',
'google-listings-and-ads'
) }
text={ __( 'Skip ads creation', 'google-listings-and-ads' ) }
loading={ loading }
disabled={ disabled }
onClick={ handleOnSkipClick }
Expand Down
2 changes: 1 addition & 1 deletion src/Notes/CompleteSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function get_name(): string {
public function get_entry(): NoteEntry {
$note = new NoteEntry();
$note->set_title( __( 'Reach more shoppers with free listings on Google', 'google-listings-and-ads' ) );
$note->set_content( __( 'Finish setting up Google for WooCommerce to list your products on Google for free and promote them with paid ads.', 'google-listings-and-ads' ) );
$note->set_content( __( 'Finish setting up Google for WooCommerce to list your products on Google for free and promote them with ads.', 'google-listings-and-ads' ) );
$note->set_content_data( new stdClass() );
$note->set_type( NoteEntry::E_WC_ADMIN_NOTE_INFORMATIONAL );
$note->set_layout( 'plain' );
Expand Down
4 changes: 2 additions & 2 deletions src/Notes/SetupCampaignTwoWeeks.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ protected function get_gla_setup_days(): int {
*/
protected function set_title_and_content( NoteEntry $note ): void {
if ( ! $this->ads_service->is_setup_started() ) {
$note->set_title( __( 'Reach more shoppers with paid listings on Google', 'google-listings-and-ads' ) );
$note->set_title( __( 'Reach more shoppers with Google Ads', 'google-listings-and-ads' ) );
$note->set_content(
__(
'Your products are ready for Google Ads! Connect with the right shoppers at the right moment when they’re searching for products like yours. Connect your Google Ads account to create your first paid ad campaign.',
'Your products are ready for Google Ads! Connect with the right shoppers at the right moment when they’re searching for products like yours. Connect your Google Ads account to create your first campaign.',
'google-listings-and-ads'
)
);
Expand Down
4 changes: 2 additions & 2 deletions src/Tracking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Do not edit it manually!
-->

### [`gla_add_paid_campaign_clicked`](../../js/src/components/paid-ads/add-paid-campaign-button.js#L15)
"Add paid campaign" button is clicked.
"Add campaign" button is clicked.
#### Properties
| name | type | description |
| ---- | ---- | ----------- |
Expand Down Expand Up @@ -546,7 +546,7 @@ Clicking on the "Scan for assets" button.
- [`exports`](../../js/src/components/paid-ads/asset-group/assets-loader.js#L96)

### [`gla_launch_paid_campaign_button_click`](../../js/src/utils/tracks.js#L167)
Triggered when the "Launch paid campaign" button is clicked to add a new paid campaign in the Google Ads setup flow.
Triggered when the "Create campaign" button is clicked to add a new campaign in the Google Ads setup flow.
#### Properties
| name | type | description |
| ---- | ---- | ----------- |
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/global-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = async ( config ) => {
await adminPage
.locator( 'input[name="pwd"]' )
.fill( admin.password );
await adminPage.locator( 'text=Log In' ).click();
await adminPage.getByRole( 'button', { name: 'Log In' } ).click();
await adminPage.waitForLoadState( LOAD_STATE.DOM_CONTENT_LOADED );
await adminPage.goto( `/wp-admin` );
await adminPage.waitForLoadState( LOAD_STATE.DOM_CONTENT_LOADED );
Expand Down
Loading

0 comments on commit 98c62a5

Please sign in to comment.