<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tGoogleAnalyticsInput 401 Unauthorized in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331158#M100167</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;From the error message, it seems you have an issue with OAuth 2.0.&lt;/P&gt;
&lt;P&gt;Could you please have a look at this article:&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis &lt;/A&gt;to see if it is OK with you?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2017 10:22:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-15T10:22:27Z</dc:date>
    <item>
      <title>tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331157#M100166</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a job where i need to pull the data from Google Analytics&amp;nbsp;&lt;SPAN&gt;.I had already register the Service account and downloaded the .p12 key File.While running the job i am facing the error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tarting job filefetch at 13:05 15/11/2017.&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3509&lt;BR /&gt;[statistics] connected&lt;BR /&gt;WARN:Got error:401 Unauthorized&lt;BR /&gt;ERROR&lt;BR /&gt;top processing because of this error does not allow a retry.&lt;BR /&gt;Exception in component tGoogleAnalyticsInput_1&lt;BR /&gt;com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized&lt;BR /&gt;at com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)&lt;BR /&gt;at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)&lt;BR /&gt;at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)&lt;BR /&gt;at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384)&lt;BR /&gt;at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)&lt;BR /&gt;at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)&lt;BR /&gt;at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)&lt;BR /&gt;at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)&lt;BR /&gt;at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)&lt;BR /&gt;[statistics] disconnected&lt;BR /&gt;at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)&lt;BR /&gt;at de.jlo.talendcomp.google.analytics.v3.GoogleAnalyticsInput.doExecute(GoogleAnalyticsInput.java:334)&lt;BR /&gt;at de.jlo.talendcomp.google.analytics.v3.GoogleAnalyticsInput.executeDataQuery(GoogleAnalyticsInput.java:267)&lt;BR /&gt;at de.jlo.talendcomp.google.analytics.v3.GoogleAnalyticsInput.executeQuery(GoogleAnalyticsInput.java:318)&lt;BR /&gt;at local_project.filefetch_0_1.filefetch.tGoogleAnalyticsInput_1Process(filefetch.java:629)&lt;BR /&gt;at local_project.filefetch_0_1.filefetch.tSetProxy_1Process(filefetch.java:385)&lt;BR /&gt;at local_project.filefetch_0_1.filefetch.runJobInTOS(filefetch.java:1026)&lt;BR /&gt;at local_project.filefetch_0_1.filefetch.main(filefetch.java:883)&lt;BR /&gt;Job filefetch ended at 13:05 15/11/2017. [exit code=1].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let me know the root cause of it. An early response is highly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 08:55:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331157#M100166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T08:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331158#M100167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;From the error message, it seems you have an issue with OAuth 2.0.&lt;/P&gt;
&lt;P&gt;Could you please have a look at this article:&lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis &lt;/A&gt;to see if it is OK with you?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 10:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331158#M100167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-15T10:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331159#M100168</link>
      <description>Hello Sabrina,&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.The error got resolved.I have gone through the URL provided and it is very helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Rohit</description>
      <pubDate>Thu, 16 Nov 2017 11:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331159#M100168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-16T11:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331160#M100169</link>
      <description>&lt;P&gt;Hello Rohit ,&lt;/P&gt;
&lt;P&gt;Thanks for your feedback. Feel free to post your issue on forum.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 02:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331160#M100169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T02:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331161#M100170</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also facing the same issue(Got error:401 Unauthorized) with tGoogleAnalyticsInput component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've followed the link which you have provided but tGoogleAnalyticsInput component has not been used there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More appreciated if you give any suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Naageshwar&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 14:18:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331161#M100170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-21T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331162#M100171</link>
      <description>&lt;P&gt;Could anyone help with this issue? As I am also facing it when trying to connect using a service account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The page &lt;A href="https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis" target="_self" rel="nofollow noopener noreferrer noopener noreferrer"&gt;&lt;FONT color="#0066cc"&gt;https://www.rilhia.com/tutorials/using-oauth-20-talend-access-google-apis&amp;nbsp;,&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; that is referred to in the solution is not working anymore.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331162#M100171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-26T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: tGoogleAnalyticsInput 401 Unauthorized</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331163#M100172</link>
      <description>&lt;P&gt;I finally managed to tackle it.&lt;/P&gt; 
&lt;P&gt;Why did not I try this earlier &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;On console.developers.google.com you need to have 2 account.&lt;/P&gt; 
&lt;P&gt;The normal user/google account, which you use to login to console.developers.google.com&lt;/P&gt; 
&lt;P&gt;and a separate service account user. That I had both.&lt;/P&gt; 
&lt;P&gt;See screenshot : Capture Users&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Separately when you want to use the service account, the service account itself needs to have access to the view that you wish to read.&lt;/P&gt; 
&lt;P&gt;And this was what we had wrong&amp;nbsp;.&lt;/P&gt; 
&lt;P&gt;We&amp;nbsp;only added the normal user/google account with Read privileges to that view, and 'forgot' to add the service account user &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;Check via :&amp;nbsp;&lt;A href="https://analytics.google.com&amp;nbsp;&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://analytics.google.com&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;There check (or add) the&amp;nbsp;service account-user&amp;nbsp;(so the &amp;lt;username&amp;gt;@&amp;gt;projectname&amp;gt;-&amp;lt;uniquenr&amp;gt;.iam.gserviceaccount.com) to the view you which to read.&lt;/P&gt; 
&lt;P&gt;So stupid &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsmV"&gt;Capture_USERS.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 03 Jul 2018 12:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tGoogleAnalyticsInput-401-Unauthorized/m-p/2331163#M100172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-03T12:46:06Z</dc:date>
    </item>
  </channel>
</rss>

