AdsApp.​PriceItem

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:

MemberTypeDescription
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:

TypeDescription
long Amount of money in micros of the price item.

getCurrencyCode()

Returns the currency code of the price item.

Return values:

TypeDescription
String Currency code of the price item.

getDescription()

Returns the description text of the price item.

Return values:

TypeDescription
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:

TypeDescription
String The final URL of the price item.

getHeader()

Returns the header text of the price item.

Return values:

TypeDescription
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:

TypeDescription
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:

TypeDescription
String Unit type of the price item.

remove()

Removes the price item from its parent Price object.

Returns nothing.