Class: Google::Apis::AdmobV1::App
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1::App
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1/classes.rb,
lib/google/apis/admob_v1/representations.rb,
lib/google/apis/admob_v1/representations.rb
Overview
Describes an AdMob app for a specific platform (For example: Android or iOS).
Instance Attribute Summary collapse
-
#app_approval_state ⇒ String
Output only.
-
#app_id ⇒ String
The externally visible ID of the app which can be used to integrate with the AdMob SDK.
-
#linked_app_info ⇒ Google::Apis::AdmobV1::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
-
#manual_app_info ⇒ Google::Apis::AdmobV1::AppManualAppInfo
Information provided for manual apps which are not linked to an application store (Example: Google Play, App Store).
-
#name ⇒ String
Resource name for this app.
-
#platform ⇒ String
Describes the platform of the app.
Instance Method Summary collapse
-
#initialize(**args) ⇒ App
constructor
A new instance of App.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ App
Returns a new instance of App.
127 128 129 |
# File 'lib/google/apis/admob_v1/classes.rb', line 127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_approval_state ⇒ String
Output only. The approval state for the app. The field is read-only.
Corresponds to the JSON property appApprovalState
96 97 98 |
# File 'lib/google/apis/admob_v1/classes.rb', line 96 def app_approval_state @app_approval_state end |
#app_id ⇒ String
The externally visible ID of the app which can be used to integrate with the
AdMob SDK. This is a read only property. Example: ca-app-pub-9876543210987654~
0123456789
Corresponds to the JSON property appId
103 104 105 |
# File 'lib/google/apis/admob_v1/classes.rb', line 103 def app_id @app_id end |
#linked_app_info ⇒ Google::Apis::AdmobV1::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
Corresponds to the JSON property linkedAppInfo
108 109 110 |
# File 'lib/google/apis/admob_v1/classes.rb', line 108 def linked_app_info @linked_app_info end |
#manual_app_info ⇒ Google::Apis::AdmobV1::AppManualAppInfo
Information provided for manual apps which are not linked to an application
store (Example: Google Play, App Store).
Corresponds to the JSON property manualAppInfo
114 115 116 |
# File 'lib/google/apis/admob_v1/classes.rb', line 114 def manual_app_info @manual_app_info end |
#name ⇒ String
Resource name for this app. Format is accounts/publisher_id
/apps/
app_id_fragment
Example: accounts/pub-9876543210987654/apps/0123456789
Corresponds to the JSON property name
120 121 122 |
# File 'lib/google/apis/admob_v1/classes.rb', line 120 def name @name end |
#platform ⇒ String
Describes the platform of the app. Limited to "IOS" and "ANDROID".
Corresponds to the JSON property platform
125 126 127 |
# File 'lib/google/apis/admob_v1/classes.rb', line 125 def platform @platform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 136 137 138 139 |
# File 'lib/google/apis/admob_v1/classes.rb', line 132 def update!(**args) @app_approval_state = args[:app_approval_state] if args.key?(:app_approval_state) @app_id = args[:app_id] if args.key?(:app_id) @linked_app_info = args[:linked_app_info] if args.key?(:linked_app_info) @manual_app_info = args[:manual_app_info] if args.key?(:manual_app_info) @name = args[:name] if args.key?(:name) @platform = args[:platform] if args.key?(:platform) end |