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.
575 576 577 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 575 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
529 530 531 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 529 def account_id @account_id end |
#id ⇒ String
Unique identifier of this association session.
Corresponds to the JSON property id
534 535 536 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 534 def id @id end |
#kind ⇒ String
Kind of resource this is, in this case adsensehost#associationSession.
Corresponds to the JSON property kind
539 540 541 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 539 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
545 546 547 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 545 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
551 552 553 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 551 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
557 558 559 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 557 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
563 564 565 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 563 def user_locale @user_locale end |
#website_locale ⇒ String
The locale of the user's hosted website.
Corresponds to the JSON property websiteLocale
568 569 570 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 568 def website_locale @website_locale end |
#website_url ⇒ String
The URL of the user's hosted website.
Corresponds to the JSON property websiteUrl
573 574 575 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 573 def website_url @website_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
580 581 582 583 584 585 586 587 588 589 590 |
# 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 |