AI-generated Key Takeaways
-
This represents a price item in an ad price extension.
-
Methods are available to retrieve the amount, currency code, description, final URL, header, mobile final URL, and unit type of the price item.
-
The
remove()
method can be used to remove the price item from its parent Price object.
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.