AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Data Studio
6K members online now
6K members online now
Ask questions about Data Studio
Guide Me
star_border
Reply

Convert an IP address to a Country Code

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have a data source with an IP address field. Is it possible to extract the country code from the IP address in a calculated field?

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Bernard R
June 2017

Convert an IP address to a Country Code

Participant ✭ ☆ ☆
# 2
Participant ✭ ☆ ☆

I don't think anything natively in datastudio will let you do this.  I suggest you download your own lookup table and add the country code directly to your datasource.

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Bernard R
June 2017

Convert an IP address to a Country Code

Participant ✭ ☆ ☆
# 2
Participant ✭ ☆ ☆

I don't think anything natively in datastudio will let you do this.  I suggest you download your own lookup table and add the country code directly to your datasource.