Imagine working for a digital marketing agency, and the agency is approached by a massive online furniture retailer. They want to test your skills at creating large campaigns for all of their website. You are tasked with creating a prototype set of keywords for search campaigns for their sofas section. The client says that they want you to generate keywords for the following products:
- sofas
- convertible sofas
- love seats
- recliners
- sofa beds
The client is a low-cost retailer, offering many promotions and discounts. You will need to focus on such keywords. You will also need to move away from luxury keywords and topics, as you are targeting price-sensitive customers. Because they are going to be tight on budget, it would be good to focus on a tightly targeted set of keywords and make sure they are all set to exact and phrase match.
Based on the brief above you will first need to generate a list of words, that together with the products given above would make for good keywords. Here are some examples:
- Products: sofas, recliners
- Words: buy, prices
The resulting keywords: 'buy sofas', 'sofas buy', 'buy recliners', 'recliners buy', 'prices sofas', 'sofas prices', 'prices recliners', 'recliners prices'.
As a final result, you want to have a DataFrame that looks like this:
Campaign | Ad Group | Keyword | Criterion Type |
---|---|---|---|
Campaign1 | AdGroup_1 | keyword 1a | Exact |
Campaign1 | AdGroup_1 | keyword 1b | Exact |
Campaign1 | AdGroup_2 | keyword 2a | Exact |
import pandas as pd
# Start coding here
# Use as many cells as you need
product = ["sofas", "convertible sofas", "love seats", "recliners", "sofa beds"]
words = ["buy", "price", "discount", "promotion", "promo", "shop"]
keywords_list = []
for products in product:
for word in words:
keywords_list.append([product, products + ' ' + word])
keywords_list.append([product, word + ' ' + products])
print(keywords_list)
keywords_df = pd.DataFrame(keywords_list, columns = ["Ad Group", "Keyword"])
keywords_df["Campaign"] = "SEM_Sofas"
keywords_df["Criterion Type"] = "Exact"
keywords_df.to_csv("keywords.csv", index =False)