This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BitmapHelper { | |
class DownloadImageFromURL extends AsyncTask<String, String, Bitmap> { | |
private final WeakReference<ImageView> imageViewReference; | |
String mUrl; | |
private int mWidth = 0; | |
private int mHeigth = 0; | |
private boolean isThumbnail = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "blogger#postList", | |
"nextPageToken": "CgkIChiAkceVjiYQ0b2SAQ", | |
"prevPageToken": "CgkIChDBwrK3mCYQ0b2SAQ", | |
"items": [ | |
{ | |
"kind": "blogger#post", | |
"id": "7706273476706534553", | |
"blog": { | |
"id": "2399953" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LABEL = "Your_label"; | |
function main () { | |
var accountIterator = MccApp.accounts() | |
.withCondition("LabelNames CONTAINS '" + LABEL + "'") | |
.get(); | |
Logger.log("Total Number of accounts under label (via totalNumEntities): " | |
+ accountIterator.totalNumEntities()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var workingDateRange = "LAST_14_DAYS"; | |
function main() { | |
lowerBidsToTopKeywords(); | |
raiseBidsToMidPositionKeywords(); | |
raiseBidsToLowPositionKeywords(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// EMAIL FIELDS | |
var _mailto = 'YOUR_EMAIL'; | |
var _subject = 'Account Review Needed - '; | |
var _htmlBody = '<h1>Account Review Required</h1>'; | |
var _isEmailRequired = false; | |
//PARAMETERS CHECKED | |
var _impressionsTreshold = 100; | |
var _clickTreshold = 10; | |
var _conversionTreshold = 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Edit this based on the max amount you want to spend on a given day. | |
var maxSpend = 1000; | |
function main () { | |
var currentAccount = AdWordsApp.currentAccount(); | |
var stats = currentAccount.getStatsFor("TODAY"); | |
var cost = stats.getCost(); | |
Logger.log("Account has spent " + cost + " so far."); | |
if (cost > maxSpend) { | |
campaign.pause(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Comma-separated list of recipients. Comment out to not send any emails. | |
var RECIPIENT_EMAIL = 'YOUR_EMAIL'; | |
// URL of the default spreadsheet template. This should be a copy of http://goo.gl/pxaZio | |
var SPREADSHEET_URL = 'SPREADSHEET_URL'; | |
/** | |
* This script computes an Ad performance report | |
* and outputs it to a Google spreadsheet | |
*/ |