Class: Google::Apis::AdsenseV2::AdClient

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

Resource name of the ad client. Format: accounts/account/adclient/adclient Corresponds to the JSON property name

Returns:

  • (String)


86
87
88
# File 'lib/google/apis/adsense_v2/classes.rb', line 86

def name
  @name
end

#product_codeString

Output only. Product code of the ad client. For example, "AFC" for AdSense for Content. Corresponds to the JSON property productCode

Returns:

  • (String)


92
93
94
# File 'lib/google/apis/adsense_v2/classes.rb', line 92

def product_code
  @product_code
end

#reporting_dimension_idString

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

Returns:

  • (String)


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