Class: Google::Apis::AdsensehostV4_1::AssociationSession
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::AssociationSession
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adsensehost_v4_1/classes.rb,
generated/google/apis/adsensehost_v4_1/representations.rb,
generated/google/apis/adsensehost_v4_1/representations.rb
Instance Attribute Summary collapse
-
#account_id ⇒ String
Hosted account id of the associated publisher after association.
-
#id ⇒ String
Unique identifier of this association session.
-
#kind ⇒ String
Kind of resource this is, in this case adsensehost#associationSession.
-
#product_codes ⇒ Array<String>
The products to associate with the user.
-
#redirect_url ⇒ String
Redirect URL of this association session.
-
#status ⇒ String
Status of the completed association, available once the association callback token has been verified.
-
#user_locale ⇒ String
The preferred locale of the user themselves when going through the AdSense association flow.
-
#website_locale ⇒ String
The locale of the user's hosted website.
-
#website_url ⇒ String
The URL of the user's hosted website.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssociationSession
constructor
A new instance of AssociationSession.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AssociationSession
Returns a new instance of AssociationSession
574 575 576 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
Hosted account id of the associated publisher after association. Present if
status is ACCEPTED.
Corresponds to the JSON property accountId
528 529 530 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 528 def account_id @account_id end |
#id ⇒ String
Unique identifier of this association session.
Corresponds to the JSON property id
533 534 535 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 533 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsensehost#associationSession.
Corresponds to the JSON property kind
538 539 540 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 538 def kind @kind end |
#product_codes ⇒ Array<String>
The products to associate with the user. Options: AFC, AFG, AFV, AFS (
deprecated), AFMC (deprecated)
Corresponds to the JSON property productCodes
544 545 546 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 544 def product_codes @product_codes end |
#redirect_url ⇒ String
Redirect URL of this association session. Used to redirect users into the
AdSense association flow.
Corresponds to the JSON property redirectUrl
550 551 552 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 550 def redirect_url @redirect_url end |
#status ⇒ 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
556 557 558 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 556 def status @status end |
#user_locale ⇒ String
The preferred locale of the user themselves when going through the AdSense
association flow.
Corresponds to the JSON property userLocale
562 563 564 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 562 def user_locale @user_locale end |
#website_locale ⇒ String
The locale of the user's hosted website.
Corresponds to the JSON property websiteLocale
567 568 569 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 567 def website_locale @website_locale end |
#website_url ⇒ String
The URL of the user's hosted website.
Corresponds to the JSON property websiteUrl
572 573 574 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 572 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 583 584 585 586 587 588 589 |
# File 'generated/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 |