256 Kilobytes

Forum in Pay Per Click (PPC) Advertising | By Nicksonjohn

Published 7 months agoWed, 21 Aug 2019 23:37:19 -0700

195 views, 0 RAMs, and 1 comment

Tags: PPC, dynamic search ads, dynamic landing pages

Profile Photo - Default Nicksonjohn
🗎 16 🗨 19 🐏 5
Classic User

Can anyone help me out to create dynamic search ads with dynamic landing pages.

Download more RAM. 🐏 ⨉ 0 Posted by Nicksonjohn 7 months ago 🕓 Posted at 21 August, 2019 23:37 PM PDT
Profile Photo - August R. Garcia August R. Garcia LARPing as a Sysadmi... Portland, OR
🗎 213 🗨 1116 🐏 337
Site Owner

The tools that you'll use depend on your setup.

If you want to do this in pure PHP (or some other arbitrary server-side templating language), the basic process would be something like:

  1. Choose some URLs. E.g., if you want to have dynamic landing pages for different cities:
    1. https://www.example.com/product.php?city=Boston
    2. https://www.example.com/product.php?city=Detroit
  2. Extract GET parameters from the URL and fill them into the page. If applicable, you might also have some kind of lookup chart within the PHP code to get more details to fill in. Example code below.
// PHP IF shorthand syntax
$city = (isset($_GET["city"])) ? $_GET["city"] : "ERR"; 

// Example with a lookup chart to get more data based on a URL parameter 
if       ( strtolower($city) == "boston"  )   $state = "Massachusetts"; 
else if  ( strtolower($city) == "detroit" )   $state = "Michigan"; 
else                                          $state = "ERR"; 

<!-- htmlspecialchars() is used here to prevent arbitrary HTML from being injected -->
<h1>Best Dentist in <?= htmlspecialchars($city); ?></h1>
<p>If you live in <?= htmlspecialchars($city); ?>, you might want to find a dentist. You are on the right page. This city has some of the finest dentists in all of <?= htmlspecialchars($state); ?></p>

If you're using WordPress (which is built on PHP), the process would basically be the same. You'd have to find the part of the source code that you want to have modified based on URL parameters, and then edit that template file. There's probably a plugin somewhere that will help with this or do this for you; after searching for a minute or two, there was no specific plugin that stood out, but if you looked around there may be a solution that works out of the box.

Users Who Have Downloaded More RAM:
Nicksonjohn (7 months ago)
🐏 ⨉ 1
Posted by August R. Garcia 7 months ago

Edit History

• [2019-08-22 23:39 PDT] August R. Garcia (7 months ago)
• [2019-08-22 23:39 PDT] August R. Garcia (7 months ago)
🕓 Posted at 22 August, 2019 23:39 PM PDT

Sir, I can do you a nice SEO.

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.