Case Study: Country Shore Marketing Automation

Published 08/10/2018

Client Name

Country Shore



Project Title

Marketing Automation

Start Date


Target Launch Date


Actual Launch Date


Problem Summary

As a small company that was hugely reliant on Internet sales, digital marketing was crucial for Country Shore.

However, at the time, the tools that were offered by ad platforms such as Google AdWords and Facebook Ads were not 100% sufficient.

Often Country Shore would hit spending limits on one part of their marketing funnel on a particular day even though the ROI from that channel was providing immediate and significant revenue.

For example, if Country Shore ran a remarketing ad that cost $5.00 per click with a maximum spend of $500 per day, but it was generating sales of $50 while only costing $20 per sale, they would be leaving money on the table.

Solution Summary

The solution Gunner came up with was to generate real-time ROI on each stage of the funnel.

As long as the ROI was positive, the cap should continually be raised.

However, if the ROI was negative, once the cap is reached, the ad should stop running for that day.


The main challenge was coordinating all the APIs.

We basically needed to constantly generate the ROI on all the different ads by pulling data from the Shopify API and comparing it to the data from the ads and decide if the ad should keep running or get shutdown.

Technical Approach

We leverage AWS Lambda to create a lot of microservices in the open source serverless framework.

Each microservice had one purpose – check ad spend, check sales from ad, update ad, etc, etc.

In all, we coordinated APIs between Shopify, AdWords and Facebook Ads.

Project Management Approach

We took an Agile Scrum approach to the project with one-week iterations and an IPM each week to demonstrate our progress.

We started with one research sprint to learn about the AdWords and Facebook Ads APIs, and after that, we worked in development sprints until completion.

Project Roles

Lisa Brignac – Project Manager

Cody Swann – Developer

Proficiencies Used

  • Shopify
  • e-commerce
  • Microservices
  • AWS
  • Lambda
  • JavaScript
  • Node
  • Ruby on Rails
  • serverless framework
  • serverless
  • Facebook Ads
  • Google AdWords
  • APIs

Lessons Learned

We learned a lot about the AdWords and Facebook Ads APIs.

We also learned how to streamline and scale requests between the services so we would not hit throttle limits.


At the end of the day, we implemented a solution that captured all available net positive revenue.

We kept spending, tweaked CPC and adjusted caps to capture all positive value.

This meant that we generated as much revenue as possible, which was Country Shore’s goal at the time.

The algorithm’s were all configurable, too. Meaning Country Shore could say “instead of positive ROI, run the ads until they dip below 10% ROI.”

This would be the change to make if profit margins became more important than straight revenue.

In the end, Country Shore saw revenue increase from online sales by 20%

Why Gunner Technology?

Gunner Technology has had a long-standing relationship with Country Shore as we helped set up their entire technology infrastructure when the company launched and are constantly automating redundant tasks for them.

Architectural Diagram

Country Shore - Marketing Automation - Cody Swann.png

Architectural Description

The infrastructure was completely headless.

We used serverless framework to organize and coordinate the microservices and simply created Node Lambda functions that ran on a given schedule (every minute).

Give us a try free for 30 days!

Don't take our word for it. New clients get to try our services free for 30 days.

We'll put together a team of analysts, developers and designers to partner with you and get to work.

To get started, just fill out the form below.

They show a passion for understanding our business objectives

They show a passion for understanding our business objectives

They get the job done on time and are quite adept at using open source technology, which saves us money. Gunner balances pragmatism and perfectionism, which is important to us. After using them for both short term and long term projects, we cannot give a higher recommendation

Sam Petteway - CEO

5348 Vegas Drive
Las Vegas, NV 89108
GSA: GS-35F-306GA | CAGE: 7Q6F5 | DUNS: 078818362
© 2020 Gunner Technology
Privacy Policy | Terms of Use