<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: hack game</title>
    <description>The latest articles on DEV Community by hack game (@hack_game_5c3a8e441f8549b).</description>
    <link>https://dev.to/hack_game_5c3a8e441f8549b</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2536350%2F04477ebe-1b11-4437-a96e-694a65fe25ff.jpg</url>
      <title>DEV Community: hack game</title>
      <link>https://dev.to/hack_game_5c3a8e441f8549b</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hack_game_5c3a8e441f8549b"/>
    <language>en</language>
    <item>
      <title>A practical way to validate Google Ads RSA headlines before publishing</title>
      <dc:creator>hack game</dc:creator>
      <pubDate>Sat, 31 Oct 2026 10:08:39 +0000</pubDate>
      <link>https://dev.to/hack_game_5c3a8e441f8549b/a-practical-way-to-validate-google-ads-rsa-headlines-before-publishing-1bp6</link>
      <guid>https://dev.to/hack_game_5c3a8e441f8549b/a-practical-way-to-validate-google-ads-rsa-headlines-before-publishing-1bp6</guid>
      <description>&lt;p&gt;Google Ads responsive search ads ask for multiple headlines and descriptions that may display in different orders. A small-looking change in copy can push a field over its limit.&lt;/p&gt;

&lt;p&gt;The relevant search-ad reference limits are separate:&lt;/p&gt;

&lt;p&gt;Headline: 30 characters each; 3–15 assets.&lt;br&gt;
Description: 90 characters each; 2–4 assets.&lt;br&gt;
Display path: 15 characters for each optional path field.&lt;br&gt;
The tricky part: double-width Chinese, Japanese and Korean characters count as two. A plain visible-character count may therefore be too optimistic for bilingual copy.&lt;/p&gt;

&lt;p&gt;My workflow is to write at least three independent headlines, two distinct descriptions, validate every field, then review one illustrative combination. The final Google Ads editor remains the source of truth; a preview cannot guarantee which assets Google will show.&lt;/p&gt;

&lt;p&gt;I put together a free in-browser workspace that checks multiple headlines and descriptions and lets you copy the draft into Google Ads: &lt;a href="https://postchars.com/twitter-character-counter/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=postchars_launch&amp;amp;utm_content=twitter_x_character_counter" rel="noopener noreferrer"&gt;https://postchars.com/twitter-character-counter/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=postchars_launch&amp;amp;utm_content=twitter_x_character_counter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The specifications are documented here: &lt;a href="https://support.google.com/google-ads/answer/7684791" rel="noopener noreferrer"&gt;https://support.google.com/google-ads/answer/7684791&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would a paste-from-CSV feature or a shareable text-only checklist be more useful?&lt;/p&gt;

</description>
      <category>marketing</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why a Twitter/X character counter can't just use JavaScript .length</title>
      <dc:creator>hack game</dc:creator>
      <pubDate>Sat, 31 Oct 2026 10:07:30 +0000</pubDate>
      <link>https://dev.to/hack_game_5c3a8e441f8549b/why-a-twitterx-character-counter-cant-just-use-javascript-length-4da9</link>
      <guid>https://dev.to/hack_game_5c3a8e441f8549b/why-a-twitterx-character-counter-cant-just-use-javascript-length-4da9</guid>
      <description>&lt;p&gt;When you're writing for X, one character is not always one counted unit. JavaScript strings use UTF-16; visual glyphs can span several code points; and X's public weighted-character rules treat many CJK characters and emoji differently from Latin text.&lt;/p&gt;

&lt;p&gt;Three examples make the difference clear:&lt;/p&gt;

&lt;p&gt;"Hello world" is 11 weighted characters.&lt;br&gt;
"中文" has 2 visible glyphs but a weighted length of 4.&lt;br&gt;
"&lt;a href="https://example.com" rel="noopener noreferrer"&gt;https://example.com&lt;/a&gt;" typically has a fixed recognized URL weight of 23, not its literal text length.&lt;br&gt;
Using &lt;code&gt;str.length&lt;/code&gt; on the whole message misses all of this. Twitter's open-source &lt;code&gt;twitter-text&lt;/code&gt; parser is a better reference for standard posts:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;js import twitterText from 'twitter-text'; console.log(twitterText.parseTweet('中文 https://example.com').weightedLength);&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;It is still a reference parser, not a live validation of every current X account or premium long-post feature. I built a small browser-only counter to compare visible length, URL count, emoji count and X's weighted length, with a plain post preview. Try it if you need to check a draft: &lt;a href="https://postchars.com/twitter-character-counter/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=postchars_launch&amp;amp;utm_content=twitter_x_character_counter" rel="noopener noreferrer"&gt;https://postchars.com/twitter-character-counter/?utm_source=devto&amp;amp;utm_medium=referral&amp;amp;utm_campaign=postchars_launch&amp;amp;utm_content=twitter_x_character_counter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full background and examples: &lt;a href="https://postchars.com/guides/twitter-urls-emoji-counting/" rel="noopener noreferrer"&gt;https://postchars.com/guides/twitter-urls-emoji-counting/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What edge cases have you seen with emoji sequences or internationalized URLs?&lt;/p&gt;

&lt;p&gt;Editorial notes: Explain the concept first, link once or twice only. Do not pretend to be an official X source. Review DEV policy; optionally set &lt;code&gt;canonical_url&lt;/code&gt; to the on-site guide when content is substantially duplicated.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
