//Createapriceitembuilder.varpriceItemBuilder=AdsApp.extensions().newPriceItemBuilder();//Createapriceitemoperation.varpriceItemOperation=priceItemBuilder.withHeader("Kid's Haircut")//required.withDescription("Girls and boys")//required.withAmount(10)//required.withCurrencyCode("USD")//required.withUnitType("PER_WEEK")//required.withFinalUrl("http://www.example.com/")//required.build();//Optional:examinetheoutcome.ThecalltoisSuccessful()//willblockuntiltheoperationcompletes.if(priceItemOperation.isSuccessful()){//Gettheresult.varpriceItem=priceItemOperation.getResult();}else{//Handletheerrors.varerrors=priceItemOperation.getErrors();}
Price item builder with the specified description text.
withFinalUrl(finalUrl)
Sets the final URL of the new price item to the specified value.
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.
Price item builder with the specified header text.
withMobileFinalUrl(mobileFinalUrl)
Sets the mobile final URL of the new price item to the specified
value.
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.
The price item builder with the specified final URL.
withUnitType(unitType)
Sets the unit type of the new price item to the specified value. Required
before building. The unit type defines the rate that describes the price
and must be one of ['PER_HOUR', 'PER_DAY', 'PER_WEEK', 'PER_MONTH',
'PER_YEAR', 'PER_NIGHT'].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-23 UTC."],[],[]]