Expand my Community achievements bar.

Join us at Adobe Summit 2024 for the Coffee Break Q&A Live series, a unique opportunity to network with and learn from expert users, the Adobe product team, and Adobe partners in a small group, 30 minute AMA conversations.
SOLVED

Not able to connect adobe analytics through python api

Avatar

Level 1

I got developer account created for adobe analytics and received a link to complete my account. while account creation it asks for password only. After entering the password i logged in successfully. But while connecting adobe analytics through python it asks for username/password.

Where i can get the username which i can use with python ?

I have tried the name showing on top right corner after successful login to the adobe analytics but did'nt worked for me.

Do help me or redirect me to the concerned team.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You should this documentation: GitHub - AdobeDocs/analytics-1.4-apis: Documentation and helpful resources for calling the Analytics...

analytics-1.4-apis/wsse_authentication.md at master · AdobeDocs/analytics-1.4-apis · GitHub

To get the username and password you will need to be added to the web services group for Adobe Analytics. Once it is done, an admin in your company can go to Admin >> Company Settings >> Web services and should be able to provide you the Web services username and Shared secret. That are the ones you need to use with WSSE.

Unfortunately I do not have any WSSE example in python.

View solution in original post

7 Replies

Avatar

Community Advisor

Check this documentation analytics-1.4-apis/index.md at master · AdobeDocs/analytics-1.4-apis · GitHub

Let us know what type of authentication you are using and if you are using API 1.4 or 2.0

Avatar

Level 1

I am using WSSE authentication and API 1.4

Avatar

Correct answer by
Community Advisor

You should this documentation: GitHub - AdobeDocs/analytics-1.4-apis: Documentation and helpful resources for calling the Analytics...

analytics-1.4-apis/wsse_authentication.md at master · AdobeDocs/analytics-1.4-apis · GitHub

To get the username and password you will need to be added to the web services group for Adobe Analytics. Once it is done, an admin in your company can go to Admin >> Company Settings >> Web services and should be able to provide you the Web services username and Shared secret. That are the ones you need to use with WSSE.

Unfortunately I do not have any WSSE example in python.

Avatar

Level 1

Thanks for your reply.

How to get myself added to the web services group of Adobe Analytics.

Avatar

Community Advisor

You need to ask an Adobe Analytics Admin to add you to the group

Avatar

Level 1

Thanks Alexis for your help!!

I was able to connect to omniture via python api.

I am facing new issue now while fetching traffic report from omniture. I am trying to fetch pages report with sample data as below.

   

PagePage ViewsTotal Seconds Spent
1search results831371731.00%3.71E+0831.30%
2Search results13284615.00%412798033.50%
3Groceries:Homepage10980384.10%437029003.70%
4Favourites:My%20Favourites7480542.80%1.32E+0811.20%

the inputs i am using in python code is mentioned below.

report_definition_traffic = ReportDefinition(

    dimensions="page",

    metrics=[

{ "id": "pageviews"}

        ],

    date_from="2016-08-15",

    date_to="2017-08-13",

elements=[

                        {

                "id":"page", "top": 100

            }

        ]

)

issue - manual numbers and python dataframe numbers are not matching. Also i am not able to find the option to pull the "Total Seconds Spent" metric.