Apr 26, 2012

[iMacros Script] imacro download csv from google adwords.

'----------------------------- Start Script  ------------------------------
VERSION BUILD=7401110 RECORDER=FX
TAB T=1

CMDLINE !DATASOURCE Your_Keywords.csv
SET !DATASOURCE_COLUMNS 50
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
URL GOTO=https://adwords.google.com/ << URL GOOGLE ADWORD  ของแต่ละคนจะไม่เหมือนกัน   
TAG POS=1 TYPE=TEXTAREA ATTR=ID:gwt-debug-searchInput-keywordTextbox CONTENT={{!COL1}}
TAG POS=1 TYPE=BUTTON ATTR=ID:gwt-debug-searchPanel-searchButton   
WAIT SECONDS=7
TAG POS=1 TYPE=DIV ATTR=ID:gwt-debug-tableHeader-downloadDropSelection-content   
'New page loaded     
TAG POS=1 TYPE=DIV ATTR=CLASS:[color=red]sFK[/color] EXTRACT=TXT
TAG POS=2 TYPE=DIV ATTR=TXT:All{{!EXTRACT}}  
'New page loaded     
ONDOWNLOAD FOLDER=* FILE=+_{{!NOW:yyyymmdd_hhnnss}} WAIT=YES  
WAIT SECONDS=7
TAG POS=1 TYPE=SPAN ATTR=ID:gwt-debug-downloadPopup-download-button-content
WAIT SECONDS=7
TAG POS=4 TYPE=IMG ATTR=HREF:https://adwords.google.com/o/Targeting/clear.cache.gif

'----------------------------- End Script  --------------------------------

Try to look at it. It must match the color of Google Change. But now I change it.

If it did not also use firebug to view inspect element to download then click the mouse to point to a number of key words with me.

I carried this <div class="sFK"> 650 </ div> I have replaced the red here.

No comments:

Post a Comment

iMacros Script