Skip to content

Instantly share code, notes, and snippets.

View royharmon4's full-sized avatar

Roy Harmon royharmon4

  • South Carolina
View GitHub Profile
@royharmon4
royharmon4 / gist:560ebaab757b1b3e20bf48e192119ee4
Created October 27, 2016 15:14
Pulling AdWords impression share data into an AdWords script
// This will pull impression share data into a script for you to use:
function main() {
var accountIterator = MccApp.accounts().get();
var mccAccount = AdWordsApp.currentAccount();
while (accountIterator.hasNext()) {
var account = accountIterator.next();
MccApp.select(account);
var accountName = account.getName();
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,800");
body,
html {
height: 100%;
font-family: "Open Sans", sans-serif;
font-weight: 400;
color: #111;
}
h1 {
import os
import sys
import urllib
import urllib2
import cookielib
import urlparse
import hashlib
import hmac
import base64
import json
import os
import sys
import urllib
import urllib2
import cookielib
import urlparse
import hashlib
import hmac
import base64
import json
import os
import sys
import urllib
import hashlib
import hmac
import base64
import json
import random
import requests
// Replace these with your own LinkedIn App's Client ID and Client Secret
const CLIENT_ID = '{INSERT CLIENT ID}';
const CLIENT_SECRET = '{INSERT CLIENT SECRET}';
// Replace this with your Google Sheet ID
const SPREADSHEET_ID = '{INSERT SPREADSHEET ID}';
// OAuth2 library
const LinkedInOAuth2 = OAuth2;