6.8K members online now
6.8K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me

Adwords Scripts Final URL

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭



I am traying to start scripting in adwords.

For my first script I just want to print on the log the final URL of my keywords.
Problem is, I have no idea how to get the data. I have seen a mothod called "getFinalUrl()" And I understand that is what I need to use, but I still don't know how.


Right now my code looks like this: 

function main () {

 var keywords = AdWordsApp.keywords()

while (keywords.hasNext()){
 var keywords =;
Logger.log(keywords.getText() + ": " + keyword.getFinalURL);

But I am getting as a result:

keyword1: undefined


Please, help me get started with this, I would apreciate it a lot.


Marked as Best Answer.
Accepted by topic author Inigo C

Adwords Scripts Final URL

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

I did manage to do this, thank you anyway
Smiley Happy