Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
A link between a Google Analytics property and an AdSense for Content ad client.
Instance Attribute Summary collapse
-
#ad_client_code ⇒ String
Immutable.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAdSenseLink
constructor
A new instance of GoogleAnalyticsAdminV1alphaAdSenseLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAdSenseLink
Returns a new instance of GoogleAnalyticsAdminV1alphaAdSenseLink.
764 765 766 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 764 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_client_code ⇒ String
Immutable. The AdSense ad client code that the Google Analytics property is
linked to. Example format: "ca-pub-1234567890"
Corresponds to the JSON property adClientCode
755 756 757 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 755 def ad_client_code @ad_client_code end |
#name ⇒ String
Output only. The resource name for this AdSense Link resource. Format:
properties/propertyId/adSenseLinks/linkId Example: properties/1234/
adSenseLinks/6789
Corresponds to the JSON property name
762 763 764 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 762 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
769 770 771 772 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 769 def update!(**args) @ad_client_code = args[:ad_client_code] if args.key?(:ad_client_code) @name = args[:name] if args.key?(:name) end |