From 0c2d3c51205ab2f8b55423330477d84d1ab812f8 Mon Sep 17 00:00:00 2001 From: Bill Gruber Date: Tue, 2 Aug 2011 20:16:44 -0700 Subject: Cherrypick from HCMR2 Change ID: Id849cb25098fef76c96c4935db31ebc1422d74d8 IAB doc update: CSV import feature Also fixed Bug 5221766 Change-Id: I40b8057dae10067c8cc9aa7506564c0033efc2fe --- docs/html/guide/market/billing/billing_admin.jd | 275 +++++++++++++++++++++--- docs/html/images/billing_list_form_2.png | Bin 0 -> 140745 bytes docs/html/images/billing_product_list.png | Bin 55100 -> 67155 bytes 3 files changed, 250 insertions(+), 25 deletions(-) create mode 100755 docs/html/images/billing_list_form_2.png (limited to 'docs/html') diff --git a/docs/html/guide/market/billing/billing_admin.jd b/docs/html/guide/market/billing/billing_admin.jd index cbb4b29..a84eb4e 100755 --- a/docs/html/guide/market/billing/billing_admin.jd +++ b/docs/html/guide/market/billing/billing_admin.jd @@ -39,12 +39,12 @@ few administrative tasks, including setting up and maintaining your product list site, registering test accounts, and handling refunds when necessary.

You must have an Android Market publisher account to register test accounts. And you must have a -Google Checkout Merchant account to create a product list and issue refunds to your users. If you +Google Checkout merchant account to create a product list and issue refunds to your users. If you already have a publisher account on Android Market, you can use your existing account. You do not need to register for a new account to support in-app billing. If you do not have a publisher account, you can register as an Android Market developer and set up a publisher account at the Android Market publisher site. If you do not have a -Google Checkout Merchant account, you can register for one at the Google Checkout site.

Creating a Product List

@@ -57,7 +57,7 @@ items that are listed in another application's product list.

You can access an application's product list by clicking the In-App Products link that appears under each of the applications that are listed for your publisher account (see figure 1). The In-App Products link appears only if you have a Google Checkout -Merchant account and an application's manifest includes the com.android.vending.BILLING +merchant account and an application's manifest includes the com.android.vending.BILLING permission.

@@ -71,20 +71,37 @@ product description, and price (see figure 2). The product list stores only meta you are selling in your application. It does not store any digital content. You are responsible for storing and delivering the digital content that you sell in your applications.

- +

Figure 2. An application's product list.

-

You can create a product list for a published application or a draft application that's been -uploaded and saved to the Android Market site. However, you must have a Google Checkout Merchant +

You can create a product list for any published application or any draft application that's been +uploaded and saved to the Android Market site. However, you must have a Google Checkout merchant account and the application's manifest must include the com.android.vending.BILLING permission. If an application's manifest does not include this permission, you will be able to edit existing items in the product list but you will not be able to add new items to the list. For more -information, see Modifying your application's AndroidManifest.xml -file.

+information about this permission, see +Updating Your +Application's Manifest.

-

To create a product list for an application, follow these steps:

+

In addition, an application package can have only one product list. If you create a product +list for an application, and you use the multiple APK feature to distribute +more than one APK for that application, the product list applies to all APK versions that are +associated with the application listing. You cannot create individual product lists for each APK if +you are using the multiple APK feature.

+ +

You can add items to a product list two ways: you can add items one at a time by using the In-app +Products UI (see figure 3), or you can add a batch of items by importing the items from a +comma-separated values (CSV) file (see figure 2). Adding items one at a time is useful if your +application has only a few in-app items or you are adding only a few items to a +product list for testing purposes. The CSV file method is useful if your application has a large +number of in-app items.

+ +

Adding items one at a time to a product list

+ +

To add an item to a product list using the In-app Products UI, follow these steps:

  1. Log in to your publisher account.
  2. @@ -92,7 +109,7 @@ file.

    In-app Products.
  3. On the In-app Products List page, click Add in-app product.
  4. On the Create New In-app Product page (see figure 3), provide details about the item you are - selling and then click Save.
  5. + selling and then click Save or Publish.
@@ -109,25 +126,31 @@ file.

(0-9), underlines (_), and dots (.). The product ID "android.test" is reserved, as are all product IDs that start with "android.test."

In addition, you cannot modify an item's product ID after it is created, and you cannot reuse - a product ID, even if you delete the item previously using the product ID.

+ a product ID.

