class Google::Apis::DfareportingV3_4::AdBlockingConfiguration

Campaign ad blocking settings.

Attributes

click_through_url[RW]

Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. Corresponds to the JSON property `clickThroughUrl` @return [String]

creative_bundle_id[RW]

ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. Corresponds to the JSON property `creativeBundleId` @return [Fixnum]

enabled[RW]

Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. Corresponds to the JSON property `enabled` @return [Boolean]

enabled?[RW]

Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. Corresponds to the JSON property `enabled` @return [Boolean]

override_click_through_url[RW]

Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. Corresponds to the JSON property `overrideClickThroughUrl` @return [Boolean]

override_click_through_url?[RW]

Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. Corresponds to the JSON property `overrideClickThroughUrl` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_4/classes.rb, line 887
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_4/classes.rb, line 892
def update!(**args)
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
  @creative_bundle_id = args[:creative_bundle_id] if args.key?(:creative_bundle_id)
  @enabled = args[:enabled] if args.key?(:enabled)
  @override_click_through_url = args[:override_click_through_url] if args.key?(:override_click_through_url)
end