Google Ads
Google Ads is a wrapper that allows you to use the Google Ads API
Official Websitehttps://developers.google.com/google-ads/api/docs/start
TagsAdsSaas
- JavaScript
- Python
Documentationhttps://github.com/Opteo/google-ads-api
NodeJS packagehttps://www.npmjs.com/package/google-ads-api
Version14.2.0
Source Codehttps://github.com/Opteo/google-ads-api
Pypi packagehttps://pypi.org/project/google-ads/
Version23.0.0
Credential configuration
To configure this credential you need to check each version (JavaScript or Python) initializacion options, providing the needed parameters in a JSON format.
Google Ads Snippets available in Editor
note
The title is the triggering text for YepCode to autocomplete the script.
- JavaScript
- Python
Integration
New integration from credential
const googleAdsClient = await yepcode.integration.googleAds("credential-slug");
New integration from plain authentication data
const { GoogleAdsApi } = require("google-ads-api");
const googleAdsClient = new GoogleAdsApi({
client_id: "<CLIENT-ID>",
client_secret: "<CLIENT-SECRET>",
developer_token: "<DEVELOPER-TOKEN>",
});
Integration
New integration from credential
google_ads = yepcode.integration.googleAds("credential-slug")
New integration from plain authentication data
from google.ads.googleads.client import GoogleAdsClient
credentials = {
"developer_token": "abcdef123456",
"refresh_token": "1//0abcdefghijklABCDEF",
"client_id": "123456-abcdef.apps.googleusercontent.com",
"client_secret": "aBcDeFgHiJkL"}
google_ads = GoogleAdsClient.load_from_dict(credentials)