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.



2878
2879
2880
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2878

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)


2871
2872
2873
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2871

def ad_personalization
  @ad_personalization
end

#ad_user_dataString

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

Returns:

  • (String)


2876
2877
2878
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2876

def ad_user_data
  @ad_user_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2883
2884
2885
2886
# File 'lib/google/apis/searchads360_v23/classes.rb', line 2883

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