SlideShare une entreprise Scribd logo
1  sur  59
#SMX #24B @armondhammer
Decoding Code
The Secret Code
of AdWords
Scripts
Steve Hammer
President,
RankHammer
#SMX #24B @armondhammer
Breaking the Code
#SMX #24B @armondhammer
Is this how code feels
#SMX #24B @armondhammer
From Fear to Confidence
#SMX #24B @armondhammer
#SMX #24B @armondhammer
About Me
FAMILY
What it’s all about
FOOD AND
WINE
Eating as an art
form?
HOCKEY
Go Stars
RANKHAMMER
Dallas Based Digital
Marketing Agency
#SMX #24B @armondhammer
What do we do every day?
#SMX #24B @armondhammer
Manage by rules
Exceeds
Goal
CPA
Too
High
Bid
Reduce
by 15%
Action
#SMX #24B @armondhammer
Let’sTranslate
#SMX #24B @armondhammer
#SMX #24B @armondhammer11
Basic Logic
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
Selector Iterator logic
#SMX #24B @armondhammer
Specifying a Script
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
When
• CPA is
higher than
XXX
In
• Target
Campaign
Change
• Bids by -
10%
Unless
• Impression
share is
<50%
#SMX #24B @armondhammer
Code.org/starwars
#SMX #24B @armondhammer
Blockly
https://developers.google.com/blockly/
#SMX #24B @armondhammer
Loops and Conditions
#SMX #24B @armondhammer
http://www.codecademy.com/tracks/javasc
ripthttp://www.w3schools.com/js/default.
asp
http://www.learn-js.org/
Learning a little JavaScript
https://www.khanacademy.org/computing/computer-
programming
#SMX #24B @armondhammer
Make the blocks your own
#SMX #24B @armondhammer
Worst Script Ever
#SMX #24B @armondhammer
Function
#SMX #24B @armondhammer
Comments
#SMX #24B @armondhammer
Statements
#SMX #24B @armondhammer
Logger – Line 2
Bulk Operations >
Logs>
Details>
Logs>
#SMX #24B @armondhammer
Selector – Line 3 - 6
Makes an array of the type
Filtered by conditions
Finished with get();
#SMX #24B @armondhammer
Selector
Conditions are AND
Connect with .
End with ;
#SMX #24B @armondhammer
Selectable?
https://developers.google.com/adwords/scripts/docs/reference/adwordsapp/adwordsapp_adselector
#SMX #24B @armondhammer
Variables
Discreet
• 5.23
• ‘Office’
• 5+3
• ‘Today’ + variable
Arrays
• [4, 5, 7, 9]
• [‘Home’,’Office’,’Hotel’]
Objects
• {name:’Steve’,zip:75204,car:’Subaru’}
• {1:Array1,2:Array2}
#SMX #24B @armondhammer
Selector
Get all keywords
With a CTR greater than 0.01
For all time
#SMX #24B @armondhammer
We Now Have
Selected every
keyword
That has ever
Gotten a click
#SMX #24B @armondhammer
While Next
Sets up the repeating
#SMX #24B @armondhammer
Payload
Calls a method to make a
change
#SMX #24B @armondhammer
Iterator
Find the maximum CPC
Add 1%
Set as new Max CPC
#SMX #24B @armondhammer
Worst Script Ever
#SMX #24B @armondhammer
First Change
#SMX #24B @armondhammer
First Change
#SMX #24B @armondhammer
End Product
#SMX #24B @armondhammer
Change {almost}
anything
#SMX #24B @armondhammer
Next Level
Prewritten Scripts
+
Code Snippets
#SMX #24B @armondhammer
Starting Scripts
http://www.rankhammer.com/blog/2541/i-heard-you-like-adwords-scripts
https://developers.google.com/adwords/scripts/docs/solution/
http://freeadwordsscripts.com
#SMX #24B @armondhammer
Defining a Function
Functions can return values to
feed a variable
Functions can also just be
invoked, even without
parameters
#SMX #24B @armondhammer
Snippets
https://developers.google.com/adwords/scripts/docs/examples/
#SMX #24B @armondhammer
Not exactly ready to use
#SMX #24B @armondhammer
Odd Selector Logic
Values have to become
strings
#SMX #24B @armondhammer
ODD Selector LOGIC
To make it flexible it has to
be:
“Column Operator” +Value
'Name = "' + var + '"'
Odd Selector Logic
#SMX #24B @armondhammer
Tweak The Selector
#SMX #24B @armondhammer45
Organize Protip:
Make aText Document
Store modified function snippets
Copy Paste next time
#SMX #24B @armondhammer
Multiple Functions
#SMX #24B @armondhammer
Look at real needs
#SMX #24B @armondhammer
Good Candidates
DailyActivities
• Scale Changes
• Profit bidding
Bulk Changes
• KW addition
Rapid Movement
• Limited Inventory
• Price Changes
Creative Models
• Correlated Bidding
Ad Copy
Rotation
• Timely Changes
#SMX #24B @armondhammer
Specifying a Script
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
When
• CPA is
higher than
XXX
In
• Target
Campaign
Change
• Bids by -
10%
Unless
• Impression
share is
<50%
#SMX #24B @armondhammer
Franchises – Locations growing
#SMX #24B @armondhammer
Our problem
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
When
• A new
location
launches
In
• New
adgroup
Change
• Add city
name to
base
keywords
Unless
• N/A
#SMX #24B @armondhammer
The goal – another way
Marketing
+marketing
+plano
“marketing
plano”
“plano
marketing”
#SMX #24B @armondhammer
Flesh out the basic idea – all comments
#SMX #24B @armondhammer
Find snippets and modify
#SMX #24B @armondhammer
Flesh out the details
#SMX #24B @armondhammer
Test and Preview
#SMX #24B @armondhammer
I expect you to die try
#SMX #24B @armondhammer
Protip:
CopyTo Editor
Review Changes as “proposed”
Reject to undo
#SMX #24B @armondhammer
LEARN MORE: UPCOMING @SMX EVENTS
THANK YOU!
SEE YOU AT THE NEXT #SMX

