Skip to content

Instantly share code, notes, and snippets.

@davedavis
Created January 27, 2020 20:13
Show Gist options
  • Save davedavis/f62e3273f6876847cdb97b8e9b097339 to your computer and use it in GitHub Desktop.
Save davedavis/f62e3273f6876847cdb97b8e9b097339 to your computer and use it in GitHub Desktop.
Install Google Ads Editor on Ubuntu (2020)
// Download from : https://dl.google.com/adwords_editor/google_ads_editor.msi
// Set up wine 5: https://gist.github.com/davedavis/afd22fe0eb0e3035cececfcc4a6a77af
// Then in the same directory as the downloaded file, run wine as:
wine msiexec /i ./google_adwords_editor.msi
@itiulkanov
Copy link

AdWords Editor has been installed ok, but there is no way to sign in after :)

@epertinez
Copy link

epertinez commented Jan 4, 2022

For what I've seen the problem is that the program totally hangs when trying to open an url.

If you open it from command line...
env WINEPREFIX="/home/USER NAME/.wine" wine C:\users\USER NAME\Start\ Menu\Programs\Google\ Ads\ Editor\Google\ Ads\ Editor.lnk

You'll see that when calling to "autorize using a browser" it tries to open an url...
01-04 14:11:13 [Mem: 391MB][Tid: 2824] "(editorapplication.cc:2544:EditorApplication::OpenUrl())" Open url QUrl("https://accounts.google.com/o/oauth2/v2/auth?client_id=XXXXXXXXXXXX-XXXXXXXXXXXXX.apps.googleusercontent.com&response_type=code&redirect_u
ri=http://127.0.0.1:45877/index.htm&code_challenge_method=S256&code_challenge=XXXXXX-XXXXX&scope=https://www.googleapis.com/auth/adwords+email&hl=ca")

See that the call includes a localhost port that is opened so the process can send some kind of signature to the app with authorization credentials.
...response_type=code&redirect_uri=http://127.0.0.1:45877/index.htm...

The port gets opened, because if you try to wget it (wget -O - 'http://127.0.0.1:45877/index.htm') wget keeps waiting for a reply, why when you try it for any other port, wget immediatily dies telling that no port is opened.

You can copy the url inside QUrl("") in a browser and the browser seems to keep going untill it has to connect to http://127.0.0.1:45877/index.htm to save the credentials.

So the only thing we need is that this QUrl call do not hang the app.

Couldn't find any way to solve it.

What I do know is that If I try to open up any other innocent url from the help menu, it also hangs the app. So, the problem is not that authorization process is too complicated, but that QUrl call halts all processing on the app.

If someone finds a way to overcome this hanging problem, we should be able to login simply copying the url from cmd log and pasting it to a linux browser.

@karoka13
Copy link

I've been having the same login issue for a while. If someone finds a solution please help!! :)

@outerlook
Copy link

Wine 7.0 + Google Ads 2.0 works as I tried. Just opt to login on the same app and not on browser

@epertinez
Copy link

epertinez commented Mar 28, 2022 via email

@davedavis
Copy link
Author

Thanks for the comments guys.

Would there be any interest in a repo/app/script for an automated installer?

Would you be comfortable with something like that? (assuming open source of course)

@epertinez
Copy link

epertinez commented Mar 28, 2022 via email

@outerlook
Copy link

Yes, there is no modifications at all, just using these versions (or maybe later, above it) will work

@karoka13
Copy link

It works for me too with wine 7.5

@davedavis
Copy link
Author

I'd actually recommend spending the money in crossover now. Editor works great in it.

@diegobda
Copy link

2024 this okay???

@davedavis
Copy link
Author

@diegobda I use crossover now. So haven't tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment