jitsucom / jitsu

Jitsu is an open-source Segment alternative. Fully-scriptable data ingestion engine for modern data teams. Set-up a real-time data pipeline in minutes, not days
https://jitsu.com
MIT License
4.11k stars 292 forks source link

Google Ads OAuth fails with "general: 'developer token' is required. (#400)" #834

Closed fdaugs closed 2 years ago

fdaugs commented 2 years ago

Environment

Description

Connecting the Google Ads source with OAuth Credentials (refresh token optained vie cli) fails with: general: 'developer token' is required. (#400)

Steps to reproduce

Add Google Ads source with OAuth Credentials

absorbb commented 2 years ago

Hi @fdaugs Google Ads requires to obtain developer token for each app to have access to Google Ads API: https://developers.google.com/google-ads/api/docs/first-call/dev-token Once obtained you need to add it to server's config file eventnative.yaml

google_ads:
  developer_token: Abc123

Its is our oversight that information about developer_token is not mentioned in UI and documention - we are going to fix that. Thank you for making this ticket.

If it is not possible to obtain Google Ads developer token i suggest using cloud version of jitsu cloud.jitsu.com

fdaugs commented 2 years ago

Hi @absorbb,

thanks for your quick response! I think it should be possible for me to obtain the developer token. As of now I use the UI to configure my sources and not the eventnative.yaml. Editing this file would require me to either mount this file to the docker container and manage it on the host system or building my own docker image. I would like to avoid both.

I think a good option would be to expose this setting in the UI, like its done in the Google Adwords source, and/or include the "Google Ads" Airbyte connector.

absorbb commented 2 years ago

I think a good option would be to expose this setting in the UI, like its done in the Google Adwords source, and/or include the "Google Ads" Airbyte connector. We will do that as part of this ticket.

You can also add environment variable to your docker run command, to avoid editing eventnative.yaml: -e GOOGLE_ADS_DEVELOPER_TOKEN=Abc123

fdaugs commented 2 years ago

Ah awesome! That solves the problem! Thank you!