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 GA4 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.
763 764 765 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 763 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_client_code ⇒ String
Immutable. The AdSense ad client code that the GA4 property is linked to.
Example format: "ca-pub-1234567890"
Corresponds to the JSON property adClientCode
754 755 756 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 754 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
761 762 763 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 761 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
768 769 770 771 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 768 def update!(**args) @ad_client_code = args[:ad_client_code] if args.key?(:ad_client_code) @name = args[:name] if args.key?(:name) end |