没有不值得去解决的问题,也没有不值得去学习的技术!

A Tour of Go Course Page Ad ABCD Organic Traffic Experiment: From 620px to 336, 468, 728, and Responsive

Figure 1: The A, B, C, D four display ad units created for the course page in AdSense

作者:

在

From “Can the ad display?” to “How wide should the ad slot actually be?”

In the previous phase, I added manual AdSense display ads to the course pages of A Tour of Go.

The overall ad structure is now basically stable:

  • AdSense Auto Ads;
  • Manual display ads on course pages;
  • Automatic mount / unmount during Angular SPA page transitions;
  • Local AdSense layout protection;
  • No longer using a global DOM observer.

Now that the basic issues are mostly resolved, the new question becomes:

How much available width should this manual ad slot on the course page provide to Responsive AdSense?

The ABCD natural traffic experiment starting today is not simply to “try out different sizes.”

The real reason is that after a previous width adjustment, I observed a very obvious change in ad displays.

The original ad slot had a maximum width of 620px

Previously, although the manual ad on the course page used Responsive AdSense, the frontend ad container was set to:

CSS
max-width: 620px;

At that time, I repeatedly tested the course pages on my own computer, and ads actually appeared quite frequently.

What impressed me most was that smaller, nearly square ads were often displayed.

After clicking “Next” to switch courses, it was usually very easy to see ads again on the new page.

Based on my manual testing experience at the time:

Over 90% of the course pages seemed to show actually filled ads.

This “over 90%” is not the official Fill rate from the AdSense dashboard; it is just my very intuitive feeling while continuously browsing the course pages.

But at least one thing was very obvious:

Back then, ads appeared very easily.

Why I later removed max-width: 620px

Once ads could appear frequently, I started noticing another issue.

The desktop course page of A Tour of Go is itself quite wide.

Especially in my desktop environment, there was still plenty of usable horizontal space beyond the course text and code editor.

If AdSense always displayed a relatively small square ad in the middle, it gave me two impressions.

First, the page still had plenty of horizontal space, but the actual ad only occupied a very small portion of it, which seemed somewhat wasteful.

Second, I also started to consider:

If AdSense were allowed to display wider, larger rectangular ads, would there be a chance to get a higher value per ad?

So later I removed the original:

CSS
max-width: 620px;

I no longer artificially limited the maximum width of the course ad container.

The reasoning at the time was actually very simple:

Since the page had enough space, I would leave the size choice to Responsive AdSense as much as possible, letting it select appropriate ads based on the actual page space, device, and ad inventory.

Logically, this seemed like a very reasonable direction.

After removing the width limit, ads rarely appeared

But after the actual modification, I quickly found that the result was not as ideal as imagined.

In my multiple rounds of manual production testing, the frequency at which the course page manual ad actually appeared dropped significantly.

Previously, when using max-width: 620px, my feeling was basically:

Clicking next, it was easy to continue seeing ads.

After removing the maximum width limit, while continuously switching course pages, the perceived probability of actually seeing an ad was less than 5%.

The contrast before and after was huge.

It can be roughly described as:

Plaintext
Previously:
Responsive + max-width 620px
Manual testing perception: Ad appearance probability > 90%

Later:
Responsive + unrestricted max-width
Manual testing perception: Ad appearance probability < 5%

However, I must emphasize here:

This is not official statistical data.

This is just my perception formed by accessing the production pages myself and continuously clicking next.

My own test traffic is very small, and the publisher repeatedly accessing ads cannot directly equate to real natural traffic.

So I cannot directly conclude from this phenomenon that:

Plaintext
Removing max-width: 620px
=
AdSense fill rate dropped from 90% to 5%

Such a conclusion is not rigorous.

But the before-and-after difference was large enough to make me seriously suspect:

The problem might not just be screen size, but rather the size space that the current manual ad slot can provide to Responsive AdSense.

1920×1080 users are not a minority

My own computer resolution is:

Plaintext
1920 × 1080

According to existing traffic statistics, 1920×1080 accounts for about 40%.

This at least shows:

Users like me in a wider desktop environment are not a very small minority.

Of course, it cannot be simply deduced that:

Plaintext
1920×1080 accounts for 40%
=
40% of users will encounter exactly the same ad situation as me

