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

Adwords Scripts Final URL

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello.

 

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()

  .get();
while (keywords.hasNext()){
 var keywords = keywords.next();
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.

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Inigo C
February

Adwords Scripts Final URL

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

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

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Inigo C
February

Adwords Scripts Final URL

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

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