MARKETING
How Learning Python Can Improve Your PPC Campaigns
Python has a major focus in SEO but what about PPC? The two disciplines are often treated as polar opposites but they share common goals and adding a bit of Python to a PPC campaign can do wonders for improving conversions, CTR, and time spent.
But before we have a look at how Python can boost your PPC performance, we need to outline what the language is all about.
What is Python?
Python is a programming language created by Guido van Rossum in the 1980s and publicly released in 1991. van Rossum wanted Python to emphasize code readability with five philosophical pillars:
- Beautiful is better than ugly
- Explicit is better than implicit
- Simple is better than complex
- Complex is better than complicated
- Readability counts
Its structure and syntax help users to write logical code regardless of project size.
Companies that use Python include Google (naturally), Netflix, YouTube, NASA, IBM, Mozilla, and Disney.
Is it easy to learn?
The entry-level for Python is very low. Everything is based on logic and the language shares a lot of its syntax with other well-known languages such as JavaScript and C++. And if there isn’t a function that can solve your problem, you can create your own.
How do I install it?
As Jacob Fairclough said, Python can be difficult to install for some users. But that depends on your operating system.
For most Mac users, Python comes built-in so you can use your Terminal to access it. That’s not the case for Windows users. The recommended way is via Anaconda as this also installs a lot of useful libraries to use (which I’ll explain in more detail later).
Google has its own environment as well called Google Colab.
Python techniques to help your PPC campaigns
In the words of Aristotle, “for the things we have to learn before we can do them, we learn by doing them”. And Python is no exception. Practicing Python in SEO is common practice and it’s the same for PPC.
Understanding other languages is important but Python can save professionals a lot of time by automating jobs that would normally take hours.
The amount of data you can obtain from a PPC campaign can grow very quickly so a way to organize and automate it into a logical structure would make everyone’s lives a lot easier in the long run.
Two of the biggest applications of Python are AI and machine learning and they’re also the main bridges between the language and PPC. As Danielle Strouther said in her article AI For PPC Is Only Useful If You Use External Tools, “using AI for PPC is no longer an option. It’s a necessity.” So that’s what we’ll look at – integrating Python with external tools and software.
Other things you can do with Python that can help you with PPC management includes:
- Data scraping
- Data analysis and mining
- Data visualization
- Natural language processing (NLP)
Python + Google Ads
We all know how laborious Google Ads management can be. So Google created an API for its ad platform so users can automate a wide range of PPC-related tasks. You can find a list of them on the Client Library page.
One programmer created a script for KPI reporting which would come in handy for clients, shareholders, and colleagues.
Python + Google Search Console
When you write PPC ads, you want them to convert so your ROI can be as high as possible. Search data from Search Console can help find areas to improve or examples of success to capitalize on.
Passion Digital created a script that analyses search queries from Search Console to gain insights to improve SEO and PPC performance. It does this by finding keywords and phrases with poor conversion rates and CPA using those terms.
Python + Excel/Google Sheets
One of the most common Python workflow combos involves Excel and Google Sheets.
As data can be exported as CSV files and spreadsheets by most external tools, it’s easy to import them into a spreadsheet program. And Python loves data.
The list of ways to use Python and Excel with PPC data is exhaustive. You could use it to project future trends, CTR prediction, campaign creation, keyword generation, bid modifying, account structure analysis, customer match lists, geolocation targeting.
Python + Google Data Studio
Google Data Studio is a powerful tool for data visualization and it’s free to use. So combining it with Python means a streamlined approach to data viz and reporting.
There are also paid tools like Panoply which can integrate Data Studio and Python along with a multitude of services like Salesforce, Zendesk, and Google Analytics. Suddenly you have a large network of data from every department – sales, dev, customer support, project management, design, web analytics. Phew!
You can even spy on your competitors using Python and create PPC reports and graphs with Data Studio to show the results.
Python + Google
The SERPs are more than just a display of results. They can be used as their own data source and give an insight into how well you and your competitors are doing.
With APIs like Serpstack, you can extract data about ads from any SERP and analyze things like position, title and description optimization, sitelinks, and displayed URLs. You can also leverage this with organic results to find new potential keywords you can bid on and improve your campaigns.
Python + Facebook
In 2017, Facebook made its Prophet open source. The forecasting tool is accessible through Python and R (another programming language) and is optimized for businesses to forecast trends, whether they’re hourly, daily, weekly, or seasonal.
It’s highly advanced and mainly for large scale business use but if you have the expertise and the resources, Prophet has the potential to streamline major paid campaigns.
Useful libraries, modules, and APIs
Vanilla Python can do most jobs but its power lies in all the libraries, modules and APIs you can use. Although they all share similarities, they’re all different additions. A module is a Python file containing functions, variables, and methods, a library is a collection of modules and pre-defined functions that let you perform actions without writing the code yourself, while an API is an interface set of standards and instructions.
Here’s a list of some useful ones you can use.
- Pandas (library) – Pandas is an open-source library that makes data structures and data analysis tools. You can make tables, create ordered and unordered data series and “dataframes”, join, merge, and split them. It’s probably the most flexible data analysis tool to have if you’re using Python.
- CSV (module) – This module goes hand-in-hand with pandas as it allows you to export data into a CSV.
- Requests (library) – Requests is a must if you’re scraping web data. It sends requests to HTTP pages, allowing you access to pull anything from a webpage. If you’re planning to scrape SERP data, it’s an essential library to use.
- Beautiful Soup (library) – Beautiful Soup is the companion to requests, letting you take out everything inside an HTTP page.
- Serpstack (API) – The serpstack API allows you to scrape Google SERP data in real-time and at scale and it lets you export the data in JSON and CSV formats (depending on your account level).
- Google APIs (API) – Google being Google, they have a library of APIs you can use for all kinds of things.
- TensorFlow (library) – One of the best libraries for machine learning.
- SciKit Learn (library) – Another machine learning library for predictive data analysis
Other resources
Summary
Learning a programming language can seem daunting but Python is one of the easiest and most accessible languages out there. Its automation and analysis capabilities have a wide range of uses and it can help to simplify complex data and automate time-consuming tasks. Nobody wants to make their jobs harder!
If I had to give some takeaway advice to remember while you learn, I’d say:
Don’t let FOMO get to you
When I started learning Python, I got carried away with jumping into projects without knowing all the techniques. Everyone on Twitter was making amazing scripts and I was still learning about lists and loops. But then I realized I was never going to get to their level by copying and pasting when I didn’t understand. So I went back to my course and focused solely on that.
Fully understanding the basics is the only way you’ll be able to build up to the advanced techniques. And there’s no expiration date on education.
Practice, practice, practice
Most courses come with practice examples. Aside from those, you should always test what you’ve learned. It doesn’t have to be part of a big project, just something small so you can get the hang of the techniques.
Stay curious
Learning something new isn’t always easy. You’ll get frustrated when things don’t work and you may need some time away if it gets too much. But never lose your curiosity. Programming languages have so many applications and some haven’t even been discovered yet. Stay curious and you might find one.
Find others who are learning
Communities are great places to improve your learning. Here are some great places to collaborate and grow with Python:
Sign up to the Python Weekly newsletter
MARKETING
YouTube Ad Specs, Sizes, and Examples [2024 Update]
Introduction
With billions of users each month, YouTube is the world’s second largest search engine and top website for video content. This makes it a great place for advertising. To succeed, advertisers need to follow the correct YouTube ad specifications. These rules help your ad reach more viewers, increasing the chance of gaining new customers and boosting brand awareness.
Types of YouTube Ads
Video Ads
- Description: These play before, during, or after a YouTube video on computers or mobile devices.
- Types:
- In-stream ads: Can be skippable or non-skippable.
- Bumper ads: Non-skippable, short ads that play before, during, or after a video.
Display Ads
- Description: These appear in different spots on YouTube and usually use text or static images.
- Note: YouTube does not support display image ads directly on its app, but these can be targeted to YouTube.com through Google Display Network (GDN).
Companion Banners
- Description: Appears to the right of the YouTube player on desktop.
- Requirement: Must be purchased alongside In-stream ads, Bumper ads, or In-feed ads.
In-feed Ads
- Description: Resemble videos with images, headlines, and text. They link to a public or unlisted YouTube video.
Outstream Ads
- Description: Mobile-only video ads that play outside of YouTube, on websites and apps within the Google video partner network.
Masthead Ads
- Description: Premium, high-visibility banner ads displayed at the top of the YouTube homepage for both desktop and mobile users.
YouTube Ad Specs by Type
Skippable In-stream Video Ads
- Placement: Before, during, or after a YouTube video.
- Resolution:
- Horizontal: 1920 x 1080px
- Vertical: 1080 x 1920px
- Square: 1080 x 1080px
- Aspect Ratio:
- Horizontal: 16:9
- Vertical: 9:16
- Square: 1:1
- Length:
- Awareness: 15-20 seconds
- Consideration: 2-3 minutes
- Action: 15-20 seconds
Non-skippable In-stream Video Ads
- Description: Must be watched completely before the main video.
- Length: 15 seconds (or 20 seconds in certain markets).
- Resolution:
- Horizontal: 1920 x 1080px
- Vertical: 1080 x 1920px
- Square: 1080 x 1080px
- Aspect Ratio:
- Horizontal: 16:9
- Vertical: 9:16
- Square: 1:1
Bumper Ads
- Length: Maximum 6 seconds.
- File Format: MP4, Quicktime, AVI, ASF, Windows Media, or MPEG.
- Resolution:
- Horizontal: 640 x 360px
- Vertical: 480 x 360px
In-feed Ads
- Description: Show alongside YouTube content, like search results or the Home feed.
- Resolution:
- Horizontal: 1920 x 1080px
- Vertical: 1080 x 1920px
- Square: 1080 x 1080px
- Aspect Ratio:
- Horizontal: 16:9
- Square: 1:1
- Length:
- Awareness: 15-20 seconds
- Consideration: 2-3 minutes
- Headline/Description:
- Headline: Up to 2 lines, 40 characters per line
- Description: Up to 2 lines, 35 characters per line
Display Ads
- Description: Static images or animated media that appear on YouTube next to video suggestions, in search results, or on the homepage.
- Image Size: 300×60 pixels.
- File Type: GIF, JPG, PNG.
- File Size: Max 150KB.
- Max Animation Length: 30 seconds.
Outstream Ads
- Description: Mobile-only video ads that appear on websites and apps within the Google video partner network, not on YouTube itself.
- Logo Specs:
- Square: 1:1 (200 x 200px).
- File Type: JPG, GIF, PNG.
- Max Size: 200KB.
Masthead Ads
- Description: High-visibility ads at the top of the YouTube homepage.
- Resolution: 1920 x 1080 or higher.
- File Type: JPG or PNG (without transparency).
Conclusion
YouTube offers a variety of ad formats to reach audiences effectively in 2024. Whether you want to build brand awareness, drive conversions, or target specific demographics, YouTube provides a dynamic platform for your advertising needs. Always follow Google’s advertising policies and the technical ad specs to ensure your ads perform their best. Ready to start using YouTube ads? Contact us today to get started!
MARKETING
Why We Are Always ‘Clicking to Buy’, According to Psychologists
Amazon pillows.
MARKETING
A deeper dive into data, personalization and Copilots
Salesforce launched a collection of new, generative AI-related products at Connections in Chicago this week. They included new Einstein Copilots for marketers and merchants and Einstein Personalization.
To better understand, not only the potential impact of the new products, but the evolving Salesforce architecture, we sat down with Bobby Jania, CMO, Marketing Cloud.
Dig deeper: Salesforce piles on the Einstein Copilots
Salesforce’s evolving architecture
It’s hard to deny that Salesforce likes coming up with new names for platforms and products (what happened to Customer 360?) and this can sometimes make the observer wonder if something is brand new, or old but with a brand new name. In particular, what exactly is Einstein 1 and how is it related to Salesforce Data Cloud?
“Data Cloud is built on the Einstein 1 platform,” Jania explained. “The Einstein 1 platform is our entire Salesforce platform and that includes products like Sales Cloud, Service Cloud — that it includes the original idea of Salesforce not just being in the cloud, but being multi-tenancy.”
Data Cloud — not an acquisition, of course — was built natively on that platform. It was the first product built on Hyperforce, Salesforce’s new cloud infrastructure architecture. “Since Data Cloud was on what we now call the Einstein 1 platform from Day One, it has always natively connected to, and been able to read anything in Sales Cloud, Service Cloud [and so on]. On top of that, we can now bring in, not only structured but unstructured data.”
That’s a significant progression from the position, several years ago, when Salesforce had stitched together a platform around various acquisitions (ExactTarget, for example) that didn’t necessarily talk to each other.
“At times, what we would do is have a kind of behind-the-scenes flow where data from one product could be moved into another product,” said Jania, “but in many of those cases the data would then be in both, whereas now the data is in Data Cloud. Tableau will run natively off Data Cloud; Commerce Cloud, Service Cloud, Marketing Cloud — they’re all going to the same operational customer profile.” They’re not copying the data from Data Cloud, Jania confirmed.
Another thing to know is tit’s possible for Salesforce customers to import their own datasets into Data Cloud. “We wanted to create a federated data model,” said Jania. “If you’re using Snowflake, for example, we more or less virtually sit on your data lake. The value we add is that we will look at all your data and help you form these operational customer profiles.”
Let’s learn more about Einstein Copilot
“Copilot means that I have an assistant with me in the tool where I need to be working that contextually knows what I am trying to do and helps me at every step of the process,” Jania said.
For marketers, this might begin with a campaign brief developed with Copilot’s assistance, the identification of an audience based on the brief, and then the development of email or other content. “What’s really cool is the idea of Einstein Studio where our customers will create actions [for Copilot] that we hadn’t even thought about.”
Here’s a key insight (back to nomenclature). We reported on Copilot for markets, Copilot for merchants, Copilot for shoppers. It turns out, however, that there is just one Copilot, Einstein Copilot, and these are use cases. “There’s just one Copilot, we just add these for a little clarity; we’re going to talk about marketing use cases, about shoppers’ use cases. These are actions for the marketing use cases we built out of the box; you can build your own.”
It’s surely going to take a little time for marketers to learn to work easily with Copilot. “There’s always time for adoption,” Jania agreed. “What is directly connected with this is, this is my ninth Connections and this one has the most hands-on training that I’ve seen since 2014 — and a lot of that is getting people using Data Cloud, using these tools rather than just being given a demo.”
What’s new about Einstein Personalization
Salesforce Einstein has been around since 2016 and many of the use cases seem to have involved personalization in various forms. What’s new?
“Einstein Personalization is a real-time decision engine and it’s going to choose next-best-action, next-best-offer. What is new is that it’s a service now that runs natively on top of Data Cloud.” A lot of real-time decision engines need their own set of data that might actually be a subset of data. “Einstein Personalization is going to look holistically at a customer and recommend a next-best-action that could be natively surfaced in Service Cloud, Sales Cloud or Marketing Cloud.”
Finally, trust
One feature of the presentations at Connections was the reassurance that, although public LLMs like ChatGPT could be selected for application to customer data, none of that data would be retained by the LLMs. Is this just a matter of written agreements? No, not just that, said Jania.
“In the Einstein Trust Layer, all of the data, when it connects to an LLM, runs through our gateway. If there was a prompt that had personally identifiable information — a credit card number, an email address — at a mimum, all that is stripped out. The LLMs do not store the output; we store the output for auditing back in Salesforce. Any output that comes back through our gateway is logged in our system; it runs through a toxicity model; and only at the end do we put PII data back into the answer. There are real pieces beyond a handshake that this data is safe.”
-
SEO7 days ago
Early Analysis & User Feedback
-
AFFILIATE MARKETING7 days ago
What Is Founder Mode and Why Is It Better Than Manager Mode?
-
SEARCHENGINES6 days ago
Daily Search Forum Recap: September 6, 2024
-
WORDPRESS7 days ago
John Kostak of Web Dev USA – WordPress.com News
-
SEARCHENGINES5 days ago
Google August Core Update Done, Google Interview, Google Ads & Merchant Center News & The YouTube Algorithm SEO
-
SEO5 days ago
Plot Up To Five Metrics At Once
-
SEO5 days ago
Google’s Guidance About The Recent Ranking Update
-
SEO6 days ago
Top 10 Affiliate Marketing Platforms To Maximize Sales In 2024