Class: Google::Apis::AdmobV1beta::App

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admob_v1beta/classes.rb,
generated/google/apis/admob_v1beta/representations.rb,
generated/google/apis/admob_v1beta/representations.rb

Overview

Describes an AdMob app for a specific platform (For example: Android or iOS).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ App

Returns a new instance of App.



120
121
122
# File 'generated/google/apis/admob_v1beta/classes.rb', line 120

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_idString

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

Returns:

  • (String)


96
97
98
# File 'generated/google/apis/admob_v1beta/classes.rb', line 96

def app_id
  @app_id
end

#linked_app_infoGoogle::Apis::AdmobV1beta::AppLinkedAppInfo

Information from the app store if the app is linked to an app store. Corresponds to the JSON property linkedAppInfo



101
102
103
# File 'generated/google/apis/admob_v1beta/classes.rb', line 101

def linked_app_info
  @linked_app_info
end

#manual_app_infoGoogle::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



107
108
109
# File 'generated/google/apis/admob_v1beta/classes.rb', line 107

def manual_app_info
  @manual_app_info
end

#nameString

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

Returns:

  • (String)


113
114
115
# File 'generated/google/apis/admob_v1beta/classes.rb', line 113

def name
  @name
end

#platformString

Describes the platform of the app. Limited to "IOS" and "ANDROID". Corresponds to the JSON property platform

Returns:

  • (String)


118
119
120
# File 'generated/google/apis/admob_v1beta/classes.rb', line 118

def platform
  @platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



125
126
127
128
129
130
131
# File 'generated/google/apis/admob_v1beta/classes.rb', line 125

def update!(**args)
  @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