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
getAmountlongReturns the amount of money of the price item.
getCurrencyCodeStringReturns the currency code of the price item.
getDescriptionStringReturns the description text of the price item.
getFinalUrlStringReturns the final URL of the price item or null if there is no final URL.
getHeaderStringReturns the header text of the price item.
getMobileFinalUrlStringReturns the mobile final URL of the price item or null if there is no mobile final URL.
getUnitTypeStringReturns the unit type of the price item.
removevoidRemoves the price item from its parent Price object.

getAmount()

Returns the amount of money of the price item.

Return values:

TypeDescription
longAmount of money in micros of the price item.

getCurrencyCode()

Returns the currency code of the price item.

Return values:

TypeDescription
StringCurrency code of the price item.

getDescription()

Returns the description text of the price item.

Return values:

TypeDescription
StringDescription 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
StringThe final URL of the price item.

getHeader()

Returns the header text of the price item.

Return values:

TypeDescription
StringHeader 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
StringThe 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
StringUnit type of the price item.

remove()

Removes the price item from its parent Price object.

Returns nothing.