1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AdexperiencereportV1
# A site's Ad Experience Report summary on a single platform.
class PlatformSummary
include Google::Apis::Core::Hashable
# The site's Ad Experience Report status on this platform.
# Corresponds to the JSON property `betterAdsStatus`
# @return [String]
attr_accessor :better_ads_status
# The time at which [enforcement](https://support.google.com/webtools/answer/
# 7308033) against the site began or will begin on this platform. Not set when
# the filter_status is OFF.
# Corresponds to the JSON property `enforcementTime`
# @return [String]
attr_accessor :enforcement_time
# The site's [enforcement status](https://support.google.com/webtools/answer/
# 7308033) on this platform.
# Corresponds to the JSON property `filterStatus`
# @return [String]
attr_accessor :filter_status
# The time at which the site's status last changed on this platform.
# Corresponds to the JSON property `lastChangeTime`
# @return [String]
attr_accessor :last_change_time
# The site's regions on this platform. No longer populated, because there is no
# longer any semantic difference between sites in different regions.
# Corresponds to the JSON property `region`
# @return [Array<String>]
attr_accessor :region
# A link to the full Ad Experience Report for the site on this platform.. Not
# set in ViolatingSitesResponse. Note that you must complete the [Search Console
# verification process](https://support.google.com/webmasters/answer/9008080)
# for the site before you can access the full report.
# Corresponds to the JSON property `reportUrl`
# @return [String]
attr_accessor :report_url
# Whether the site is currently under review on this platform.
# Corresponds to the JSON property `underReview`
# @return [Boolean]
attr_accessor :under_review
alias_method :under_review?, :under_review
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@better_ads_status = args[:better_ads_status] if args.key?(:better_ads_status)
@enforcement_time = args[:enforcement_time] if args.key?(:enforcement_time)
@filter_status = args[:filter_status] if args.key?(:filter_status)
@last_change_time = args[:last_change_time] if args.key?(:last_change_time)
@region = args[:region] if args.key?(:region)
@report_url = args[:report_url] if args.key?(:report_url)
@under_review = args[:under_review] if args.key?(:under_review)
end
end
# Response message for GetSiteSummary.
class SiteSummaryResponse
include Google::Apis::Core::Hashable
# A site's Ad Experience Report summary on a single platform.
# Corresponds to the JSON property `desktopSummary`
# @return [Google::Apis::AdexperiencereportV1::PlatformSummary]
attr_accessor :desktop_summary
# A site's Ad Experience Report summary on a single platform.
# Corresponds to the JSON property `mobileSummary`
# @return [Google::Apis::AdexperiencereportV1::PlatformSummary]
attr_accessor :mobile_summary
# The name of the reviewed site, e.g. `google.com`.
# Corresponds to the JSON property `reviewedSite`
# @return [String]
attr_accessor :reviewed_site
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@desktop_summary = args[:desktop_summary] if args.key?(:desktop_summary)
@mobile_summary = args[:mobile_summary] if args.key?(:mobile_summary)
@reviewed_site = args[:reviewed_site] if args.key?(:reviewed_site)
end
end
# Response message for ListViolatingSites.
class ViolatingSitesResponse
include Google::Apis::Core::Hashable
# The list of violating sites.
# Corresponds to the JSON property `violatingSites`
# @return [Array<Google::Apis::AdexperiencereportV1::SiteSummaryResponse>]
attr_accessor :violating_sites
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@violating_sites = args[:violating_sites] if args.key?(:violating_sites)
end
end
end
end
end
|