AI-generated Key Takeaways
-
Represents a price item within an ad's price extension, allowing advertisers to showcase product or service pricing directly in their ads.
-
Provides methods to access and manage various aspects of the price item, such as amount, currency, description, header, and URLs.
-
Includes functionalities to retrieve the final URL and mobile final URL, leading users to the specific product or service page after clicking the ad.
-
Allows for the removal of the price item from its parent Price object, enabling dynamic updates to the price extension.
-
For further details on price extensions and other ad extensions, refer to the Ad Extensions documentation.
Methods:
Member | Type | Description |
---|---|---|
getAmount() | long |
Returns the amount of money of the price item. |
getCurrencyCode() | String |
Returns the currency code of the price item. |
getDescription() | String |
Returns the description text of the price item. |
getFinalUrl() | String |
Returns the final URL of the price item or null if
there is no final URL. |
getHeader() | String |
Returns the header text of the price item. |
getMobileFinalUrl() | String |
Returns the mobile final URL of the price item or
null if there is no mobile final URL. |
getUnitType() | String |
Returns the unit type of the price item. |
remove() | void |
Removes the price item from its parent Price object. |
getAmount()
Returns the amount of money of the price item. Return values:
Type | Description |
---|---|
long |
Amount of money in micros of the price item. |
getCurrencyCode()
Returns the currency code of the price item. Return values:
Type | Description |
---|---|
String |
Currency code of the price item. |
getDescription()
Returns the description text of the price item. Return values:
Type | Description |
---|---|
String |
Description text of the price item. |
getFinalUrl()
Returns the final URL of the price item or null
if
there is no final URL.
The final URL represents the actual landing page for your price item. The final URL must be the URL of the page that the user ends up on after clicking on your ad, once all the redirects have taken place.
Final URLs follow the same override rules as destination URLs. For example, a final URL at the keyword level overrides a final URL at an ad level.
See Using Upgraded URLs for more information.
Return values:
Type | Description |
---|---|
String |
The final URL of the price item. |
getHeader()
Returns the header text of the price item. Return values:
Type | Description |
---|---|
String |
Header text of the price item. |
getMobileFinalUrl()
Returns the mobile final URL of the price item or
null
if there is no mobile final URL.
The mobile final URL represents the actual landing page for your price item on a mobile device. The final mobile URL must be the URL of the page that the user ends up on after clicking on your ad on a mobile device, once all the redirects have taken place.
Mobile final URLs follow the same override rules as destination URLs. For example, a mobile final URL at the keyword level overrides a mobile final URL at an ad level.
See Using Upgraded URLs for more information.
Return values:
Type | Description |
---|---|
String |
The mobile final URL of the price item. |
getUnitType()
Returns the unit type of the price item. The unit type defines the rate
that describes the price (e.g., whether the amount specified is per day,
per week, etc). Return values:
Type | Description |
---|---|
String |
Unit type of the price item. |
remove()
Removes the price item from its parent Price object. Returns nothing.