Google Adwords-尽管URL处于活动状态,但仍收到“目标不起作用”错误

时间:2018-10-11 14:40:06

标签: .htaccess url-rewriting google-adwords

我最近开始在Gogle Adwords中收到错误消息,提示它找不到目的地,但我仔细检查了URL。

我还尝试了URL的变体,例如带或不带SSL(http,https),带或不带反斜杠(example.com,example.com /)以及带或不带'www'的URL。

.htaccess文件中也有一些重写规则:

public byte[] FirmaFileBouncy(String NomeFile, X509Certificate2 cert, ref string RisFirma)
        {
            String NomeFirma = NomeFile + ".p7m";

            try
            {
                SHA256Managed hashSha256 = new SHA256Managed();
                byte[] certHash = hashSha256.ComputeHash(cert.RawData);

                EssCertIDv2 essCert1 = new EssCertIDv2(new Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier("2.16.840.1.101.3.4.2.1"), certHash);
                SigningCertificateV2 scv2 = new SigningCertificateV2(new EssCertIDv2[] { essCert1 });

                Org.BouncyCastle.Asn1.Cms.Attribute CertHAttribute = new Org.BouncyCastle.Asn1.Cms.Attribute(Org.BouncyCastle.Asn1.Pkcs.PkcsObjectIdentifiers.IdAASigningCertificateV2, new DerSet(scv2));
                Asn1EncodableVector v = new Asn1EncodableVector();
                v.Add(CertHAttribute);

                Org.BouncyCastle.Asn1.Cms.AttributeTable AT = new Org.BouncyCastle.Asn1.Cms.AttributeTable(v);
                CmsSignedDataGenWithRsaCsp cms = new CmsSignedDataGenWithRsaCsp();

                dynamic rsa = (RSACryptoServiceProvider)cert.PrivateKey;
                Org.BouncyCastle.X509.X509Certificate certCopy = DotNetUtilities.FromX509Certificate(cert);
                cms.MyAddSigner( rsa, certCopy,  "1.2.840.113549.1.1.1", "2.16.840.1.101.3.4.2.1", AT, null);

                ArrayList certList = new ArrayList();
                certList.Add(certCopy);

                Org.BouncyCastle.X509.Store.X509CollectionStoreParameters PP = new Org.BouncyCastle.X509.Store.X509CollectionStoreParameters(certList);
                Org.BouncyCastle.X509.Store.IX509Store st1 = Org.BouncyCastle.X509.Store.X509StoreFactory.Create("CERTIFICATE/COLLECTION", PP);

                cms.AddCertificates(st1);

                //mi ricavo il file da firmare
                FileInfo File__1 = new FileInfo(NomeFile);
                CmsProcessableFile file__2 = new CmsProcessableFile(File__1);
                CmsSignedData Firmato = cms.Generate(file__2, true);
                byte[] Encoded = Firmato.GetEncoded();

                File.WriteAllBytes(NomeFirma, Encoded);

                RisFirma = "true";

                return Encoded;

            } catch (Exception ex)  {

                RisFirma = ex.ToString();
                return null;
            }

        }

因此RewriteRule ^category/([0-9a-zA-Z-]+)/?$ category.php?id=$1 [L,NC,QSA] 之类的东西变成https://www.example.com/category.php?id=shirts

我尝试了使用GET变量以及重写的URL的URL,但这两个都不起作用。

我已经在不同的设备,浏览器和网络上测试了有问题的URL,它们看起来不错。

我一直在尝试研究此问题,但没有成功,尽管在上个月(https://www.en.advertisercommunity.com/t5/Ad-Approval-Policy/Destination-not-Working/td-p/1206844)上似乎有更多关于类似事情发生的报道。

自从我收到有关打开并行跟踪的消息以来,我还没有投放任何广告,因此我认为这可能是个问题,但我敢肯定,我已经为此设置好了,并且不需要(根据Google),直到本月30日为止。

以前的所有广告似乎都可以使用,但是现在添加一个新的广告或编辑一个以前的广告会出现此错误。

0 个答案:

没有答案