|
28 | 28 | },
|
29 | 29 | "outputs": [],
|
30 | 30 | "source": [
|
31 |
| - "import csv # the main package simply to save the keywords table to a file" |
| 31 | + "import csv # to save the keywords table to a file" |
32 | 32 | ]
|
33 | 33 | },
|
34 | 34 | {
|
|
47 | 47 | "For this example we will be generating keywords for an imaginary business that sells used cars online.\n",
|
48 | 48 | "For simplicity, let's assume that the following are available as products and keywords:\n",
|
49 | 49 | "\n",
|
50 |
| - " 1. Products: 'honda', 'honda accord', 'honda civic', 'toyota', 'toyota camry'\n", |
51 |
| - " 2. Keywords: 'buy', 'price', 'second hand\n", |
| 50 | + "1. Products: 'honda', 'honda accord', 'honda civic', 'toyota', 'toyota camry'\n", |
| 51 | + "2. Keywords: 'buy', 'price', 'second hand'\n", |
52 | 52 | "\n",
|
53 |
| - " The end result we are looking for, would be something like this:\n", |
| 53 | + "The end result we are looking for, would be something like this:\n", |
54 | 54 | "\n",
|
55 |
| - " |Campaign | Ad Group | Keyword | Criterion Type |\n", |
56 |
| - " |-----------|--------------|--------------------------|-----------------|\n", |
57 |
| - " |SEM Cars | Toyota | buy toyota | Exact |\n", |
58 |
| - " |SEM Cars | Toyota | buy toyota | Phrase |\n", |
59 |
| - " |SEM Cars | Honda Accord | buy honda accord | Exact |\n", |
60 |
| - " |SEM Cars | Honda Accord | honda accord second hand | Exact |\n", |
61 |
| - " |etc...\n", |
| 55 | + "\n", |
| 56 | + "|Campaign | Ad Group | Keyword | Criterion Type |\n", |
| 57 | + "|-----------|--------------|--------------------------|-----------------|\n", |
| 58 | + "|SEM Cars | Toyota | buy toyota | Exact |\n", |
| 59 | + "|SEM Cars | Toyota | buy toyota | Phrase |\n", |
| 60 | + "|SEM Cars | Honda Accord | buy honda accord | Exact |\n", |
| 61 | + "|SEM Cars | Honda Accord | honda accord second hand | Exact |\n", |
| 62 | + "etc...\n", |
62 | 63 | "\n",
|
63 | 64 | "You can easily imagine how large the combinations would become when we have, let's say 20 car makes, with ten models each, together with 25-30 different keywords the list would be in the tens of thousands.\n",
|
64 | 65 | "So we need a systematic way of knowing how to generate them, as well as knowing that we can make structural changes across all combinations whenever we need (and we will have to during the course of running the campaigns).\n",
|
|
263 | 264 | "\n",
|
264 | 265 | "\n",
|
265 | 266 | "| location | make | model |\n",
|
266 |
| - "|----------+--------+--------|\n", |
| 267 | + "|----------|--------|--------|\n", |
267 | 268 | "| Tokyo | honda | civic |\n",
|
268 | 269 | "| Tokyo | honda | accord |\n",
|
269 | 270 | "| Tokyo | toyota | camry |\n",
|
|
276 | 277 | }
|
277 | 278 | ],
|
278 | 279 | "metadata": {
|
| 280 | + "hide_input": false, |
279 | 281 | "kernelspec": {
|
280 | 282 | "display_name": "Python 3",
|
281 | 283 | "name": "python3"
|
282 | 284 | },
|
283 |
| - "name": "sem_generate_keywords.ipynb" |
| 285 | + "language_info": { |
| 286 | + "codemirror_mode": { |
| 287 | + "name": "ipython", |
| 288 | + "version": 3 |
| 289 | + }, |
| 290 | + "file_extension": ".py", |
| 291 | + "mimetype": "text/x-python", |
| 292 | + "name": "python", |
| 293 | + "nbconvert_exporter": "python", |
| 294 | + "pygments_lexer": "ipython3", |
| 295 | + "version": "3.6.1" |
| 296 | + }, |
| 297 | + "name": "sem_generate_keywords.ipynb", |
| 298 | + "toc": { |
| 299 | + "nav_menu": null, |
| 300 | + "number_sections": true, |
| 301 | + "sideBar": true, |
| 302 | + "skip_h1_title": false, |
| 303 | + "toc_cell": false, |
| 304 | + "toc_position": null, |
| 305 | + "toc_section_display": "block", |
| 306 | + "toc_window_display": false |
| 307 | + }, |
| 308 | + "varInspector": { |
| 309 | + "cols": { |
| 310 | + "lenName": 16, |
| 311 | + "lenType": 16, |
| 312 | + "lenVar": 40 |
| 313 | + }, |
| 314 | + "kernels_config": { |
| 315 | + "python": { |
| 316 | + "delete_cmd_postfix": "", |
| 317 | + "delete_cmd_prefix": "del ", |
| 318 | + "library": "var_list.py", |
| 319 | + "varRefreshCmd": "print(var_dic_list())" |
| 320 | + }, |
| 321 | + "r": { |
| 322 | + "delete_cmd_postfix": ") ", |
| 323 | + "delete_cmd_prefix": "rm(", |
| 324 | + "library": "var_list.r", |
| 325 | + "varRefreshCmd": "cat(var_dic_list()) " |
| 326 | + } |
| 327 | + }, |
| 328 | + "types_to_exclude": [ |
| 329 | + "module", |
| 330 | + "function", |
| 331 | + "builtin_function_or_method", |
| 332 | + "instance", |
| 333 | + "_Feature" |
| 334 | + ], |
| 335 | + "window_display": false |
| 336 | + } |
284 | 337 | },
|
285 | 338 | "nbformat": 4,
|
286 | 339 | "nbformat_minor": 2
|
|
0 commit comments