-
  • Purchase type -

    The purchase type can be "managed per user account" or "unmanaged." You can specify an item's - purchase type only through the publisher site and you can never change an item's purchase type - once you specify it. For more information, see Choosing a - purchase type later in this document.

    +
  • Purchase Type +

    The purchase type can be Managed per user account or + Unmanaged. You can never change an item's purchase type after you set it. For more + information, see Choosing a purchase type later in this + document.

  • Publishing State -

    An item's publishing state can be "published" or "unpublished." However, to be visible to a - user during checkout, an item's publishing state must be set to "published" and the item's - application must be published on Android Market.

    +

    An item's publishing state can be Published or Unpublished + . To be visible to a user during checkout, an item's publishing state must be set to + Published and the item's application must be published on Android Market.

    Note: This is not true for test accounts. An item is visible to a test account if the application is not published and the item is published. See Testing In-app Billing for more information.

  • Language -

    A product list inherits its language from the parent application.

    +

    The language setting determines which languages are used to display the item title and + item description during checkout. A product list inherits its default language from the + parent application. You can add more languages by clicking add language. You + can also choose to have the title and description automatically translated from the default + language by selecting the Fill fields with auto translation checkbox (see + figure 4). If you do not use the auto translation feature, you must provide the translated + versions of the title and description.

  • Title

    The title is a short descriptor for the item. For example, "Sleeping potion." Titles must be @@ -141,9 +164,20 @@ file.

    visible to users during checkout. Descriptions can be up to 80 characters in length.

  • Price -

    Every item must have a price greater than zero; you cannot set a price of "0" (free).

    +

    You must provide a default price in your home currency. You can also provide prices in other + currencies, but you can do this only if a currency's corresponding country is listed as a + target country for your application. You can specify target countries on the Edit Application + page in the Android Market developer console.

    +

    To specify prices in other currencies, you can manually enter the price for each + currency or you can click Auto Fill and let Android Market do a one-time + conversion from your home currency to the currencies you are targeting (see figure 4).

  • + +

    + Figure 4. Specifying additional currencies and additional languages for the + item title and description. +

    For more information about product IDs and product lists, see Creating In-App Product @@ -154,6 +188,197 @@ Pricing.

    Note: Be sure to plan your product ID namespace. You cannot reuse or modify product IDs after you save them.

    +

    Adding a batch of items to a product list

    + +

    To add a batch of items to a product list using a CSV file, you first need to create your CSV +file. The data values that you specify in the CSV file represent the same data values you specify +manually through the In-app Products UI (see Adding items one at a time +to a product list). The CSV file uses commas (,) and semi-colons (;) to separate data values. +Commas are used to separate primary data values, and semi-colons are used to separate subvalues. For +example, the syntax for the CSV file is as follows:

    + +

    "product_id","publish_state","purchase_type","autotranslate +","locale; title; description","autofill","country; +price" +

    + +

    Descriptions and usage details are provided below.

    + + + +

    Table 1. Language codes you can use +with the locale field.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LanguageCodeLanguageCode
    Chinesezh_TWItalianit_IT
    Czechcs_CZJapaneseja_JP
    Danishda_DKKoreanko_KR
    Dutchnl_NLNorwegianno_NO
    Englishen_USPolishpl_PL
    Frenchfr_FRPortuguesept_PT
    Finnishfi_FIRussianru_RU
    Germande_DESpanishes_ES
    Hebrewiw_ILSwedishsv_SE
    Hindihi_IN----
    + +

    To import the items that are specified in your CSV file, do the following:

    + +
      +
    1. Log in to your publisher account.
    2. +
    3. In the All Android Market listings panel, under the application name, click + In-app Products.
    4. +
    5. On the In-app Products List page, click Choose File and select your CSV +file. +

      The CSV file must be on your local computer or on a local disk that is connected to your + computer.

      +
    6. +
    7. Select the Overwrite checkbox if you want to overwrite existing items in + your product list. +

      This option overwrites values of existing items only if the value of the product_id + in the CSV file matches the In-app Product ID for an existing item in the product list. + Overwriting does not delete items that are on a product list but not present in the CSV + file.

      +
    8. +
    9. On the In-app Products List page, click Import from CSV.
    10. +
    + +

    You can also export an existing product list to a CSV file by clicking Export to CSV + on the In-app Product List page. This is useful if you have manually added items to +a product list and you want to start managing the product list through a CSV file.

    +

    Choosing a Purchase Type

    An item's purchase type controls how Android Market manages the purchase of the item. There are @@ -194,7 +419,7 @@ times.

    In-app billing does not allow users to send a refund request to Android Market. Refunds for in-app purchases must be directed to you (the application developer). You can then process the -refund through your Google Checkout Merchant account. When you do this, Android Market receives a +refund through your Google Checkout merchant account. When you do this, Android Market receives a refund notification from Google Checkout, and Android Market sends a refund message to your application. For more information, see Handling @@ -236,15 +461,15 @@ accounts yourself and distribute the credentials to your developers or testers.<

  • Log in to your publisher account.
  • On the upper left part of the page, under your name, click Edit profile.
  • On the Edit Profile page, scroll down to the Licensing & In-app Billing panel (see figure - 4).
  • + 5).
  • In Test Accounts, add the email addresses for the test accounts you want to register, separating each account with a comma.
  • Click Save to save your profile changes.
  • - +

    - Figure 4. The Licensing and In-app Billing panel of your account's Edit Profile + Figure 5. The Licensing and In-app Billing panel of your account's Edit Profile page lets you register test accounts.

    diff --git a/docs/html/images/billing_list_form_2.png b/docs/html/images/billing_list_form_2.png new file mode 100755 index 0000000..d321a20 Binary files /dev/null and b/docs/html/images/billing_list_form_2.png differ diff --git a/docs/html/images/billing_product_list.png b/docs/html/images/billing_product_list.png index 49a7e79..a89f21b 100755 Binary files a/docs/html/images/billing_product_list.png and b/docs/html/images/billing_product_list.png differ -- cgit v1.1