Ask Your Question

OAuth 2.0 with Google AdWords

asked 2018-10-01 04:29:26 -0500

Alexander gravatar image

updated 2018-10-02 02:22:33 -0500


I have been trying to connect StreamSets with Google AdWords and I am encountering some issues regarding the OAuth 2.0 Authentication. I have found a workaround, using the manual authorization tokens. In that case, I put the Authorization:Bearer token in the request header.

If I want to use OAuth2.0 however, it should refresh the tokens automatically this is what I want to implement. My request body looks as the following:

<soapenv:Envelope xmlns:soapenv="" xmlns:v20="">
            <!--Zero or more repetitions:-->
            <!--Zero or more repetitions:-->
               <!--Zero or more repetitions:-->
            <!--Zero or more repetitions:-->

For a screenshot of my OAuth2 settings:

image description

Does anyone know how to resolve this issue? I have no validation errors, but no records come out of the pipelines while it is running.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-05 04:39:27 -0500

Alexander gravatar image

In the end, I could not get the OAuth2.0 feature working, but meanwhile found a workaround for it. For Google OAuth2.0, it is also possible to generate a refresh_token, which is re-usable to generate a temporary access token which is valid for 60 minutes.

I put a shell executor in another pipeline, which executes a curl command to put the token somewhere on the server. It is put in the 'apps/ss/ss-dc/resources' folder so in that case the server doesn't need to be restarted to fetch the newest value of the access token:

image description

At last, in the original pipeline where we are calling the AdWords API, we refer to the location where the access token is located. The access token is automatically updating every 50 minutes.

image description

edit flag offensive delete link more


Hi, Thanks for the detail solution for OAuth2.0, can you share the original pipeline where the AdWords API is called? Regards, Mohan

Vamsi gravatar imageVamsi ( 2019-03-24 22:08:18 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-10-01 04:29:26 -0500

Seen: 192 times

Last updated: Oct 05 '18