Class: Google::Apis::AdsenseV2::AdClient
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::AdClient
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Representation of an ad client. An ad client represents a user's subscription with a specific AdSense product.
Instance Attribute Summary collapse
-
#name ⇒ String
Resource name of the ad client.
-
#product_code ⇒ String
Output only.
-
#reporting_dimension_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdClient
constructor
A new instance of AdClient.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdClient
Returns a new instance of AdClient.
100 101 102 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Resource name of the ad client. Format: accounts/account/adclient/adclient
Corresponds to the JSON property name
86 87 88 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 86 def name @name end |
#product_code ⇒ String
Output only. Product code of the ad client. For example, "AFC" for AdSense for
Content.
Corresponds to the JSON property productCode
92 93 94 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 92 def product_code @product_code end |
#reporting_dimension_id ⇒ String
Output only. Unique ID of the ad client as used in the AD_CLIENT_ID
reporting dimension. Present only if the ad client supports reporting.
Corresponds to the JSON property reportingDimensionId
98 99 100 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 98 def reporting_dimension_id @reporting_dimension_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
105 106 107 108 109 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 105 def update!(**args) @name = args[:name] if args.key?(:name) @product_code = args[:product_code] if args.key?(:product_code) @reporting_dimension_id = args[:reporting_dimension_id] if args.key?(:reporting_dimension_id) end |