Google Analytics Data metrics doesnt match with UI - google-analytics-api

this is Sergio from Msights Team
We have some questions about some metrics that have differences between the UI and the API, including " total revenue ", but we have the same problem with other metrics.
We have tried to download data with more than 2 or 3 last days and not only with the day immediately before, in addition the data downloaded by api doesnt have some type of filter other than by date.
Could you help me see what the difference could be?
Thank you!

Related

Is the aggregation information in kubernetes dashboard available at the CLI? Or through an API?

I've seen in the Kubernetes dashboard the tracking of some information in the form of:
X happened 14 times and the last occurence was at time T
Where is this data coming from? Can I query for it using the kubectl? Is there a K8s API for this information as well? Or is the dashboard running some kind of aggregation internally?
X happened 14 times and the last occurence was at time T
That is OOB dashboard functionality and most probably you should dive deep into the code to answer this question.
The thing is of course dashboard relies on open data that you can collect on your own using kubectl - the only question is what exactly you wanna see as output. Using kubectl in spike with greps, sorts, seds, etc will give you the same information you just asked. Maybe you wanna create new question and specify your exact task?

"14 days availability" OpenMapTiles.com data

my name's Diego.
I'm a passionate 3D drawer, and i'm about to starting a nice project which needed some satellite and hillshading images from a region of the France.
I've seen that in https://openmaptiles.com/ you can choose to buy a one-time data of a specific area, and i've bought both the satellite and hillshading data for the region i needed.
In my page, where i can download the data, it shows a phrase:
"List of created dataset. These extracts are available for 14 days."
What it means? i can't use what i've bought for over 14 days? or just the link disappear? because my project it lasts over 14 days, i thought if i bought data it can be used offline forever (ofc not updated).
Someone can explain this?
thank you in advance,
have a nice day!
Diego
Thanks for the purchase from OpenMapTiles.com!
The download link for the extract expires and the extract is deleted from our servers in 14 days after the purchase. You can download the extract anytime during these 14 days. Unfortunately, the extracts cannot remain on our servers as we would run out of the storage capacity quickly.
In case this wouldn't be suitable for you, you can subscribe to one of the production packages available at https://openmaptiles.com/production-package/. This way, all the data for the whole planet would be available for you anytime.
Have a nice day as well and we wish you good luck with your project!

Bing maps v7 to v8 upgrade causes increase in billed requests

I recently completed upgrading bing maps from v7 to v8 for our dealerlocator. Since then we have observed increase in the no. of billed requests.
I did not change the way map API were being called during the upgrade process. Still, it shows an increase in no. of billed requests.
Can someone help me understand any specific reason for the same? Also how do I calculate no. of billed requests using JS in my code during development? Ideally I want to count the no. of requests for every load of this particular module. Please help :(
If you are simply loading a map a single billable transaction will be generated each time the map is loaded. If you load the map on page load then the number of page views would normally be around the same number as billable transactions. If you use the search or direction modules they will generate non-billable transactions as they are part of the map session.
If you use the auto suggest module, without a map, this will generate a billable transaction the first time a suggestion is selected.
We have done a lot of testing and have most V7 apps migrated to V8. We haven't seen any increases in usage in transactions in general. Any increases that were observed were due to the following:
App developers were comparing current month to previous month. This isn't accurate as web traffic generally fluctuates month to month. It is best to look at the last two years worth of reports to see if the month is question is typically a higher month and to also look at the average month on month growth as web traffic usually increases over time.
The new application attracted more users to use it. Sometimes additional marketing may have also been involved.
There was an issue with the code that the developer migrated which generated more transactions. For example, calling the map load function twice, once using the page onload like in V7 and once using the callback parameter in V8. This would result in twice as many map transactions being generated, but appear as only a single map on the page.
The previous application didn't use a key and either used v6 of Bing Maps or had CSS which hide the error message that appears in V7. We have seen this in a number of applications. Basically, the old application should have been generating more transactions than it was.
A list of the different ways transactions are generated is documented here: https://msdn.microsoft.com/en-us/library/ff859477.aspx

How to get tweets of a year for data mining using twitter API

I like to retrieve 2014-2015 tweets based on some search key for data mining.
I am using twitter4j(java) and calling API GET search/tweets.I am getting only last week tweets.Can anyone please suggest me the solution?
gnip
You got to pay for data older than about a week.
Via Gnip, you can order a one-time data pull (called a Historical PowerTrack One-Time Job). You provide the rule, and a data file will be sent back to you with download directions.
You can learn more about Historical PowerTrack here and here

Fetching 1 minute bars from Yahoo Finance

I'm trying to download 1 minute historical stock prices from Yahoo Finance, both for the current day and the previous ones.
Yahoo (just like Google) supports up to 15 days worth of data, using the following API query:
http://chartapi.finance.yahoo.com/instrument/1.0/AAPL/chartdata;type=quote;range=1d/csv
The thing is that data keeps on changing even when the markets are closed! Try refreshing every minute or so and some minute bars change, even from the beginning of the session.
Another interesting thing is that all of these queries return slightly different data for the same bars:
http://chartapi.finance.yahoo.com/instrument/2.0/AAPL/chartdata;type=quote;range=1d/csv
Replace the bold number with 100000 and it will still work but return slightly different data.
Does anyone understand this?
Is there a modern YQL query that can fetch historical minute data instead of this API?
Thanks!
Historical minute data is not as easily accessible as we all would like. I have found that the most affordable way to gather Intraday Stock Price data is to develop automated scripts that log price information for whenever the markets are open.
Similar to the Yahoo data URL that you shared, Bloomberg maintains 1-Day Intraday Price information in JSON format like this : https://www.bloomberg.com/markets/api/bulk-time-series/price/AAPL%3AUS?timeFrame=1_DAY
The URL convention appears easy to input on your own once you have a list of Ticker Symbols and an understanding of the consistent syntax.
To arrive at that URL initially though, without having any idea for guessing / reverse-engineering it, I simply went here https://www.bloomberg.com/quote/AAPL:US and used Developer Tools on my browser and tracked a background GET request which led me to that URL. I wouldn't be surprised if you could employ similar methods on other Price Data-related websites.
You can also write scripts to track price data as fast as your internet goes. One python package that I find pretty handy and is ystockquote
You can have it request price data every couple of seconds and log that into a daily time series database.
Yes there is other APIs.
I don't know if it can still help but if you need intraday data, there is a API on rapidapi called (Quotient) which allows to pull intraday (at 1-min level), EOD market (FX, Crypto, Stocks (US, CANADIAN, UK, AUSTRALIA, EUROPE), ETFs and Futures. It also provides earnings, dividends, splits and a lot others informations.