Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Google.Ads.GoogleAds.V10.Enums.TrackingCodeTypeEnum.Types.TrackingCodeType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (PageFormat != global::Google.Ads.GoogleAds.V10.Enums.TrackingCodePageFormatEnum.Types.TrackingCodePageFormat.Unspecified)
            {
                hash ^= PageFormat.GetHashCode();
            }
            if (HasGlobalSiteTag)
            {
                hash ^= GlobalSiteTag.GetHashCode();
            }
            if (HasEventSnippet)
            {
                hash ^= EventSnippet.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (PageFormat != 0)
            {
                hash ^= PageFormat.GetHashCode();
            }
            if (globalSiteTag_ != null)
            {
                hash ^= GlobalSiteTag.GetHashCode();
            }
            if (eventSnippet_ != null)
            {
                hash ^= EventSnippet.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <summary>Snippet for GetGlobalSiteTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetGlobalSiteTagResourceNames()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     GlobalSiteTagName name = GlobalSiteTagName.FromProperty("[PROPERTY]");
     // Make the request
     GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(name);
 }
Exemplo n.º 4
0
 /// <summary>Snippet for GetGlobalSiteTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetGlobalSiteTag()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     string name = "properties/[PROPERTY]/globalSiteTag";
     // Make the request
     GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(name);
 }
Exemplo n.º 5
0
        /// <summary>Snippet for GetGlobalSiteTagAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetGlobalSiteTagResourceNamesAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

            // Initialize request argument(s)
            GlobalSiteTagName name = GlobalSiteTagName.FromProperty("[PROPERTY]");
            // Make the request
            GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
        }
Exemplo n.º 6
0
        /// <summary>Snippet for GetGlobalSiteTagAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetGlobalSiteTagAsync()
        {
            // Create client
            AnalyticsAdminServiceClient analyticsAdminServiceClient = await AnalyticsAdminServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "properties/[PROPERTY]/globalSiteTag";
            // Make the request
            GlobalSiteTag response = await analyticsAdminServiceClient.GetGlobalSiteTagAsync(name);
        }
Exemplo n.º 7
0
 /// <summary>Snippet for GetGlobalSiteTag</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetGlobalSiteTagRequestObject()
 {
     // Create client
     AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.Create();
     // Initialize request argument(s)
     GetGlobalSiteTagRequest request = new GetGlobalSiteTagRequest
     {
         GlobalSiteTagName = GlobalSiteTagName.FromProperty("[PROPERTY]"),
     };
     // Make the request
     GlobalSiteTag response = analyticsAdminServiceClient.GetGlobalSiteTag(request);
 }