0
0
Digital Marketingknowledge~30 mins

Negative keywords for cost control in Digital Marketing - Mini Project: Build & Apply

Choose your learning style9 modes available
Negative keywords for cost control
📖 Scenario: You are managing an online advertising campaign for a small business. You want to make sure your ads only show to people who are likely to buy your product. To save money, you need to stop your ads from showing up for searches that are not relevant.
🎯 Goal: Build a list of negative keywords to control costs by preventing ads from appearing on irrelevant searches.
📋 What You'll Learn
Create a list called keywords with specific search terms.
Create a list called negative_keywords with words to exclude.
Use a loop to filter out keywords containing any negative keyword.
Create a final list called filtered_keywords with only relevant keywords.
💡 Why This Matters
🌍 Real World
Negative keywords are used in online advertising to prevent ads from showing on irrelevant or low-value searches, saving money and improving ad performance.
💼 Career
Digital marketers and advertisers use negative keywords to optimize campaigns and control costs effectively.
Progress0 / 4 steps
1
Create the initial list of keywords
Create a list called keywords with these exact search terms: 'cheap shoes', 'running shoes', 'free shoes', 'discount shoes', 'buy shoes online'.
Digital Marketing
Need a hint?

Use square brackets [] to create a list and separate items with commas.

2
Create the list of negative keywords
Create a list called negative_keywords with these exact words: 'cheap', 'free', 'discount'.
Digital Marketing
Need a hint?

Negative keywords help exclude unwanted searches to save money.

3
Filter keywords using negative keywords
Create a list called filtered_keywords that includes only keywords from keywords which do NOT contain any word from negative_keywords. Use a for loop with variable keyword to check each item.
Digital Marketing
Need a hint?

Use any() to check if any negative word is in the keyword.

4
Complete the negative keyword filtering setup
Add a comment above the code explaining that filtered_keywords contains only relevant keywords after excluding negative keywords.
Digital Marketing
Need a hint?

Comments help explain what your code does for others reading it.