Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
User Guide
2013 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means
(electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. All other company and
product names may be trade names or trademarks of their respective owners and/or copyrighted materials of such
owners.
Abstract
Google API user guide provides a brief introduction on cloud connectors and its features.
The guide provides detailed information on setting up the connector and running data
synchronization tasks (DSS). A brief overview of supported features and task operations that can
be performed using Google API connector is mentioned.
Table of Contents
Overview .......................................................................................................................................... 3
Google API Connector ..................................................................................................................... 3
Enabling Google API Connector...................................................................................................... 3
APIs supported by the connector.................................................................................................... 4
Creating a Google API Connection ................................................................................................. 6
Creating Google API Data Synchronization Task ........................................................................... 8
Data Filters .................................................................................................................................... 11
Understanding Config.CSV file ...................................................................................................... 12
Reference Screenshots ................................................................................................................. 13
Google Developers Console: Obtaining Client ID and Secret ................................................... 13
Config.csv file containing URL request Parameters .................................................................. 13
Few common APIs list to obtain IDs .............................................................................................. 14
Creating a connection for Linux Agent .......................................................................................... 14
Config Prop file Screenshot ....................................................................................................... 17
Troubleshooting ............................................................................................................................. 18
Increasing Secure Agent Memory.............................................................................................. 18
Additional Guidelines ................................................................................................................. 19
Overview
Informatica cloud connector SDKs are off-cycle, off release add-ins that provide data integration
to SaaS and on-premise applications, which are not supported natively by Informatica cloud. The
cloud connectors are specifically designed to address most common use cases such as moving
data into cloud and retrieving data from cloud for each individual application.
Connection Property
Connection Name
Description
Type
Secure Agent
Google API
Select the Google API you wish to use from the list of available APIs.
See Few common APIs list to obtain IDs
URL Request
Parameters
Request Type
Client ID
Authorization Code
Enter Response folder path where file containing summary of DSS task
will be created.
Enter Config folder path with file name. Config file contains details about
connection and end-point reference.
Description
Enter Secure Credentials File folder path with file name. When you test
the connection Secure Credentials File will be generated.
Example: \..\..\GoogleAPI\Secure_Credentials.cfg
Authentication Required
Select Yes only for the first time you create a Google API
connection in Informatica cloud and then test the connection.
A browser window opens up requesting access to Google API. Click
Access and proceed with creating a connection.
After authentication, select No and then proceed to create a
connection.
6. Specify the Task Name, provide a Description and select the Task Operation Insert.
7. Click Next.
8. The Source tab appears.
10
Data Filters
Data filters help you to fetch specific data based on the APIs configured in Config.csv file.
The data synchronization task will process the data based on the filter field assigned. See
Understanding Config.CSV file.
It is mandatory to assign _FLT_URL_Input_Parameters_Config_File_Path filter field while
setting up a DSS task.
Note: Advanced data filters are not supported Google API connector
The following steps help you to use data filters.
1. In Data synchronization task, select Data Filters tab.
2. The Data Filters tab appears.
3. Click New as shown in the figure below.
11
Field Type
Description
Object
Filter By
Operator
Filter Value
6. Click Ok.
12
Reference Screenshots
Google Developers Console: Obtaining Client ID and Secret
13
ID Obtained
Lists_all_accounts_to_which_the_user_has_access
Account ID
Lists_web_properties_to_which_the_user_has_access
Web Properties ID
Lists_views_profiles_to_which_the_user_has_access
Profile ID
Lists_goals_to_which_the_user_has_access
Goal ID
Lists_experiments_to_which_the_user_has_access
Experiment ID
Note: Mention the redirect_uri used in the secure credentials file. It is recommended to use
http://localhost:4000 as it is an unused port.
Note: The scope URL is different for Google analytics and AdSense API.
2. Click the Batch file.
3. Project Default Service Account browser window opens up.
4. Click Accept to access Google API.
5. Once you click Accept, you will be redirected to following page as shown below. The page
URL also contains the authorization code.
14
15
Connection Property
Connection Name
Description
Type
Secure Agent
Google API
Select the Google API you wish to use from the list of available
APIs. See Few common APIs list to obtain IDs
Request Type
Client ID
Authorization Code
Enter Config folder path with file name. Config file contains details
about connection and end-point reference.
16
Description
Enter Secure Credentials File folder path with file name. When you
test the connection Secure Credentials File will be generated.
Example: \..\..\GoogleAPI\Secure_Credentials.cfg
Authentication Required
Select Yes only for the first time you create a Google API
connection in Informatica cloud and then test the connection.
After authentication, select No and then proceed to create a
connection.
17
Troubleshooting
Increasing Secure Agent Memory
To overcome memory issues faced by secure agent follow the steps given below.
1. In Informatica Cloud home page, click Configuration.
2. Select Secure Agents.
3. The secure agent page appears.
4. From the list of available secure agents, select the secure agent for which you want to
increase memory.
5. Click pencil icon corresponding to the secure agent. The pencil icon is to edit the secure
agent.
6. The Edit Agent page appears.
7. In System Configuration section, select the Type as DTM.
8. Edit JVMOption1 as -Xmx512m as shown in the figure below.
18
Additional Guidelines
19
When you get an error saying invalid credentials while creating a connection, test the
connection to authorize the Google API again. You can also manually authorize the
connection, if required.
Check the Config prop file to know whether the connection is authorized or not.
It is recommended to clear the browsing history, cookies and session information of the
web browser before getting started with Google API connector.