-
-
Save davedavis/f62e3273f6876847cdb97b8e9b097339 to your computer and use it in GitHub Desktop.
// 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 |
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.
I've been having the same login issue for a while. If someone finds a solution please help!! :)
Wine 7.0 + Google Ads 2.0 works as I tried. Just opt to login on the same app and not on browser
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)
Yes, there is no modifications at all, just using these versions (or maybe later, above it) will work
It works for me too with wine 7.5
I'd actually recommend spending the money in crossover now. Editor works great in it.
2024 this okay???
@diegobda I use crossover now. So haven't tried.
what is crossover? Any one using Google ads editor on Linux Ubuntu 24.04 LTs??
Crossover is the "comercial" version of Wine Hq. Wine is a translation layer that makes MS Windows Apps think they are running in windows when in fact they are running on Linux.
Wine HQ is a huge enterprise. Recreating all kind of different libraries and functions that work in windows is not easy task. So main contributors of Wine released WineHQ open source, but released also Crossover, a tweaked() version of WineHQ specially prepared to install and run MS Office and other demanding apps.
Nowadays WineHQ makes most apps work without needing to use crossover, but Google Ads Editor is not in the list. Yet it works with Crossover. Crossover has an annual fee, but given the fact that they are the main force that stated WineHQ, it might be a good thing to pay the fee.
() I might be wrong, but as long as I know, most of the tweaks are not about new Wine code but Installation process. Most windows libraries of functions do not work directly with HW/Kernel but call other more fundamental functions that reside in other libraries. Even when all those libraries are replicated, they exist lots of edge cases that make the system not work. In some cases, you can choose to run the WineHQ version of the library OR the MS Windows version of that same library. Carefully choosing which libraries to call in each case can make an App work.
AdWords Editor has been installed ok, but there is no way to sign in after :)