Even if the screen resolution is the same, the actual environment may still differ, for example:

  • The browser window might not be maximized;
  • Viewport widths vary;
  • Browser zoom levels might differ;
  • The actual usable area of the page differs;
  • Inventory and bidding environments during ad requests also differ.

So screen resolution can only serve as a reference.

But at least it makes me think:

Under widescreen desktop environments, whether widening the course ad slot actually decreases ad display opportunities is a question worth verifying seriously.

Larger ads might be more valuable, but fewer displays might not mean more earnings

My previous removal of the 620px limit also had a very practical consideration:

If larger rectangular ads could be displayed, would it be possible to get a higher value per ad?

There is nothing wrong with this idea itself.

Final ad revenue can be very roughly understood as:

Plaintext
Total revenue
≈
Effective ad impressions
×
Average value per impression

Assuming the average value of larger ads is indeed higher, if the actual number of times the ad is displayed drops significantly, the final total revenue may still decline.

For example:

Even if the value per ad increases by tens of percentage points, it may not compensate for a drop in impression volume by an order of magnitude.

The changes I observed during manual testing were already large enough that I could no longer ignore this point.

So the question that really needs answering now is no longer:

“Are larger ads more expensive?”

But rather:

“How do different ad slot widths jointly affect impressions, RPM, and final revenue in real natural traffic?”

Why not just restore the original 620px

Since the manual testing experience was noticeably better previously with max-width: 620px, the simplest handling approach would of course be to directly restore:

CSS
max-width: 620px;

But I ultimately did not do this.

Because doing so would still be making decisions based on my own limited testing.

Even if ads appeared in large quantities again after restoring 620px, I still would not know:

  • Whether 620px is the optimal width;
  • Whether a smaller ad slot might have more fillable inventory;
  • Whether a medium width could strike a better balance between ad volume and per-ad value;
  • Whether wider ads, despite fewer impressions, yield a higher RPM;
  • Whether unrestricted Responsive truly performs as poorly in real natural traffic as it did in my manual testing.

So this time I did not simply:

Plaintext
Remove 620px
→ Found the results poor
→ Restore 620px

Instead, I decided to turn this issue into a genuine round of natural traffic experimentation.

Setting up A, B, C, D four independent ad units

This time, I kept the current “unrestricted max-width” Responsive ad as the D control group, while adding three new ad units: A, B, and C.

The four groups are:

  • A: 336
  • B: 468
  • C: 728
  • D: Responsive, unrestricted max-width

It should be specifically noted that:

A, B, and C are not fixed-size AdSense ads.

All four ad units themselves still use Responsive.

The only difference is that the frontend limits the maximum available width of the ad container.

The specific configurations are:

Plaintext
A:Responsive + max-width 336px
B:Responsive + max-width 468px
C:Responsive + max-width 728px
D:Responsive + unrestricted

In other words, what is really being tested this time is not:

Plaintext
Fixed-size ads
vs
Responsive ads

But rather:

Using the same Responsive AdSense, what differences will there be in real performance when the ad slot is restricted to 336px, 468px, 728px, and unrestricted width respectively.

The original 620px happens to fall right between 468 and 728.

So the first round of the experiment widens the range a bit, to see whether there is a clear trend in various metrics as the available ad width increases.

If future real data shows that the optimal zone happens to lie between 468 and 728, then a second round testing widths like 600px and 620px in finer detail will be much more evidence-based than just guessing a number right now.

Figure 1: The A, B, C, D four display ad units created for the course page in AdSense
Figure 1: The A, B, C, D four display ad units created for the course page in AdSense

From the AdSense dashboard, you can see the current four independent ad units:

  • go-dev Tour 课程页展示广告 A 336
  • go-dev Tour 课程页展示广告 B 468
  • go-dev Tour 课程页展示广告 C 728
  • go-dev Tour 课程页展示广告 D Responsive

This design also has a very practical benefit.

Later on, there is no need to set up a separate ad revenue tracking system.

Directly through AdSense’s Ad unit reports, the data for groups A, B, C, and D can be observed separately.

The four groups of natural traffic each account for 25%

When the frontend creates the course page ad for the first time, it randomly selects one experimental group from A, B, C, and D.

The probabilities for the four groups are identical:

Plaintext
A:25%
B:25%
C:25%
D:25%

