Google Analytics API V4 and Management API V3

文章推薦指數: 80 %
投票人數:10人

The Google Analytics core reporting API (v3) was replaced by the Google Analytics Reporting API (v4). You can technically run both of them ... Home Public Questions Tags Users Companies Collectives ExploreCollectives Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam Collectives™onStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore GoogleAnalyticsAPIV4andManagementAPIV3 AskQuestion Asked 4years,8monthsago Modified 4years,8monthsago Viewed 3ktimes 2 IhavebeenupdatingtheGoogleAnalyticsCoreReportingAPIfromV3toV4recently.OurapplicationusestheManagementAPIV3andearlieritwasrunningwiththeV3ofAnalyticsAPI.NowthatIamupdatingAnalyticsReportingAPI,howdoIintegratetheolderversionofthisAPIwiththelatestversionofAnalyticsAPI? IsthisevenpossibletorunbothofthemtogetherwhereAnalyticsisrunningonV4andManagementisrunningonV3. ItriedtodoitbutV3ofManagementAPIcomplainsabouttheGoogle.APIversiontonotbematchingitsrequirements. Iamtryingtodothisindotnet.Letmeknowifyouneedanyotherinformation. Snippetfromthegoogleanalyticsdocumentation: google-analyticsgoogle-apigoogle-oauthgoogle-analytics-api Share Follow editedNov9,2017at9:03 DaImTo 91.1k2626goldbadges156156silverbadges393393bronzebadges askedNov9,2017at7:41 AkashTomarAkashTomar 94011goldbadge1111silverbadges2121bronzebadges 3 Canyougivemethelinktowereyougotthatpicturefromthatdoesn'tmakeanysenseneedtohavetheteamlookatthat.Itsnotgoingtorequireaseparatelibrary.Itwillrequiredifferentmethodswithinthesamelibrary – DaImTo Nov9,2017at9:06 @DaImTodevelopers.google.com/analytics/devguides/reporting/core/v4 – AkashTomar Nov9,2017at9:14 1 IhaveloggedthisasabugandIamgoingtopingtheteamaboutitsorryforanyconfusionthismayhavecausedissuetracker.google.com/issues/69091435 – DaImTo Nov9,2017at9:35 Addacomment  |  1Answer 1 Sortedby: Resettodefault Highestscore(default) Trending(recentvotescountmore) Datemodified(newestfirst) Datecreated(oldestfirst) 2 TheGoogleAnalyticscorereportingAPI(v3)wasreplacedbytheGoogleAnalyticsReportingAPI(v4).Youcantechnicallyrunbothofthemindifferentscripts,butsomeofthedimensionsandmetricsonlyworkinv4andwontworkinv3.BothoftheseAPIsallowyoutoaccessyourGoogleAnalyticsdata. TheGoogleAnalyticsManagementAPIisastandaloneAPIusedforAccessingtheaccountinformationofGoogleAnalyticsithasnothingtodowithaccessingtheActualGoogleanalyticsdata.ThereisnonewversionofthisAPIsonothingforyoutobeupgrading. Note:YouwillneedtoincludethereportingAPIscopeinyourclientonGoogledeveloperconsoleaswellastheanalyticsAPIifyouwanttouseboth. IthinkthemanagementAPIstillfallsundertheanalyticsAPIscopesoyourstillgoingtoneedthatevenifyouenablethereportingapi Share Follow editedNov9,2017at9:06 answeredNov9,2017at9:01 DaImToDaImTo 91.1k2626goldbadges156156silverbadges393393bronzebadges 4 YesexactlytheissuesthatIwasfacingwasthatIneededthelibraryforbothversionsinordertorunthelatestreportingapiandmanagementapisincelatestversionofanalyticsapidoesnothaveanysupportforthemanagementapi. – AkashTomar Nov9,2017at9:38 Itsjustasinglelibrarythemethodsarejustdifferent.Whichlanguageareyouusing? – DaImTo Nov9,2017at9:55 Iamdoingthisindotnet. – AkashTomar Nov9,2017at9:56 youwillneedbothofthesepackagestoaccessbothmanagmentapiandthereportingapinuget.org/packages/Google.Apis.AnalyticsReporting.v4andnuget.org/packages/Google.Apis.Analytics.v3Itistechnicallythesamelibraryjusttwodifferentpackagesaswedontforceyoutodownloadeverythingwhenyoujustwanttoaccessoneapi – DaImTo Nov9,2017at9:58 Addacomment  |  YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedgoogle-analyticsgoogle-apigoogle-oauthgoogle-analytics-apioraskyourownquestion. TheOverflowBlog DesignpatternsforasynchronousAPIcommunication GameBoyemulators,PowerPointdevelopers,andtheenduringappealofPokémon... FeaturedonMeta AnnouncingtheStacksEditorBetarelease! Trending:Anewanswersortingoption The[options]tagisbeingburninated Related 3 HowtolistManagementProfileswithGoogleAnalyticsPHPAPI? 0 HowtomakequerytoGoogleAnalyticsAPIusinggoogle-api-php-client 0 GoogleAnalyticsReportingApi-PHP:Adduseraccount 1 GoogleAnalyticsManagementAPI500InternalServerError 1 Googleanalyticshowtogiveaccesstoken 1 GoogleAnalyticsUserActivityAPI 1 GoogleAnalyticsReportingAPIV3/V4compatibilitywithGoogleAnalytics4(GA4) 0 ClassNotFoundException:WhileaccessingtheGoogleAnalyticsAPIv4 HotNetworkQuestions Whatdateis74029onanIBMMainframe? GeometryNodes:Howtoswap/changeamaterialofaspecificmaterialslot? What'sthedifferencebetweenamagicwandandaspell TechniquesforCompensatingInductorSRF CananyoneIdentifythemake,modelandyearofthiscar? CannotGetOptimalSolutionwith16nodesofVRPwithTimeWindows Doweekenddayscountaspartofavacation? Howshouldwedoboxplotswithsmallsamples? Whatisthemeaningof说得过? WhenaddinganewdisktoRAID1,whydoesitsyncunusedspace? HowcanIuseparentheseswhentherearemathparenthesesinside? WhyistheUSresidentialmodeluntouchableandunquestionable? Whyhadclimatechangenotbeenprovenbeyonddoubtforsolong? UStoCanadabycarwithanenhanceddriver'slicense,nopassport? Whatarethepurposeoftheextradiodesinthispeakdetectorcircuit(LM1815)? Isthereawaytogenerateenergyusingaplanet'sangularmomentum DidSauronsuspectthattheRingwouldbedestroyed? Whydidn'tGLaDOSkillChell? Extract2Dquadmeshfrom3Dhexahedralmesh mvfailswith"Nospaceleftondevice"whenthedestinationhas31GBofspaceremaining Countthecells Showthatinvolvesacharactercloninghiscolleaguesandmakingthemintovideogamecharacters? FormalLanguages HowdoesatailplaneprovidedownforceifithasthesameAoAasthemainwing? morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings  



請為這篇文章評分?