Stay organized with collections
Save and categorize content based on your preferences.
google::play::billing::ProductOffer
#include <billing/models.h>
Offer details for a product.
Summary
Public attributes
|
currency_code
|
std::string
The ISO 4217 currency code of the price.
|
formatted_price
|
std::string
The formatted price for of the offer, including its currency sign.
|
offer_token
|
std::string
Unique token representing the product offer.
|
price_micros
|
int64_t
|
Public attributes
currency_code
std::string google::play::billing::ProductOffer::currency_code
The ISO 4217 currency code of the price.
std::string google::play::billing::ProductOffer::formatted_price
The formatted price for of the offer, including its currency sign.
offer_token
std::string google::play::billing::ProductOffer::offer_token
Unique token representing the product offer.
price_micros
int64_t google::play::billing::ProductOffer::price_micros
Cost in the currency_code.
Price is provided in micro-units, where 1,000,000 micro-units equal one unit of the currency.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-10 UTC."],[],[],null,["# google::play::billing::ProductOffer Struct Reference\n\ngoogle::play::billing::ProductOffer\n===================================\n\n\n`#include \u003cbilling/models.h\u003e`\n\nOffer details for a product.\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [currency_code](#structgoogle_1_1play_1_1billing_1_1_product_offer_1aaf2ad8929733d20c372a21ad63c2587d) | `std::string` The ISO 4217 currency code of the price. |\n| [formatted_price](#structgoogle_1_1play_1_1billing_1_1_product_offer_1a9249dd16f1a4ab7190bcb86f39e82aaf) | `std::string` The formatted price for of the offer, including its currency sign. |\n| [offer_token](#structgoogle_1_1play_1_1billing_1_1_product_offer_1a24fb40fce4c02e677b3ad8f1344a8da6) | `std::string` Unique token representing the product offer. |\n| [price_micros](#structgoogle_1_1play_1_1billing_1_1_product_offer_1aaca3e936eb6adeaa9b95a66590dd26fb) | `int64_t` Cost in the [currency_code](/games/playgames/native-pc/reference/struct/google/play/billing/product-offer#structgoogle_1_1play_1_1billing_1_1_product_offer_1aaf2ad8929733d20c372a21ad63c2587d). |\n\nPublic attributes\n-----------------\n\n### currency_code\n\n```scdoc\nstd::string google::play::billing::ProductOffer::currency_code\n``` \nThe ISO 4217 currency code of the price. \n\n### formatted_price\n\n```scdoc\nstd::string google::play::billing::ProductOffer::formatted_price\n``` \nThe formatted price for of the offer, including its currency sign. \n\n### offer_token\n\n```scdoc\nstd::string google::play::billing::ProductOffer::offer_token\n``` \nUnique token representing the product offer. \n\n### price_micros\n\n```scdoc\nint64_t google::play::billing::ProductOffer::price_micros\n``` \nCost in the [currency_code](/games/playgames/native-pc/reference/struct/google/play/billing/product-offer#structgoogle_1_1play_1_1billing_1_1_product_offer_1aaf2ad8929733d20c372a21ad63c2587d).\n\nPrice is provided in micro-units, where 1,000,000 micro-units equal one unit of the currency."]]