Class: Google::Apis::AdmobV1beta::App
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::App
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admob_v1beta/classes.rb,
lib/google/apis/admob_v1beta/representations.rb,
lib/google/apis/admob_v1beta/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::AdmobV1beta::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
-
#manual_app_info ⇒ Google::Apis::AdmobV1beta::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.
332 333 334 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 332 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
301 302 303 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 301 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
308 309 310 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 308 def app_id @app_id end |
#linked_app_info ⇒ Google::Apis::AdmobV1beta::AppLinkedAppInfo
Information from the app store if the app is linked to an app store.
Corresponds to the JSON property linkedAppInfo
313 314 315 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 313 def linked_app_info @linked_app_info end |
#manual_app_info ⇒ Google::Apis::AdmobV1beta::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
319 320 321 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 319 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
325 326 327 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 325 def name @name end |
#platform ⇒ String
Describes the platform of the app. Limited to "IOS" and "ANDROID".
Corresponds to the JSON property platform
330 331 332 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 330 def platform @platform end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
337 338 339 340 341 342 343 344 |
# File 'lib/google/apis/admob_v1beta/classes.rb', line 337 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 |