The actual ad unit mappings are:

Plaintext
A → 3362554728 → max-width 336px
B → 1260537939 → max-width 468px
C → 4220340824 → max-width 728px
D → 4728596962 → unrestricted Responsive

All four groups maintain:

Plaintext
data-ad-format="auto"
data-full-width-responsive="true"

So no fixed-size ads were used for this round of experimentation.

Figure 2: ABCD ad units, container max-width, and the corresponding implementation commit
Figure 2: ABCD ad units, container max-width, and the corresponding implementation commit

This implementation was ultimately committed as:

Plaintext
b6551ac feat: Add course ad ABCD natural traffic experiment

The entire ABCD experiment simply adds grouping capabilities to the existing shared course ad implementation.

The previously verified ad architecture was not redesigned:

  • Auto Ads;
  • Angular SPA mount / unmount;
  • Local layout protection;
  • No global DOM observer.

No re-randomization after SPA page transitions

The course pages of A Tour of Go also have a rather special issue.

It is essentially an Angular SPA.

After clicking “Next”, it does not reload the full HTML like a traditional website, but instead switches the course content within the current application.

If it re-randomized every time you entered the next page, a single user’s learning session might turn into:

Plaintext
Page 1: A
Page 2: D
Page 3: B
Page 4: A

Although this might still approach a 25% average distribution overall, the experimental conditions would constantly change during a single visit, making the subsequent data harder to interpret.

Therefore, this experiment is not “re-randomize every page”, but rather:

A single visit in the same browser tab maintains the same experimental group.

After the experimental group is selected for the first time, it is written to:

Plaintext
sessionStorage

The key used is:

Plaintext
goDevCourseAdExperimentGroup

For example, if C is obtained the first time, then subsequent clicks within the same tab:

Plaintext
welcome/1
→ welcome/2
→ welcome/3
→ ...

will continue to use C.

If the current environment cannot use sessionStorage, there is also a current window memory fallback.

This allows for natural random grouping while ensuring stable experimental conditions within a single SPA session.

Actual verification in the production environment

After the ABCD implementation went live, I finally conducted a lightweight verification in a real production browser.

The Chinese site was randomly assigned to:

Plaintext
C

Corresponding to:

Plaintext
slot = 4220340824
max-width = 728px

First, I entered:

Plaintext
/tour/welcome/1

Recorded the current experimental group, then clicked “Next” only once to enter:

Plaintext
/tour/welcome/2

For easy comparison, I organized the results before and after the switch into the same Console table.

Figure 3: zh-CN still maintains group C after switching from welcome/1 to welcome/2
Figure 3: zh-CN still maintains group C after switching from welcome/1 to welcome/2

The actual results were:

Plaintext
welcome/1 → C → 4220340824 → max-728
welcome/2 → C → 4220340824 → max-728

It can be seen that:

  • The page has changed from welcome/1 to welcome/2;
  • The group is still C;
  • The AdSense slot has not changed;
  • data-ad-format is still auto;
  • The Responsive configuration has not changed;
  • The width class is still max-728.

In other words:

After switching courses in the Angular SPA, the experimental group was not re-randomized.

And quite coincidentally, the page actually filled an ad when taking this screenshot.

However, whether a filled ad is actually seen is not a hard requirement for this verification.

AdSense requests might inherently result in:

Plaintext
filled

or also:

Plaintext
unfilled

What really needs to be confirmed here is:

  • Production is running the new ABCD logic;
  • The experimental groups correspond correctly to the AdSense slots;
  • The experimental group remains stable after SPA page transitions;
  • The next page still works normally;
  • There are no obvious anomalies in the page layout.

These conditions have been met.

ja-JP is also running the same experiment

Subsequently, I performed the same lightweight verification on the Japanese site.

This time, ja-JP was randomly assigned to:

Plaintext
A

The actual results were:

Plaintext
welcome/1 → A → 3362554728 → max-336
welcome/2 → A → 3362554728 → max-336

This means that both production locales are now running this ABCD experiment.

What is more important to me here is not that one happened to draw A and the other C.

Rather, both sides prove that:

Real production pages are grouping as expected, and there is no re-randomization after SPA next page transitions.

No artificially forcing all four groups for acceptance

