Skip to content

Commit d393800

Browse files
committed
chore: renames Google Adwords to Google Ads
1 parent 252ae9a commit d393800

File tree

11 files changed

+39
-39
lines changed

11 files changed

+39
-39
lines changed

components/domains/DomainHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const DomainHeader = (
8383
size={14}
8484
color="#aaa"
8585
classes="ml-2 hidden lg:inline-block"
86-
title='Get Keyword Ideas for this domain from Google Adwords'
86+
title='Get Keyword Ideas for this domain from Google Ads'
8787
/>
8888
</a>
8989
</Link>

components/ideas/KeywordIdeasTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const IdeasKeywordsTable = ({
229229
)}
230230
{!isAdwordsIntegrated && (
231231
<p className=' p-9 pt-[10%] text-center text-gray-500'>
232-
Google Adwords has not been Integrated yet. Please follow <a className='text-indigo-600 underline' href='https://docs.serpbear.com/miscellaneous/integrate-google-adwords' target="_blank" rel='noreferrer'>These Steps</a> to integrate Google Adwords.
232+
Google Ads has not been Integrated yet. Please follow <a className='text-indigo-600 underline' href='https://docs.serpbear.com/miscellaneous/integrate-google-ads' target="_blank" rel='noreferrer'>These Steps</a> to integrate Google Ads.
233233
</p>
234234
)}
235235
</div>

components/ideas/KeywordIdeasUpdater.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const KeywordIdeasUpdater = ({ onUpdate, settings, domain, searchConsoleConnecte
127127
<button
128128
className={`w-full py-2 px-5 mt-2 rounded bg-blue-700 text-white
129129
font-semibold ${!adwordsConnected ? ' cursor-not-allowed opacity-40' : 'cursor-pointer'}`}
130-
title={!adwordsConnected ? 'Please Connect Adwords account to generate Keyword Ideas..' : ''}
130+
title={!adwordsConnected ? 'Please Connect Ads account to generate Keyword Ideas..' : ''}
131131
onClick={() => !isUpdatingIdeas && adwordsConnected && reloadKeywordIdeas()}>
132132
<Icon type={isUpdatingIdeas ? 'loading' : 'reload'} size={12} /> {isUpdatingIdeas ? 'Loading....' : 'Load Keyword Ideas'}
133133
</button>

components/settings/AdWordsSettings.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const AdWordsSettings = ({ settings, settingsError, updateSettings, performUpdat
8686
</div>
8787
<div className='mt-4 border-t mb-4 border-b border-gray-100 pt-4 pb-0 relative'>
8888
{!cloudProjectIntegrated && <div className=' absolute w-full h-full z-50' />}
89-
<h4 className=' mb-3 font-semibold text-blue-700'>Step 2: Connect Google AdWords</h4>
89+
<h4 className=' mb-3 font-semibold text-blue-700'>Step 2: Connect Google Ads</h4>
9090
<div className={!cloudProjectIntegrated ? 'opacity-40' : ''}>
9191
<div className="settings__section__input mb-4 flex justify-between items-center w-full">
9292
<SecretField
@@ -98,7 +98,7 @@ const AdWordsSettings = ({ settings, settingsError, updateSettings, performUpdat
9898
</div>
9999
<div className="settings__section__input mb-4 flex justify-between items-center w-full">
100100
<SecretField
101-
label='AdWords Test Account ID'
101+
label='Test Account ID'
102102
onChange={(account_id:string) => updateSettings('adwords_account_id', account_id)}
103103
value={adwords_account_id}
104104
placeholder='590-948-9101'
@@ -112,7 +112,7 @@ const AdWordsSettings = ({ settings, settingsError, updateSettings, performUpdat
112112
title={hasAllCredentials ? '' : 'Insert All the data in the above fields to Test the Integration'}
113113
onClick={testIntegration}>
114114
{isTesting && <Icon type='loading' />}
115-
<Icon type='adwords' size={14} /> Test AdWords Integration
115+
<Icon type='adwords' size={14} /> Test Google Ads Integration
116116
</button>
117117
</div>
118118
</div>
@@ -130,13 +130,13 @@ const AdWordsSettings = ({ settings, settingsError, updateSettings, performUpdat
130130
${hasAllCredentials ? 'cursor-pointer' : 'cursor-not-allowed opacity-40'}
131131
hover:bg-blue-700 hover:text-white transition`}
132132
onClick={updateVolumeData}>
133-
<Icon type={isUpdatingVolume ? 'loading' : 'reload'} size={isUpdatingVolume ? 16 : 12} /> Update Keywords Volume
133+
<Icon type={isUpdatingVolume ? 'loading' : 'reload'} size={isUpdatingVolume ? 16 : 12} /> Update Keywords Volume Data
134134
</button>
135135
</div>
136136
</div>
137137
</div>
138138
<p className='mb-4 text-xs'>
139-
<a target='_blank' rel='noreferrer' href='https://docs.serpbear.com/keyword-research' className=' underline text-blue-600'>Integrate Google Adwords</a> to get Keyword Ideas & Search Volume.{' '}
139+
Relevant Documentation: <a target='_blank' rel='noreferrer' href='https://docs.serpbear.com/miscellaneous/integrate-google-ads' className=' underline text-blue-600'>Integrate Google Ads</a>.
140140
</p>
141141
</div>
142142
</div>

components/settings/IntegrationSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const IntegrationSettings = ({ settings, settingsError, updateSettings, performU
2828
<li
2929
className={`${tabStyle} ${currentTab === 'adwords' ? ' bg-blue-50 text-blue-600' : ''}`}
3030
onClick={() => setCurrentTab('adwords')}>
31-
<Icon type='adwords' size={14} /> Adwords
31+
<Icon type='adwords' size={14} /> Google Ads
3232
</li>
3333
</ul>
3434
</div>

pages/api/adwords.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,31 @@ const getAdwordsRefreshToken = async (req: NextApiRequest, res: NextApiResponse<
4343
if (r?.tokens?.refresh_token) {
4444
const adwords_refresh_token = cryptr.encrypt(r.tokens.refresh_token);
4545
await writeFile(`${process.cwd()}/data/settings.json`, JSON.stringify({ ...settings, adwords_refresh_token }), { encoding: 'utf-8' });
46-
return res.status(200).send('Adwords Intergrated Successfully! You can close this window.');
46+
return res.status(200).send('Google Ads Intergrated Successfully! You can close this window.');
4747
}
48-
return res.status(200).send('Error Getting the Adwords Refresh Token. Please Try Again!');
48+
return res.status(200).send('Error Getting the Google Ads Refresh Token. Please Try Again!');
4949
} catch (error) {
50-
console.log('[Error] Getting Adwords Refresh Token!');
50+
console.log('[Error] Getting Google Ads Refresh Token!');
5151
console.log('error :', error);
52-
return res.status(200).send('Error Saving the Adwords Refresh Token. Please Try Again!');
52+
return res.status(200).send('Error Saving the Google Ads Refresh Token. Please Try Again!');
5353
}
5454
} else {
5555
return res.status(200).send('No Code Provided By Google. Please Try Again!');
5656
}
5757
} catch (error) {
5858
console.log('[ERROR] CRON Refreshing Keywords: ', error);
59-
return res.status(400).send('Error Getting Adwords Refresh Token. Please Try Again!');
59+
return res.status(400).send('Error Getting Google Ads Refresh Token. Please Try Again!');
6060
}
6161
};
6262

6363
const validateAdwordsIntegration = async (req: NextApiRequest, res: NextApiResponse<adwordsValidateResp>) => {
64-
const errMsg = 'Error Validating Adwords Integration. Please make sure your provided data are correct!';
64+
const errMsg = 'Error Validating Google Ads Integration. Please make sure your provided data are correct!';
6565
const { developer_token, account_id } = req.body;
6666
if (!developer_token || !account_id) {
67-
return res.status(400).json({ valid: false, error: 'Please Provide the Adwords Developer Token and Test Account ID' });
67+
return res.status(400).json({ valid: false, error: 'Please Provide the Google Ads Developer Token and Test Account ID' });
6868
}
6969
try {
70-
// Save the Adwords Developer Token & Adwords Test Account ID in App Settings
70+
// Save the Adwords Developer Token & Google Ads Test Account ID in App Settings
7171
const settingsRaw = await readFile(`${process.cwd()}/data/settings.json`, { encoding: 'utf-8' });
7272
const settings: SettingsType = settingsRaw ? JSON.parse(settingsRaw) : {};
7373
const cryptr = new Cryptr(process.env.SECRET as string);
@@ -76,7 +76,7 @@ const validateAdwordsIntegration = async (req: NextApiRequest, res: NextApiRespo
7676
const securedSettings = { ...settings, adwords_developer_token, adwords_account_id };
7777
await writeFile(`${process.cwd()}/data/settings.json`, JSON.stringify(securedSettings), { encoding: 'utf-8' });
7878

79-
// Make a test Request to Google Adwords
79+
// Make a test Request to Google Ads
8080
const adwordsCreds = await getAdwordsCredentials();
8181
const { client_id, client_secret, refresh_token } = adwordsCreds || {};
8282
if (adwordsCreds && client_id && client_secret && developer_token && account_id && refresh_token) {
@@ -91,7 +91,7 @@ const validateAdwordsIntegration = async (req: NextApiRequest, res: NextApiRespo
9191
}
9292
return res.status(400).json({ valid: false, error: errMsg });
9393
} catch (error) {
94-
console.log('[ERROR] Validating AdWords Integration: ', error);
94+
console.log('[ERROR] Validating Google Ads Integration: ', error);
9595
return res.status(400).json({ valid: false, error: errMsg });
9696
}
9797
};

pages/api/volume.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const updatekeywordVolume = async (req: NextApiRequest, res: NextApiResponse<Key
5555
}
5656
}
5757
} else {
58-
return res.status(400).json({ error: 'Error Fetching Keywords Volume Data from Google Adwords' });
58+
return res.status(400).json({ error: 'Error Fetching Keywords Volume Data from Google Ads' });
5959
}
6060
}
6161

pages/domain/ideas/[slug]/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const DiscoverPage: NextPage = () => {
9595
</CSSTransition>
9696

9797
{showUpdateModal && activDomain?.domain && (
98-
<Modal closeModal={() => setShowUpdateModal(false) } title={'Load Keyword Ideas from Google Adwords'} verticalCenter={true}>
98+
<Modal closeModal={() => setShowUpdateModal(false) } title={'Load Keyword Ideas from Google Ads'} verticalCenter={true}>
9999
<KeywordIdeasUpdater
100100
domain={activDomain}
101101
onUpdate={() => setShowUpdateModal(false)}

pages/research/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Research: NextPage = () => {
108108
<button
109109
className={`w-full py-2 px-5 mt-2 rounded bg-blue-700 text-white
110110
font-semibold ${!adwordsConnected ? ' cursor-not-allowed opacity-40' : 'cursor-pointer'}`}
111-
title={!adwordsConnected ? 'Please Connect Adwords account to generate Keyword Ideas..' : ''}
111+
title={!adwordsConnected ? 'Please Connect Google Ads account to generate Keyword Ideas..' : ''}
112112
onClick={() => !isUpdatingIdeas && adwordsConnected && reloadKeywordIdeas()}>
113113
<Icon type={isUpdatingIdeas ? 'loading' : 'download'} size={14} /> {isUpdatingIdeas ? 'Loading....' : 'Load Ideas'}
114114
</button>

services/adwords.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export function useTestAdwordsIntegration(onSuccess?: Function) {
1414
}, {
1515
onSuccess: async (data) => {
1616
console.log('Ideas Added:', data);
17-
toast('Google Adwords has been integrated successfully!', { icon: '✔️' });
17+
toast('Google Ads has been integrated successfully!', { icon: '✔️' });
1818
if (onSuccess) {
1919
onSuccess(false);
2020
}
2121
},
2222
onError: (error) => {
2323
console.log('Error Loading Keyword Ideas!!!', error);
24-
toast('Failed to connect to Google Adwords. Please make sure you have provided the correct API info.', { icon: '⚠️' });
24+
toast('Failed to connect to Google Ads. Please make sure you have provided the correct API info.', { icon: '⚠️' });
2525
},
2626
});
2727
}

0 commit comments

Comments
 (0)