Skip to content

Instantly share code, notes, and snippets.

View amarczew's full-sized avatar
💭
I may be slow to respond.

Alison Marczewski amarczew

💭
I may be slow to respond.
  • Belo Horizonte - MG, Brazil
View GitHub Profile
@amarczew
amarczew / AdwordsScript.js
Last active February 23, 2024 01:33 — forked from caseypage/AdwordsScript.js
This will automate setting custom parameters for your adwords tracking template at the campaign and adgroup level.
// Sample Tracking Template
// {lpurl}?utm_medium=adwords&utm_campaign={_campaign}&utm_source={_adgroup}&utm_term={keyword}
// This script will set custom parameters {_campaign} and {_adgroup} at the campaign and creative level respectively.
function main() {
///// Update Campaigns
// get all campaigns
var campaignSelector = AdsApp
.campaigns()