Google -abonnement
Tiltrekke nye abonnenter med tester, oppdagelsespriser og kampanjer på Google.
Forhåndsvisning av abonnement
For å motta meldinger publisert i et emne, må du opprette et tilknyttet abonnement på dette emnet. Bare meldinger publisert i emnet etter opprettelsen av abonnementet er tilgjengelig for abonnementskunder. Abonnentkunden mottar og behandler meldinger publisert i emnet. Et emne kan knyttes til flere abonnement, men et gitt abonnement kan bare være assosiert.
Bevaringsfunksjonaliteten til forsøkspersoner tillater et abonnement knyttet til et emne å gå tilbake og lese tidligere publiserte meldinger på nytt. For å finne ut mer om denne funksjonen, se gjenåpningssiden og slette meldinger permanent.
Abonnementsarbeidsflyt
- Når en melding er sendt til en abonnent, må sistnevnte erkjenne kvittering.
- Hvis en melding sendes til distribusjonen og en abonnent ennå ikke har lest den, kalles den i påvente av.
- Pub/under prøver flere ganger for å distribuere en melding som ennå ikke er bekreftet. Pub/sub prøver imidlertid å ikke distribuere noen melding som venter til et annet abonnement på samme abonnement.
- Abonnenten har en konfigurerbar og begrenset tid, kalt AckDeadline, for å erkjenne mottak av ventemeldingen. Etter denne perioden anses ikke meldingen lenger og reklame/Sub prøver å omfordele den.
Typer abonnement
Når du oppretter et abonnement, må du spesifisere typen distribusjon av meldinger. Pub/Su tilbyr følgende typer abonnement:
- DE Trekk abonnement Bruk en abonnentkunde for å be om meldinger fra pub/sub -serveren.
- DE skyv abonnement Bruk pub/sub -serveren til å sende spørsmål til abonnenten din for å distribuere meldinger.
- L ‘Eksport av abonnement Lar deg eksportere meldingene dine direkte til en Google Cloud Resource. Disse abonnementene er som følger:
- DE BigQuery -abonnement Eksporter data til et BigQuery -bord.
- DE Skylagringsabonnement Eksporter data til en skylagringsbøtte.
For å velge abonnementet tilpasset behovene til virksomheten din, må du kontakte en type abonnement. Du kan oppdatere typen distribusjon av meldinger for et abonnement når som helst etter opprettelsen.
Standard abonnementsegenskaper
Som standard tilbyr Pub/SU en distribusjon av typen “minst en gang”, uten garanti for å sortere på alle typer abonnement. Hvis meldinger har den samme sorteringstasten og er i samme region, kan du aktivere meldingsklassifiseringen. Når du har definert meldinger for å sortere meldinger, sender pub/SU -tjenesten meldingene med samme sorteringstast og i den rekkefølgen Pub/SUP -tjenesten mottar dem.
Pub/sub er også kompatibel med “Nøyaktig en gang” kringkasting.
Generelt distribuerer pub/su hver melding en gang og i den rekkefølgen den ble publisert. Imidlertid kan meldinger noen ganger distribueres ut av lidelse eller flere ganger. Pub/sub kan omfordele en melding selv etter at en bekreftelsesforespørsel for meldingen er returnert. Denne rabatten kan være forårsaket av problemer som returer på serversiden eller kundenes problemer. Selv om det er sjelden, kan enhver melding returneres når som helst.
For å kunne administrere sendingen flere ganger, må abonnenten din være Idempot når du behandler meldinger.
Abonnementsutløp
Som standard utløper abonnement etter 31 dager med inaktivitet eller i fravær av oppdateringer. Åpne tilkoblinger, vellykkede aktive eller pushy genserhandlinger er eksempler på abonnentaktiviteter. Hvis reklame/sub oppdager en abonnentaktivitet eller en oppdatering av egenskapene til abonnementet, er klokken til å fjerne abonnementet omstart. Ved hjelp av utløpsregler for abonnement kan du konfigurere varigheten av inaktiviteten eller gjøre abonnementet vedvarende, uansett aktivitet. Du kan også slette et abonnement manuelt.
Selv om du kan opprette et abonnement med samme navn som et slettet abonnement, har det nye abonnementet ikke noe forhold til det gamle. Selv om det slettede abonnementet inkluderte mange ubekreftede meldinger, ville et nytt abonnement med samme navn presentere en hvilken som helst ventemelding på tidspunktet for opprettelse (ingen melding som venter på distribusjon).
Følgende trinn
- Velg hvilken type abonnement tilpasset kravene i virksomheten din.
- Forstå arbeidsflyten for hver type abonnement:
- Genser
- Å overføre
- BigQuery
- Skylagring
Kommentar
Med mindre annet er angitt, styres innholdet på denne siden av en Creative Commons Assignment 4 -lisens.0, og kodeprøver styres av en Apache 2 -lisens.0. For mer informasjon, se reglene for Google Developer -nettstedet. Java er et registrert varemerke for Oracle og/eller dets tilknyttede selskaper.
Siste oppdatering 2023/08/03 (UTC).
Konfigurasjon av abonnement
Tiltrekke nye abonnenter med tester, oppdagelsespriser og kampanjer på Google.
Beholde kundene dine
Oppdag de forskjellige tiltakene du kan sette på plass for å begrense tapet av abonnenter (nåde med nåde, blokkering og kontospensjon, mulighet for å endre abonnementsnivå)
Tilpass abonnementene dine
Tilpass abonnementene dine til kundebehov ved å tilby forskjellige faktureringsperioder, bruke lokale valutaer og endre prisene dine
God praksis
- La brukerne teste søknaden din før abonnement ved å sette opp en test (som du velger varigheten) eller angi en oppdagelsespris som gjelder et visst antall faktureringsperioder.
- Tilpass prisen for hvert språk og fakturabrukere i sin lokale valuta.
- Tilby abonnentene.
- La brukerne frihet til å endre planen sin (ved å flytte til en nedre eller øvre pakke) eller å omregistrere for å holde tilgangen.
- For å redusere tapet av brukere på grunn av frivillig avslutning av abonnement og tilby internettbrukere en annen løsning, kan du la dem suspendere abonnementet.
Lære mer
Lag et abonnement
Finn ut hvordan du legger til et abonnement på søknaden din og finn ut om ditt ansvar som utvikler
Fremme kjøp takket være abonnement
Finn ut hvordan du kan optimalisere inntektene dine generert av abonnement i henhold til brukermotivasjoner og deres forpliktelse
Dokumentasjon for utviklere
Finn ut hvordan du bruker Google Play -fakturering for å integrere spesifikke funksjoner for abonnement på applikasjonen din
Abonnementsmodeller for spill
Finn ut hvordan du bruker en abonnementsmodell på spillet ditt ved å følge et kurs på forespørsel fra Play Academy