During production acceptance, I did not repeatedly do the following just to prove that A, B, C, and D could all appear:

  • Open new tabs;
  • Delete sessionStorage;
  • Force refresh;
  • Repeatedly enter the course pages.

There was no need to do this.

The logic for the four groups is already covered by automated tests.

The real production browser acceptance only confirms that:

The production environment is actually running this tested implementation.

The actual results so far are:

Plaintext
zh-CN → C
ja-JP → A

And the groups remained stable on both sides after SPA page transitions.

This is sufficient to complete the production-level confirmation.

More importantly, this is a round of ad experimentation.

If I continued to refresh pages myself and generate a large number of ad requests, my own testing behavior would instead contaminate the natural traffic that I truly want to observe next.

So from this point on, I will stop actively refreshing experimental groups.

What really needs to be looked at next is the AdSense natural traffic data

The technical implementation is basically finished here.

What will be truly valuable later is waiting for the four ad units to gradually accumulate natural traffic.

The main focus will be on:

  • Impressions;
  • Impression RPM;
  • Estimated earnings;
  • Actual ad display opportunities;
  • Long-term performance of different ad units;
  • Whether the data gradually forms a stable trend as the sample size grows.

What is most noteworthy here is actually not any single metric.

Suppose in the future it appears that:

Plaintext
A has many impressions, but a lower RPM

while:

Plaintext
C has fewer impressions, but a higher RPM

Then what really needs to be compared is still the final revenue, rather than just looking at which group’s ads appear more easily.

Group D is also very important.

It effectively retains the current unrestricted Responsive approach as a control.

If future natural traffic data indeed proves that:

D’s impression volume is significantly lower than A/B/C, while the higher per-impression value is insufficient to compensate for the impression loss,

then I can be fairly confident that:

The issue found in previous manual testing might indeed be related to the available width of the ad slot.

Conversely, if D’s performance in real natural traffic does not noticeably degrade, it would also show that my own manual testing cannot represent real users.

Either result would be more valuable than simply restoring 620px based on a feeling.

No conclusions will be drawn based on a day or two of data for now

Currently, the natural traffic scale of A Tour of Go itself is not particularly large.

Now it has been further divided equally into four groups:

Plaintext
25% / 25% / 25% / 25%

So each group will accumulate samples more slowly.

In the first few days, it is very likely that one ad unit might only have a few impressions, while another temporarily has more.

There is no need to immediately judge at this stage:

Plaintext
336 is the best

or:

Plaintext
728 has the highest RPM, so 728 wins

When the data is too scarce, a few ad requests can cause very large percentage fluctuations.

I prefer to wait until all four groups have accumulated a certain scale of real impressions before comprehensively observing:

  • Impression volume;
  • RPM;
  • Earnings;
  • Whether the same trend is maintained as time goes on.

If the final data shows that the optimal zone might fall:

Plaintext
468 ~ 728px

in between, then later we could even consider a second round of experimentation, doing finer comparisons around the original:

Plaintext
620px

Testing 600, 620, or other values then would be much more evidence-based than just directly restoring 620px now.

Finally

This ABCD experiment did not start out of nowhere.

It actually came from a very specific process of change:

Plaintext
Originally:
Responsive + max-width 620px
↓
Smaller square ads frequently appeared in manual testing
↓
Ads appeared very frequently
↓
Felt desktop horizontal space was not fully utilized
↓
Hoped to get wider, potentially higher-value rectangular ads
↓
Removed max-width 620px
↓
Actual ad appearance frequency in manual testing noticeably dropped
↓
But own testing cannot serve as an official conclusion
↓
Did not directly restore 620px
↓
Set up ABCD natural traffic experiment

The current official configurations for the four groups are:

Plaintext
A:Responsive + max-width 336px
B:Responsive + max-width 468px
C:Responsive + max-width 728px
D:Responsive + unrestricted

Natural traffic:

Plaintext
25% / 25% / 25% / 25%

Both the Chinese and Japanese sites are now officially running this experiment.

The question really wanting to be answered this time is not:

Which ad looks the largest.

Or even just:

Which ad is easiest to fill.

But rather:

Under the special layout of the course page, what available width for Responsive ads can ultimately strike a better balance among impression volume, ad value, and user experience.

For now, I will no longer modify the ad width, nor will I artificially generate test requests.

The remaining questions are left to real natural traffic to answer.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系