feat(gelderlander): hide subscription upsell (temptation) banners #45

Closed
opened 2026-10-10 12:23:21 +02:00 by midas · 0 comments
Owner

Part of #16. Depends on #17 and #18.

Feature description

De Gelderlander shows subscription upsell banners ("temptation views", marketing positions) in several places:

  • in the feed;
  • above and below articles;
  • inline in articles;
  • as toasters;
  • as a login-upsell screen during onboarding.

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")

  • It has three load paths: loadWithPiano (j), loadWithTemptation (k) and loadWithoutPaywall (l).
  • Both template paths turn responses into af7(View view, String position, boolean reduced, TemplateProvidedInterface) via bf7:
    • 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).
  • If any af7 is reduced, 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.
  • Paywall positions to keep (the set in ypc): ARTICLE_REDUCED, ARTICLE_REDUCED_NO_INTRO, NO_POSITION, NO_POSITION_NO_INTRO.
  • Banner positions to drop: 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 unobfuscated com.persgroep.temptationsdk.data.model.Position.
  • ypc.a(List<i30>, List<String>) matches MarketingComponent slots (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".
  • Used by jc7.requestTemptationView (MainViewModel, rendered by com.kubusapp.temptationviews.ToasterContainer) and by y8b.requestTemptationView (SectionViewModel). The article paywall does not use it; that uses ppc.

Feed

  • MarketingPositionTeaser (TeaserType marketingPosition) is resolved by bna (anchor "com.kubusapp.component.marketingposition.ResolveMarketingPositionUseCaseImpl").

Other

  • LoginSeductionActivity in onboarding is gated by FEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREEN.
  • com.kubusapp.paywall.LinkSubscriptionDialogFragment is the subscription link dialog. Check when it appears.

Approach

  1. Force FEATURE_TEMPTATION_VIEWS and FEATURE_MARKETING_POSITION_TOP off via #17, which removes the toasters and the article top banner. Also force FEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREEN off, which skips the onboarding upsell.
  2. Drop MarketingPositionTeaser from the feed via #18.
  3. Filter the bf7 output (or the ypc matching) by position: keep the paywall positions listed above and drop the rest. Never touch reduced.
  4. Patch name suggestion: Hide subscription banners.

Done when

  • Build passes; patch applied on 9.21.1.
  • Device check (after asking), logged out and logged in:
    • no upsell banners or toasters in feed and articles;
    • a locked article still shows its paywall exactly as before.
  • Documented in docs/apps/gelderlander.md.

Midas Settings

  • Toggle: Verberg abonnementsbanners (hide_subscription_banners), category "Advertenties en promotie", default on. Same key as de Volkskrant.
  • Read at runtime in the position filter, the feed filter and the flag override. The temptation-view flag may need a restart.
  • The paywall gate is never affected, whatever the toggle says.
  • Needs #49 and #51.
Part of #16. Depends on #17 and #18. ## Feature description De Gelderlander shows subscription upsell banners ("temptation views", marketing positions) in several places: - in the feed; - above and below articles; - inline in articles; - as toasters; - as a login-upsell screen during onboarding. 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"`) - It has three load paths: `loadWithPiano` (j), `loadWithTemptation` (k) and `loadWithoutPaywall` (l). - Both template paths turn responses into `af7(View view, String position, boolean reduced, TemplateProvidedInterface)` via `bf7`: - `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). - If any `af7` is `reduced`, 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. - Paywall positions to **keep** (the set in `ypc`): `ARTICLE_REDUCED`, `ARTICLE_REDUCED_NO_INTRO`, `NO_POSITION`, `NO_POSITION_NO_INTRO`. - Banner positions to **drop**: `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 unobfuscated `com.persgroep.temptationsdk.data.model.Position`. - `ypc.a(List<i30>, List<String>)` matches `MarketingComponent` slots (`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". - Used by `jc7.requestTemptationView` (MainViewModel, rendered by `com.kubusapp.temptationviews.ToasterContainer`) and by `y8b.requestTemptationView` (SectionViewModel). The article paywall does not use it; that uses `ppc`. ### Feed - `MarketingPositionTeaser` (TeaserType `marketingPosition`) is resolved by `bna` (anchor `"com.kubusapp.component.marketingposition.ResolveMarketingPositionUseCaseImpl"`). ### Other - `LoginSeductionActivity` in onboarding is gated by `FEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREEN`. - `com.kubusapp.paywall.LinkSubscriptionDialogFragment` is the subscription link dialog. Check when it appears. ## Approach 1. Force `FEATURE_TEMPTATION_VIEWS` and `FEATURE_MARKETING_POSITION_TOP` off via #17, which removes the toasters and the article top banner. Also force `FEATURE_ONBOARDING_LOGIN_SEDUCTION_SCREEN` off, which skips the onboarding upsell. 2. Drop `MarketingPositionTeaser` from the feed via #18. 3. Filter the `bf7` output (or the `ypc` matching) by position: keep the paywall positions listed above and drop the rest. Never touch `reduced`. 4. Patch name suggestion: **Hide subscription banners**. ## Done when - [ ] Build passes; patch applied on 9.21.1. - [ ] Device check (after asking), logged out **and** logged in: - [ ] no upsell banners or toasters in feed and articles; - [ ] a locked article still shows its paywall exactly as before. - [ ] Documented in `docs/apps/gelderlander.md`. ## Midas Settings - Toggle: **Verberg abonnementsbanners** (`hide_subscription_banners`), category "Advertenties en promotie", default **on**. Same key as de Volkskrant. - Read at runtime in the position filter, the feed filter and the flag override. The temptation-view flag may need a restart. - The paywall gate is never affected, whatever the toggle says. - Needs #49 and #51.
midas closed this issue 2026-10-10 20:59:33 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#45
No description provided.