I'm trying to connect my custom domain to Google Tag Manager container. I followed every instruction from the docs, but I'm still getting the 404 error, even after publishing all the changes and waiting 24 hours.
This is what I see after clicking on a PREVIEW button:
On the other hand, when I replace my custom domain with original appspot.com domain in the address bar, it works OK. I see the debug page with no problems.
I checked the DNS records with Google Dig tool, everything is set correctly - 4 AAAA and 4 A records pointing to addresses specified in App Engine domain settings.
I even created a second subdomain only with CNAME record and alias to see if that might work, but to no avail:

Is there anything else I could try here?




OK, so here's what I did wrong and only found out it by accident.
I have two Google Cloud accounts. I'd always choose my work account and go to "Custom Domain" section with it. But for some reason, when I clicked "Add A Custom Domain" button, Google Cloud account would ALWAYS switch to my personal one. And every time I was connecting a domain to an empty project, hence 404 error.
So I just logged out of my personal account and used my work account to add domain successfully.