Skip to content

Note that CloudX banner refresh can also be disabled server-side - #10

Merged
antonurankar-moloco merged 1 commit into
mainfrom
tomi-first-look-refresh-note
Sep 8, 2026
Merged

antonurankar-moloco merged 1 commit into
mainfrom
tomi-first-look-refresh-note

Conversation

@antonurankar-moloco

@antonurankar-moloco antonurankar-moloco commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

The First Look banner controller called CloudXSdk.StopBannerAutoRefresh and explained the ordering against CreateBanner, but read as if that call were the only way to keep the SDK's refresh timer out of the pass cycle.

It is not. A banner or MREC placement with Disable auto-refresh ticked in the CloudX dashboard is emitted to the SDK as bannerAutoRefreshDisabled: true in the init response, and neither platform starts a refresh timer for such a unit (Android AdViewManager skips startRefreshLoop(); iOS CLXPublisherAdView initialises autoRefreshEnabled to NO).

This adds that to the comment above the call, and says why the call stays regardless: it makes the cycle independent of how the ad unit happens to be configured, and it is a no-op on a unit that already has refresh off.

Comment only — no behaviour change.

StopBannerAutoRefresh was presented as the only way to keep the SDK's
refresh timer out of the pass cycle. A banner or MREC ad unit whose
refresh rate is 0 in the CloudX dashboard also reaches the SDK as
refresh-disabled at init, so say so, and say why the call stays: it makes
the cycle independent of how the unit happens to be configured.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is comment-only, consistent with surrounding documentation style, and does not affect runtime behavior.

Pull request overview

Updates the inline documentation in FirstLookBannerController.CloudXCreateAndLoad() to clarify that CloudX banner auto-refresh can be disabled not only via CloudXSdk.StopBannerAutoRefresh(...), but also server-side via ad unit configuration (refresh rate = 0), while explaining why the explicit SDK call is still kept to make the lifecycle deterministic.

Changes:

  • Expanded the comment above CloudXSdk.StopBannerAutoRefresh(_cloudXAdUnitId); to mention server-side refresh-disable behavior.
  • Documented why the explicit stop call remains valuable (configuration-independent, no-op when already disabled).
File summaries
File Description
Assets/Scripts/FirstLook/FirstLookBannerController.cs Comment-only clarification about CloudX banner refresh being disable-able via dashboard config as well as via SDK call.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@antonurankar-moloco
antonurankar-moloco merged commit 329f7c8 into main Sep 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants