Thrift module: acquisition

ModuleServicesData typesConstants
acquisition Acquisition
AcquisitionSource
PaymentFrequency
PaymentProvider

Enumerations

Enumeration: PaymentFrequency


ONE_OFF1
MONTHLY2
ANNUALLY3
QUARTERLY4
SIX_MONTHLY5

Enumeration: PaymentProvider


STRIPE1
PAYPAL2
GOCARDLESS3
IN_APP_PURCHASE4
STRIPE_APPLE_PAY5
STRIPE_PAYMENT_REQUEST_BUTTON6
SUBSCRIBE_WITH_GOOGLE7
AMAZON_PAY8
STRIPE_SEPA9

Enumeration: AcquisitionSource


GUARDIAN_WEB1
GUARDIAN_APPS2
DEPRECATED DO NOT USE


EMAIL3
SOCIAL4
SEARCH5
PPC6
DIRECT7
GUARDIAN_APP_IOS8
GUARDIAN_APP_ANDROID9
APPLE_NEWS10
GOOGLE_AMP11
YOUTUBE12

Data structures

Struct: Acquisition

KeyFieldTypeDescriptionRequirednessDefault value
1productproduct.ProductProduct type required
2paymentFrequencyPaymentFrequencyIf the payment is a one off or recurring required
3currencystringCurrency code (ISO 4217 3-character, upper-case, eg USD, GBP) required
4amountdoubleContributed amount in units of the currency received required
6paymentProviderPaymentProviderThe payment provider the user paid with optional
7campaignCodeset<string>The campaign code of the campaign that the user came from optional
8abTestsabtest.AbTestInfoThe ab tests the user was in on dotcom optional
9countryCodestringISO-3166-aplha-2 country code representing where the user is from. It is either the country of the card used, or the country of the contributor s address optional
10referrerPageViewIdstringPage view id of the page the reader was on that lead them through to the contribution page e.g. by clicking on the Contribute Now button in the Epic component optional
11referrerUrlstringUrl of the page the reader was on that lead them through to the contribution page e.g. by clicking on the Contribute Now button in the Epic component optional
12componentIdstringAn ID that can be used to distinguish different instances of a given component type optional
14componentTypeV2componentevent.ComponentTypeThe type of component that the acquisition came from optional
15sourceAcquisitionSourceThe source of the acquisition optional
16printOptionsprintoptions.PrintOptionsExtra parameters only applicable to print products optional
19platformplatform.PlatformPlatform on which the acquisition occurred e.g. Contributions, S&C optional
20discountLengthInMonthsi16Length of the discount in months optional
21discountPercentagedoubleAmount of discount, as a percentage optional
22promoCodestringPromo code for the acquisition. Only applicable to subscriptions. optional
23labelsset<string>Any additional labels. In particular, extra information that is needed to calculate Annualised Value for this Acquisition (e.g. promotions like Guardian Weekly Six For Six) can go here. optional
24identityIdstringThe identity id of a user optional
25queryParametersset<queryparameter.QueryParameter>Query string parameters associated with an acquisition optional

Represents monetary contribution made by a reader via this page.

This type is now obsolete, as the Acquisition data now goes directly to BigQuery, without going via
the Ophan pipeline.