feat(gelderlander): hide subscription upsell (temptation) banners #45
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16. Depends on #17 and #18.
Feature description
De Gelderlander shows subscription upsell banners ("temptation views", marketing positions) in several places:
These are advertising for DPG's own product. Hide them.
The actual paywall on locked articles uses the same template mechanism. It must keep working as it does now: locked articles still show their gate. This issue removes banners only; it does not change what content is accessible.
Findings (9.21.1, obfuscated: use the anchors)
Article (
e30, ArticleDetailUseCase, anchor"com.kubusapp.article.ArticleDetailUseCase")loadWithPiano(j),loadWithTemptation(k) andloadWithoutPaywall(l).af7(View view, String position, boolean reduced, TemplateProvidedInterface)viabf7:bf7.d(net.persgroep.marketingtemplatessdk.core.models.ResolveResponse)(getTemplates / getTemplatePosition / getHasReducedContent);bf7.c(List<l39>)/bf7.a(l39)for the temptation path (getPayWallView / getPaywallPosition / getReducedContent);bf7.b(temptationsdk ResolveResponse)(getPayWalls).af7isreduced, the locked article is kept; otherwise the full article is fetched again. The paywall decision is response-level, so filtering the banner views doesn't change it.ypc):ARTICLE_REDUCED,ARTICLE_REDUCED_NO_INTRO,NO_POSITION,NO_POSITION_NO_INTRO.ARTICLE_INLINE,ARTICLE_INLINE_MIDDLE,ARTICLE_INLINE_NO_INTRO,ARTICLE_TOP,ARTICLE_BOTTOM,PAGE_TOP,PAGE_BOTTOM,TOAST,POPUP,OORTJE, etc. The constants are in the unobfuscatedcom.persgroep.temptationsdk.data.model.Position.ypc.a(List<i30>, List<String>)matchesMarketingComponentslots (i30.y(id, position)) to positions.Article page banner
pt4.b(j20)returns TOP/BOTTOM. Anchors: "FEATURE_MARKETING_POSITION_TOP" and the log "FREE-2953: Article type is ".App and section toasters
wpc= TemptationViewHandler,a(Application, ContentType, String, cont). Anchors: "FEATURE_TEMPTATION_VIEWS", "TemptationView is disabled", "NEWS_WORLD_TEMPTATION_ZONE_ID_ANDROID".jc7.requestTemptationView(MainViewModel, rendered bycom.kubusapp.temptationviews.ToasterContainer) and byy8b.requestTemptationView(SectionViewModel). The article paywall does not use it; that usesppc.Feed
MarketingPositionTeaser(TeaserTypemarketingPosition) is resolved bybna(anchor"com.kubusapp.component.marketingposition.ResolveMarketingPositionUseCaseImpl").Other
LoginSeductionActivityin onboarding is gated byFEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREEN.com.kubusapp.paywall.LinkSubscriptionDialogFragmentis the subscription link dialog. Check when it appears.Approach
FEATURE_TEMPTATION_VIEWSandFEATURE_MARKETING_POSITION_TOPoff via #17, which removes the toasters and the article top banner. Also forceFEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREENoff, which skips the onboarding upsell.MarketingPositionTeaserfrom the feed via #18.bf7output (or theypcmatching) by position: keep the paywall positions listed above and drop the rest. Never touchreduced.Done when
docs/apps/gelderlander.md.Midas Settings
hide_subscription_banners), category "Advertenties en promotie", default on. Same key as de Volkskrant.