Contenu connexe

Plus de Search Marketing Expo - SMX

Plus de Search Marketing Expo - SMX (20)

SMX SlideShare Announcement
SMX SlideShare AnnouncementSMX SlideShare Announcement
SMX SlideShare Announcement
 
SMX East 2018 - #SMXInsights
SMX East 2018 - #SMXInsightsSMX East 2018 - #SMXInsights
SMX East 2018 - #SMXInsights
 
SMX Advanced 2018 - #SMXInsights
SMX Advanced 2018 - #SMXInsights SMX Advanced 2018 - #SMXInsights
SMX Advanced 2018 - #SMXInsights
 
SMX West 2018 #SMXInsights
SMX West 2018 #SMXInsightsSMX West 2018 #SMXInsights
SMX West 2018 #SMXInsights
 
SMX Speaker Guidelines
SMX Speaker GuidelinesSMX Speaker Guidelines
SMX Speaker Guidelines
 
AMP: Do or Die? 2017 Audience Survey Results
AMP: Do or Die? 2017 Audience Survey ResultsAMP: Do or Die? 2017 Audience Survey Results
AMP: Do or Die? 2017 Audience Survey Results
 
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria CorcoranCreate for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
Create for Someone, Not Just Anyone: Adobe's Audience Audit By Maria Corcoran
 
Alexa, How Do I Do SEO For You? By Navneet Virk
Alexa, How Do I Do SEO For You? By Navneet VirkAlexa, How Do I Do SEO For You? By Navneet Virk
Alexa, How Do I Do SEO For You? By Navneet Virk
 
Consumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
Consumer Lead Change: How to Stay Relevant and Build Success By Duane ForresterConsumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
Consumer Lead Change: How to Stay Relevant and Build Success By Duane Forrester
 
Create Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
Create Powerful Custom Automations With AdWords Scripts By Frederick VallaeysCreate Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
Create Powerful Custom Automations With AdWords Scripts By Frederick Vallaeys
 
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch LarsonUsing AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
Using AdWords Scripts to Create Your Own Ad Tech Landscape By Mitch Larson
 
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
Busting Google's Black Box: Navigating Google Algorithms in a Post-Update Wor...
 
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
Solving SEO Issues In Google's Post Update World: How To Track Unconfirmed Al...
 
The Journey To Cross-Device Nirvana By Mike Henderson
The Journey To Cross-Device Nirvana By Mike HendersonThe Journey To Cross-Device Nirvana By Mike Henderson
The Journey To Cross-Device Nirvana By Mike Henderson
 
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
Dating Tips to Maximize the Brand Agency Relationship By Chad Gingrich and Sh...
 
Let's Start Using Event Tracking For More Than Email Clicks By Joe Martinez
Let's Start Using Event Tracking For More Than Email Clicks By Joe MartinezLet's Start Using Event Tracking For More Than Email Clicks By Joe Martinez
Let's Start Using Event Tracking For More Than Email Clicks By Joe Martinez
 
Using Paid Search & Social Together To Deliver The Ultimate Knock-Out Punch B...
Using Paid Search & Social Together To Deliver The Ultimate Knock-Out Punch B...Using Paid Search & Social Together To Deliver The Ultimate Knock-Out Punch B...
Using Paid Search & Social Together To Deliver The Ultimate Knock-Out Punch B...
 
Paid Search Fundamentals By Matt Van Wagner
Paid Search Fundamentals By Matt Van WagnerPaid Search Fundamentals By Matt Van Wagner
Paid Search Fundamentals By Matt Van Wagner
 
Dynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David SzetelaDynamic Remarketing for the Google Display Network By David Szetela
Dynamic Remarketing for the Google Display Network By David Szetela
 
Brick & Mortar's Secret Weapon: Search Data By Andrew Ruegger
Brick & Mortar's Secret Weapon: Search Data By Andrew RueggerBrick & Mortar's Secret Weapon: Search Data By Andrew Ruegger
Brick & Mortar's Secret Weapon: Search Data By Andrew Ruegger
 

