Connect with Google Ads API

Hi, I want to use the Google Ads API to provide info to my clients about their Google Ads accounts.

I’ve seen Anvil offers integration with REST APIs, but I’m not a programmer and I’m not sure of the exact options that Anvil’s platform will give me.

A few questions if you don’t mind:

  1. Is it possible to integrate Anvil with their REST API, so I can display data from Google Ads API on your pages/reports? More info: Search & SearchStream  |  Google Ads API  |  Google Developers

  2. Is it possible to use all the features of their REST API? (not just get info for reports, but also make changes to a Google Ads account when the user clicks on certain links/buttons) More info: Mutate  |  Google Ads API  |  Google Developers

  3. Is it possible to integrate the Google Ads Oauth system with Anvil, so my clients can log in/register directly and see their Google Ads data? Or I would have to log in with my Manager/developer account, create the reports for them and then send them the user/password info?

Thanks!

I don’t know anything about the google ad api, but I did notice that Anvil have the following python library available :

which might be of some help. Here’s a full list of all currently installed packages, and they are open to installing others on demand :

Thanks, but that doesn’t help a lot. That is an old library (the new one is https://github.com/googleads/google-ads-python/). But anyway, my question is about which API features can I use while using Anvil, not about installing the package (which should be the easiest part).

Maybe I should contact the Anvil team directly? Is there a way to do this?

Your question is not really specific to this platform. Anvil can get any python package installed for you. And once you manage to get the data you want from the package, you can pass it to the client-side. This is as far as their support goes.

This forum is not exactly focused on python language so figuring out how to use a third-party library is something you will have to ask elsewhere.

Yes, you can use any REST API. The instructions on how to do that are in the docs:

Yes.

I haven’t tried it, but the google-auth-oauthlib is available already on the anvil server.