Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonWebpageInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

Represents a criterion for targeting webpages of an advertiser's website.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonWebpageInfo

Returns a new instance of GoogleAdsSearchads360V0CommonWebpageInfo.



1425
1426
1427
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1425

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#conditionsArray<Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonWebpageConditionInfo>

Conditions, or logical expressions, for webpage targeting. The list of webpage targeting conditions are and-ed together when evaluated for targeting. An empty list of conditions indicates all pages of the campaign's website are targeted. This field is required for CREATE operations and is prohibited on UPDATE operations. Corresponds to the JSON property conditions



1407
1408
1409
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1407

def conditions
  @conditions
end

#coverage_percentageFloat

Website criteria coverage percentage. This is the computed percentage of website coverage based on the website target, negative website target and negative keywords in the ad group and campaign. For instance, when coverage returns as 1, it indicates it has 100% coverage. This field is read-only. Corresponds to the JSON property coveragePercentage

Returns:

  • (Float)


1415
1416
1417
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1415

def coverage_percentage
  @coverage_percentage
end

#criterion_nameString

The name of the criterion that is defined by this parameter. The name value will be used for identifying, sorting and filtering criteria with this type of parameters. This field is required for CREATE operations and is prohibited on UPDATE operations. Corresponds to the JSON property criterionName

Returns:

  • (String)


1423
1424
1425
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1423

def criterion_name
  @criterion_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1430
1431
1432
1433
1434
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1430

def update!(**args)
  @conditions = args[:conditions] if args.key?(:conditions)
  @coverage_percentage = args[:coverage_percentage] if args.key?(:coverage_percentage)
  @criterion_name = args[:criterion_name] if args.key?(:criterion_name)
end