I pointed a new custom domain to a Google App Engine Standard Environment project and edited the DNS records per Google\'s instructions, and it seems to be redirected proper
Igor Kromin's article outlined the exact same issue that I was having.
I too was / am using CloudFLare's free solution. For some reason Google App Engine didn't immediately recognize the TXT record, so I went ahead and did the alternative CNAME based mapping. Apparently, when you do this, the Cloudflare CNAME flattening kicks in, and will do something to the records. When we try to verify domain ownership, it works though. But later, when the APP Engine's Google managed auto-renewing agent looks at the records, somehow they don't match up!
Solution is to simply keep trying to verify the TXT record which Cloudflare doesn't modify, and then it works out.
Tip: If you're trying to verify a subdomain to app engine like api.yourdomain.com, your TXT record needs to be with the api
domain name, not at @
like normal.