Google analytics API missing data? - google-analytics-api

I am trying to access data via the analytics reportingv4 API. I am using the.net version in visual studio. I can get it to return data but just not the data I want.
I am using a specific account that only has one view attached to it. If I try to view the data I'm looking for, using the web interface, it works, by filtering it using the search box. For example, there is currently 20 page hits for today. If I try the same, using the API, no data is returned. If I remove the filter, from my code, data is returned but none of the pages that I am looking for.
Any ideas?
Thanks

I was being silly. I eventually noticed that I was supplying a date range for the year 2017! The processing which

Related

Created System Column Blank In API Call

I am making REST calls against the Reports API endpoint, and pulling that data into a separate application. I am able to pull all of the report columns with its data, with the exception of the Created (System Column), which always returns nothing/null.
To rule out the application being the issue, I used the built in Smartsheet connector in Power BI and am getting the same blank results there.
Are there any known limitation about pulling date system columns out of the API?
It looks like you discovered a bug in the Smartsheet API! Thanks for drawing attention to this. I've submitted a bug report to the dev team at Smartsheet.
Apologies for the inconvenience. What are you trying to accomplish with your application? I might be able to help you come up with a work-around.

API Call Returns Numerous Sheets but None That I Need

My use case at high level is - get the sheet out of Smartsheet via API (with GET), transform data in a ETL tool and load into a relational db for further manipulation and reporting.
All I'm trying to do is retrieve data for sheets that have been shared with me (a couple as Viewer, 2 as Editor (cannot edit), 2 as Editor (can edit) and 2 as Owner). I'm making a pretty basic API call to get a list of sheets https://api.smartsheet.com/2.0/sheets (with auth token and other header attrs) and the problem is that I'm getting all kinds of sheets back (~18,000) in the results but none are the ones I need (see above).
What am I doing wrong?
Thank you!
P.S. Using specific sheet IDs is not going to be feasible as I won't know them when extracting data anyways. Another thing - I will be filtering out the sheets I don't need with the ETL tool's help anyways, just need to understand why the ones I'm after aren't coming back since I'm using the token of that user.
The command https://api.smartsheet.com/2.0/sheets?includeAll=true will return every sheet that you can access.

how can I fetch data from website if data is not available in source code using perl?

I want to fetch table data from the website using perl: http://finance.yahoo.com/quote/LBJ/history?period1=946665000&period2=1470162600&interval=div%7Csplit&filter=split&frequency=1d
but it's source code does not contains any data of table which we can see on website, there is one download link but that downloaded data is not same as data shown on website.I want stock split information shown on this website, yahoo provides download link to download that data but here downloaded data is different then they shown on website, by mistake they provide dividend history information,but I want split history information.
The page is built using a number of Javascript calls.
You should use the developer tools that are built in to your browser to trace all of the HTTP requests that are used to build the page. One of them will return the data which is used to build the table. Hopefully you will be able to recreate that call to get the data directly. It's likely that the data will be returned as JSON, which will make parsing it much easier.
Update: It's worth adding that sites often build pages this way precisely because they don't want people to scrape their data. Have you checked the terms and conditions of the site? Are you allowed to access the data this way? HAve you looked to see if you can get this data through an API?

Highmaps from sharepoint data

I've searched for a few days for examples of now to use high maps with sharepoint data. We purchased high maps because we are confident there is a way to make the maps from sharepoint data.
The goal would be either to make a map from address or lat long data OR map just on the country of the item. We are at the phase where we are about to collect data and it's not clear how the data needs to be formatted. I believe we would either pull the data from the sharepoint list via rest and JSON is SPServices and CAML query, I've created datatables and a highcgart pie wth test data in the site.
I'm not finding any good samples out there and hoping some experts will weigh in with advice or a code snippet.
General rule is that Highcharts runs in any web browser, including web controls or browser widgets in other platforms. If SharePoint has a mechanism of including a web page in some kind of frame, then it should work.
I advice to familiar with the article about preprocessing, http://www.highcharts.com/docs/working-with-data/preprocessing and getJSON() functon in jquery.
In the highmaps you can use data points defined as lat/lng.
Further information information about that:
- http://www.highcharts.com/docs/maps/latlon

how to specify URL in filters pagePath core reporting api V3

I am building a web app that pulls data through the Core Reporting Api v3 from Google. I am using the client PHP library offered by Google.
I am currently trying to specify a page and retrieve its pageviews for a time range. Every other seems to be working okay except for the fact that if a specfy a filter with ga:pagePath==http://link/uri then I get 0 all the time no matter the time range.
I think the problem is got to do with the setting of value for this pagePath. I want to have spearate data for the desktop version of the site and the smartphone version denoted by s. subdomain
Can anyone hint me on some tips and or tricks to use to get the required data?
Example URL:
http://domain.com/user/profile/id/1
http://s.domain.com/user/profile/id/1
Thanks in advance!
for the the default implementation of Google Analytics, ga:pagePath doesn't include the scheme or hostname so in your case you'd actually want to filter using ga:hostname and ga:pagePath together.
I suggest you use the Query Explorer to build your queries and get familiar with what will work. You can also use this tool to at least get a sense for what type of data the ga:pagePath and ga:hostname dimensions return before trying to filter on them. Finally, once you have the query you want, you can easily get the exact Core Reporting API query by clicking on the Query URI button.
Also check out the Combining Filters section of GA API docs.
So if you want filter on ga:pagepath for domain.com and s.domain.com separately you could do something like
filters=ga:pagePath==/user/profile/id/1;ga:hostname==domain.com
filters=ga:pagePath==/user/profile/id/1;ga:hostname==s.domain.com