PRICE_EXTENSION_HAS_TOO_FEW_ITEMS when adding price extension

37 views
Skip to first unread message

Mariam Soady

unread,
Apr 5, 2021, 6:42:47 AM4/5/21
to AdWords API and Google Ads API Forum
Hello,

I am trying to add price extension using Java SDK version 6, I set all attributes of price extension request and I get PRICE_EXTENSION_HAS_TOO_FEW_ITEMS error without referring to the missing item.

Complete Request/Response:

Request

-------

MethodName: google.ads.googleads.v6.services.ExtensionFeedItemService/MutateExtensionFeedItems

Endpoint: googleads.googleapis.com:443

Headers: {developer-token=REDACTED, login-customer-id=9954357131, x-goog-api-client=gl-java/1.8.0_222 gapic/ gax/1.60.1 grpc/1.32.2}

Body: customer_id: "4163599270"

operations {

  create {

    price_feed_item {

      type: SERVICES

      price_qualifier: FROM

      price_offerings {

        price {

          currency_code: "USD"

          amount_micros: 2000000

        }

        unit: PER_DAY

        header: "Best Offer Header 1"

        description: "Offer description 1"

        final_urls: "https://www.getyourguide.com/new-york-city-l59/harlem-renaissance-walking-tour-with-lunch-t41275/"

        final_mobile_urls: "https://www.getyourguide.com/new-york-city-l59/harlem-renaissance-walking-tour-with-lunch-t41275/"

      }

      tracking_url_template: "http://getyourguide.com"

      language_code: "en"

      final_url_suffix: "/price"

    }

    extension_type: PRICE

  }

}



Response

--------

Headers: Metadata(content-type=application/grpc,request-id=c6AF2ZeUSAiq-7_UQexfXw,date=Thu, 01 Apr 2021 22:51:51 GMT,alt-svc=h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43")

Body: null

Failure message: errors {

  error_code {

    field_error: REQUIRED

  }

  message: "The required field was not present."

  trigger {

    string_value: ""

  }

  location {

    field_path_elements {

      field_name: "operations"

      index: 0

    }

  }

}

errors {

  error_code {

    extension_feed_item_error: PRICE_EXTENSION_HAS_TOO_FEW_ITEMS

  }

  message: "Price extension has too few items."

  trigger {

    string_value: ""

  }

  location {

    field_path_elements {

      field_name: "operations"

      index: 0

    }

  }

}


Regards,
Mariam.

Google Ads API Forum Advisor Prod

unread,
Apr 5, 2021, 2:18:33 PM4/5/21
to mariam...@getyourguide.com, adwor...@googlegroups.com

Hi Mariam,

Thank you for reaching out. Please note that to create a price extension , at least three price offerings are needed.Otherwise, you would encounter the PRICE_EXTENSION_HAS_TOO_FEW_ITEMS error. 

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2EprMD:ref

Mariam Soady

unread,
Apr 6, 2021, 6:27:33 AM4/6/21
to AdWords API and Google Ads API Forum
Hi,

Thanks for clarification, it was not obvious in API documentation.

Regards,
Mariam.

Reply all
Reply to author
Forward
0 new messages