Dernier

4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
Cara Menggugurkan Kandungan 087776558899
 
Mastering Affiliate Marketing: A Comprehensive Guide to Success
Mastering Affiliate Marketing: A Comprehensive Guide to SuccessMastering Affiliate Marketing: A Comprehensive Guide to Success
Mastering Affiliate Marketing: A Comprehensive Guide to Success
Abdulsamad Lukman
 

Dernier (20)

SP Search Term Data Optimization Template.pdf
SP Search Term Data Optimization Template.pdfSP Search Term Data Optimization Template.pdf
SP Search Term Data Optimization Template.pdf
 
Crypto Quantum Leap - Digital - membership area
Crypto Quantum Leap -  Digital - membership areaCrypto Quantum Leap -  Digital - membership area
Crypto Quantum Leap - Digital - membership area
 
The Impact Of Social Media Advertising.pdf
The Impact Of Social Media Advertising.pdfThe Impact Of Social Media Advertising.pdf
The Impact Of Social Media Advertising.pdf
 
4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
4 TRIK CARA MENGGUGURKAN JANIN ATAU ABORSI KANDUNGAN
 
Alpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptxAlpha Media March 2024 Buyers Guide.pptx
Alpha Media March 2024 Buyers Guide.pptx
 
How consumers use technology and the impacts on their lives
How consumers use technology and the impacts on their livesHow consumers use technology and the impacts on their lives
How consumers use technology and the impacts on their lives
 
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdfMicro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
Micro-Choices, Max Impact Personalizing Your Journey, One Moment at a Time.pdf
 
2024 Social Trends Report V4 from Later.com
2024 Social Trends Report V4 from Later.com2024 Social Trends Report V4 from Later.com
2024 Social Trends Report V4 from Later.com
 
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night ServiceVIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
VIP Call Girls Dongri WhatsApp +91-9833363713, Full Night Service
 
Resumé Karina Perez | Digital Strategist
Resumé Karina Perez | Digital StrategistResumé Karina Perez | Digital Strategist
Resumé Karina Perez | Digital Strategist
 
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
10 Email Marketing Best Practices to Increase Engagements, CTR, And ROI
 
SALES-PITCH-an-introduction-to-sales.pptx
SALES-PITCH-an-introduction-to-sales.pptxSALES-PITCH-an-introduction-to-sales.pptx
SALES-PITCH-an-introduction-to-sales.pptx
 
HOW TO HANDLE SALES OBJECTIONS | SELLING AND NEGOTIATION
HOW TO HANDLE SALES OBJECTIONS | SELLING AND NEGOTIATIONHOW TO HANDLE SALES OBJECTIONS | SELLING AND NEGOTIATION
HOW TO HANDLE SALES OBJECTIONS | SELLING AND NEGOTIATION
 
Mastering Affiliate Marketing: A Comprehensive Guide to Success
Mastering Affiliate Marketing: A Comprehensive Guide to SuccessMastering Affiliate Marketing: A Comprehensive Guide to Success
Mastering Affiliate Marketing: A Comprehensive Guide to Success
 
The 9th May Incident in Pakistan A Turning Point in History.pptx
The 9th May Incident in Pakistan A Turning Point in History.pptxThe 9th May Incident in Pakistan A Turning Point in History.pptx
The 9th May Incident in Pakistan A Turning Point in History.pptx
 
Aligarh Hire 💕 8250092165 Young and Hot Call Girls Service Agency Escorts
Aligarh Hire 💕 8250092165 Young and Hot Call Girls Service Agency EscortsAligarh Hire 💕 8250092165 Young and Hot Call Girls Service Agency Escorts
Aligarh Hire 💕 8250092165 Young and Hot Call Girls Service Agency Escorts
 
Distribution Ad Platform_ The Role of Distribution Ad Network.pdf
Distribution Ad Platform_ The Role of  Distribution Ad Network.pdfDistribution Ad Platform_ The Role of  Distribution Ad Network.pdf
Distribution Ad Platform_ The Role of Distribution Ad Network.pdf
 
Social Media Marketing Portfolio - Maharsh Benday
Social Media Marketing Portfolio - Maharsh BendaySocial Media Marketing Portfolio - Maharsh Benday
Social Media Marketing Portfolio - Maharsh Benday
 
Cartona.pptx. Marketing how to present your project very well , discussed a...
Cartona.pptx.   Marketing how to present your project very well , discussed a...Cartona.pptx.   Marketing how to present your project very well , discussed a...
Cartona.pptx. Marketing how to present your project very well , discussed a...
 
Aiizennxqc Digital Marketing | SEO & SMM
Aiizennxqc Digital Marketing | SEO & SMMAiizennxqc Digital Marketing | SEO & SMM
Aiizennxqc Digital Marketing | SEO & SMM
 

The Secret Codes of AdWords Scripts By Steven Hammer