class Google::Apis::AdsensehostV4_1::AssociationSession
Attributes
Hosted account id of the associated publisher after association. Present if status is ACCEPTED. Corresponds to the JSON property `accountId` @return [String]
Unique identifier of this association session. Corresponds to the JSON property `id` @return [String]
Kind of resource this is, in this case adsensehost#associationSession. Corresponds to the JSON property `kind` @return [String]
The products to associate with the user. Options: AFC, AFG, AFV, AFS ( deprecated), AFMC (deprecated) Corresponds to the JSON property `productCodes` @return [Array<String>]
Redirect URL of this association session. Used to redirect users into the AdSense association flow. Corresponds to the JSON property `redirectUrl` @return [String]
Status of the completed association, available once the association callback token has been verified. One of ACCEPTED, REJECTED, or ERROR. Corresponds to the JSON property `status` @return [String]
The preferred locale of the user themselves when going through the AdSense association flow. Corresponds to the JSON property `userLocale` @return [String]
The locale of the user's hosted website. Corresponds to the JSON property `websiteLocale` @return [String]
The URL of the user's hosted website. Corresponds to the JSON property `websiteUrl` @return [String]
Public Class Methods
# File lib/google/apis/adsensehost_v4_1/classes.rb, line 574 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/adsensehost_v4_1/classes.rb, line 579 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @product_codes = args[:product_codes] if args.key?(:product_codes) @redirect_url = args[:redirect_url] if args.key?(:redirect_url) @status = args[:status] if args.key?(:status) @user_locale = args[:user_locale] if args.key?(:user_locale) @website_locale = args[:website_locale] if args.key?(:website_locale) @website_url = args[:website_url] if args.key?(:website_url) end