private static PriceTableRow createPriceTableRow(
      String header,
      String description,
      String finalUrl,
      String finalMobileUrl,
      long priceInMicros,
      String currencyCode,
      PriceExtensionPriceUnit priceUnit) {
    PriceTableRow priceTableRow = new PriceTableRow();
    priceTableRow.setHeader(header);
    priceTableRow.setDescription(description);

    UrlList finalUrls = new UrlList();
    finalUrls.setUrls(new String[] {finalUrl});
    priceTableRow.setFinalUrls(finalUrls);

    if (finalMobileUrl != null) {
      UrlList finalMobileUrls = new UrlList();
      finalMobileUrls.setUrls(new String[] {finalMobileUrl});
      priceTableRow.setFinalMobileUrls(finalMobileUrls);
    }

    MoneyWithCurrency price = new MoneyWithCurrency();
    Money priceMoney = new Money();
    price.setCurrencyCode(currencyCode);
    priceMoney.setMicroAmount(priceInMicros);
    price.setMoney(priceMoney);
    priceTableRow.setPrice(price);
    priceTableRow.setPriceUnit(priceUnit);

    return priceTableRow;
  }
private static PriceTableRow createPriceTableRow ( String header , String description , String finalUrl , String finalMobileUrl , long priceInMicros , String currencyCode , PriceExtensionPriceUnit priceUnit ) { PriceTableRow priceTableRow = new PriceTableRow ( ) ; priceTableRow . setHeader ( header ) ; priceTableRow . setDescription ( description ) ; UrlList finalUrls = new UrlList ( ) ; finalUrls . setUrls ( new String [ ] { finalUrl } ) ; priceTableRow . setFinalUrls ( finalUrls ) ; if ( finalMobileUrl != null ) { UrlList finalMobileUrls = new UrlList ( ) ; finalMobileUrls . setUrls ( new String [ ] { finalMobileUrl } ) ; priceTableRow . setFinalMobileUrls ( finalMobileUrls ) ; } MoneyWithCurrency price = new MoneyWithCurrency ( ) ; Money priceMoney = new Money ( ) ; price . setCurrencyCode ( currencyCode ) ; priceMoney . setMicroAmount ( priceInMicros ) ; price . setMoney ( priceMoney ) ; priceTableRow . setPrice ( price ) ; priceTableRow . setPriceUnit ( priceUnit ) ; return priceTableRow ; }
Creates a new {@link PriceTableRow} with the specified attributes.

@param header the header for the row
@param description the description for the row
@param finalUrl the final URL for the row
@param finalMobileUrl the final mobile URL for the row, or null if this field should not be set
@param priceInMicros the price for the row, in micros
@param currencyCode the currency for the row
@param priceUnit the price unit for the row
@return a new {@link PriceTableRow}