Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonConsent

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

Overview

Consent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonConsent

Returns a new instance of GoogleAdsSearchads360V23CommonConsent.



2818
2819
2820
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2818

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

Instance Attribute Details

#ad_personalizationString

This represents consent for ad personalization. This can only be set for OfflineUserDataJobService and UserDataService. Corresponds to the JSON property adPersonalization

Returns:

  • (String)


2811
2812
2813
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2811

def ad_personalization
  @ad_personalization
end

#ad_user_dataString

This represents consent for ad user data. Corresponds to the JSON property adUserData

Returns:

  • (String)


2816
2817
2818
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2816

def ad_user_data
  @ad_user_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2823
2824
2825
2826
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2823

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