class Google::Apis::AdsensehostV4_1::AssociationSession

Attributes

account_id[RW]

Hosted account id of the associated publisher after association. Present if status is ACCEPTED. Corresponds to the JSON property `accountId` @return [String]

id[RW]

Unique identifier of this association session. Corresponds to the JSON property `id` @return [String]

kind[RW]

Kind of resource this is, in this case adsensehost#associationSession. Corresponds to the JSON property `kind` @return [String]

product_codes[RW]

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[RW]

Redirect URL of this association session. Used to redirect users into the AdSense association flow. Corresponds to the JSON property `redirectUrl` @return [String]

status[RW]

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]

user_locale[RW]

The preferred locale of the user themselves when going through the AdSense association flow. Corresponds to the JSON property `userLocale` @return [String]

website_locale[RW]

The locale of the user's hosted website. Corresponds to the JSON property `websiteLocale` @return [String]

website_url[RW]

The URL of the user's hosted website. Corresponds to the JSON property `websiteUrl` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adsensehost_v4_1/classes.rb, line 575
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adsensehost_v4_1/classes.rb, line 580
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