Represents a price item in an ad price extension. Visit our
Ad Extensions page for more
information on price extensions and other types of ad extensions.
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. |
getHeader |
String |
Returns the header text of the price item. |
getMobileFinalUrl |
String |
Returns the mobile final URL of the price item. |
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.
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. |
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.
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.