Upload
steve-hammer
View
579
Download
3
Embed Size (px)
Citation preview
@armondhammer #heroconfwww.rankhammer.com
PAGE
SCRIPTS
M C C a n d F e e d s
S t e v e H a m m e r
P r e s i d e n t , R a n k H a m m e r
@armondhammer #heroconfwww.rankhammer.com
PAGE
Scripts
Preach about POWER
@armondhammer #heroconfwww.rankhammer.com
PAGE 3
The Brain of Scripts
Time Savings
Error Checking
Experiments
Scale
Dynamic Response
Reporting
@armondhammer #heroconfwww.rankhammer.com
PAGE 4
Most often – Feeds are the best
@armondhammer #heroconfwww.rankhammer.com
PAGE 5
Most often – We don’t detail feeds
@armondhammer #heroconfwww.rankhammer.com
PAGE 6
Obligatory about me
FAMILYWhat it’s all about
FOOD AND WINE
Eating as an art form?
HOCKEYGo Stars
RANKHAMMERDallas Based Internet Marketing Agency
@armondhammer #heroconfwww.rankhammer.com
PAGE 7
True Story - Why MCC
@armondhammer #heroconfwww.rankhammer.com
PAGE 8
Built custom scripts – Way over did it
@armondhammer #heroconfwww.rankhammer.com
PAGE 9
3 months later – zero invoices paid
@armondhammer #heroconfwww.rankhammer.com
PAGE 10
4th month – account disconnected
@armondhammer #heroconfwww.rankhammer.com
PAGE 11
Other reasons to MCC script
@armondhammer #heroconfwww.rankhammer.com
PAGE 12
Other reasons to MCC script
@armondhammer #heroconfwww.rankhammer.com
PAGE 13
An MCC script challenge
@armondhammer #heroconfwww.rankhammer.com
PAGE 14
Quick Refresher
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
Selector Iterator logic
@armondhammer #heroconfwww.rankhammer.com
PAGE 15
Converting a Script
When
• Conditions
In
• Item Scope
When
• Conditions
In
• Item Scope
Change
• Operation
Unless
• Limits
Account Selector
Original Logic
@armondhammer #heroconfwww.rankhammer.com
PAGE 16
Starting Script
A defined method
Selector
Iterator
} End
Begin {
@armondhammer #heroconfwww.rankhammer.com
PAGE 17
Selecting
@armondhammer #heroconfwww.rankhammer.com
PAGE 18
Selecting
@armondhammer #heroconfwww.rankhammer.com
PAGE 19
Putting together
@armondhammer #heroconfwww.rankhammer.com
PAGE 20
Warning
@armondhammer #heroconfwww.rankhammer.com
PAGE 21
One Account First
Backup to Editor
Restore for “undo”
@armondhammer #heroconfwww.rankhammer.com
PAGE 22
Lots of accounts - Parallel
executeInParallel replaces mccApp.select Now calls a function, not inline code
https://developers.google.com/adwords/scripts/docs/examples/mcc-scripts#update-multiple-accounts-in-parallel
@armondhammer #heroconfwww.rankhammer.com
PAGE 23
More than 50?
https://developers.google.com/adwords/scripts/docs/solutions/mccapp-manager-template
@armondhammer #heroconfwww.rankhammer.com
PAGE 24
Bonus to Large Manager Account Template
@armondhammer #heroconfwww.rankhammer.com
PAGE 25
Feeds
@armondhammer #heroconfwww.rankhammer.com
PAGE 26
Semi-true story: Feeds
@armondhammer #heroconfwww.rankhammer.com
PAGE 27
Private - authenticated
@armondhammer #heroconfwww.rankhammer.com
PAGE 28
Meat of the Weather Script
@armondhammer #heroconfwww.rankhammer.com
PAGE 29
UrlFetchApp – header authentication
@armondhammer #heroconfwww.rankhammer.com
PAGE 30
UrlFetchApp – Other Validations
https://github.com/googlesamples/apps-script-oauth2
Required deprecated secure data connector
@armondhammer #heroconfwww.rankhammer.com
PAGE 31
Jason
@armondhammer #heroconfwww.rankhammer.com
PAGE 32
JSON
@armondhammer #heroconfwww.rankhammer.com
PAGE 33
Key Performance Tip
@armondhammer #heroconfwww.rankhammer.com
PAGE 34
Looping the feed
@armondhammer #heroconfwww.rankhammer.com
PAGE 35
Using the data
Whole Data set with index
Specific Element “validUntil” Single Record
@armondhammer #heroconfwww.rankhammer.com
PAGE 36
Feed Structure
@armondhammer #heroconfwww.rankhammer.com
PAGE 37
Debugging Tips
@armondhammer #heroconfwww.rankhammer.com
PAGE 38
Bonus
@armondhammer #heroconfwww.rankhammer.com
PAGE 39
Code – It’s logic
@armondhammer #heroconfwww.rankhammer.com
PAGE 40
JavaScript Lessons
http://www.codecademy.com/tracks/javascript
http://www.w3schools.com/js/default.asp
http://www.learn-js.org/
https://www.khanacademy.org/computing/computer-programming
@armondhammer #heroconfwww.rankhammer.com
PAGE 41
Scripting Presentations
https://events.withgoogle.com/adwords-scripts-workshops-2016/
@armondhammer #heroconfwww.rankhammer.com
PAGE 42
90+ Free Scripts
https://www.rankhammer.com/blog/2541/i-heard-you-like-adwords-scripts
@armondhammer #heroconfwww.rankhammer.com
PAGE 43
Connect With Us
WE ARE HERE SOCIAL NETWORKS
Rank HammerDowntown Dallas TX214-720-0044
LOCATED
QUESTIONS
WEBSITE
@armondhammer@rankhammer
rankhammer.com
linkedin.com/a/armondhammer