Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink

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

Instance Method Summary collapse

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_codeString

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

Returns:

  • (String)


755
756
757
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 755

def ad_client_code
  @ad_client_code
end

#nameString

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

Returns:

  • (String)


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