class Google::Apis::AndroidpublisherV3::AndroidPublisherService
def create_monetization_subscription(package_name, subscription_object = nil, product_id: nil, regions_version_version: nil, fields: nil, quota_user: nil, options: nil, &block)
-
(Google::Apis::AuthorizationError)
- Authorization is required -
(Google::Apis::ClientError)
- The request is invalid and should not be retried without modification -
(Google::Apis::ServerError)
- An error occurred on the server and the request can be retried
Returns:
-
(Google::Apis::AndroidpublisherV3::Subscription)
-
Other tags:
- Yieldparam: err - error object if request failed
Yieldparam: result - parsed result object
Other tags:
- Yield: - Result & error if block supplied
Parameters:
-
options
(Google::Apis::RequestOptions
) -- -
quota_user
(String
) -- -
fields
(String
) -- -
regions_version_version
(String
) -- -
product_id
(String
) -- -
subscription_object
(Google::Apis::AndroidpublisherV3::Subscription
) -- -
package_name
(String
) --
def create_monetization_subscription(package_name, subscription_object = nil, product_id: nil, regions_version_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'androidpublisher/v3/applications/{packageName}/subscriptions', options) command.request_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation command.request_object = subscription_object command.response_representation = Google::Apis::AndroidpublisherV3::Subscription::Representation command.response_class = Google::Apis::AndroidpublisherV3::Subscription command.params['packageName'] = package_name unless package_name.nil? command.query['productId'] = product_id unless product_id.nil? command.query['regionsVersion.version'] = regions_version_version unless regions_version_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end