Class: Google::Apis::AuthorizedbuyersmarketplaceV1alpha::PlacementTargeting

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

Overview

Represents targeting about where the ads can appear, for example, certain sites or mobile applications. Different placement targeting types will be logically OR'ed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlacementTargeting

Returns a new instance of PlacementTargeting.



2081
2082
2083
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2081

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

Instance Attribute Details

#mobile_application_targetingGoogle::Apis::AuthorizedbuyersmarketplaceV1alpha::MobileApplicationTargeting

Mobile application targeting settings. Corresponds to the JSON property mobileApplicationTargeting



2072
2073
2074
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2072

def mobile_application_targeting
  @mobile_application_targeting
end

#uri_targetingGoogle::Apis::AuthorizedbuyersmarketplaceV1alpha::UriTargeting

Represents a list of targeted and excluded URLs (for example, google.com). For Private Auction Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn't apply. Corresponds to the JSON property uriTargeting



2079
2080
2081
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2079

def uri_targeting
  @uri_targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2086
2087
2088
2089
# File 'lib/google/apis/authorizedbuyersmarketplace_v1alpha/classes.rb', line 2086

def update!(**args)
  @mobile_application_targeting = args[:mobile_application_targeting] if args.key?(:mobile_application_targeting)
  @uri_targeting = args[:uri_targeting] if args.key?(:uri_targeting)
end