All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.RecommendationCallToAction.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






RecommendationCallToAction (Content API for Shopping v2.1-rev20240609-2.0.0)












com.google.api.services.content.model

Class RecommendationCallToAction

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class RecommendationCallToAction
    extends com.google.api.client.json.GenericJson
    Call to action (CTA) that explains how a merchant can implement this recommendation

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • RecommendationCallToAction

        public RecommendationCallToAction()
    • Method Detail

      • getIntent

        public String getIntent()
        Output only. Intent of the action. This value describes the intent (for example, `OPEN_CREATE_EMAIL_CAMPAIGN_FLOW`) and can vary from recommendation to recommendation. This value can change over time for the same recommendation. Currently available intent values: - OPEN_CREATE_EMAIL_CAMPAIGN_FLOW: Opens a user journey where they can create a marketing email campaign. (No default URL) - OPEN_CREATE_COLLECTION_TAB: Opens a user journey where they can [create a collection](https://support.google.com/merchants/answer/9703228) for their Merchant account. (No default URL)
        Returns:
        value or null for none
      • setIntent

        public RecommendationCallToAction setIntent(String intent)
        Output only. Intent of the action. This value describes the intent (for example, `OPEN_CREATE_EMAIL_CAMPAIGN_FLOW`) and can vary from recommendation to recommendation. This value can change over time for the same recommendation. Currently available intent values: - OPEN_CREATE_EMAIL_CAMPAIGN_FLOW: Opens a user journey where they can create a marketing email campaign. (No default URL) - OPEN_CREATE_COLLECTION_TAB: Opens a user journey where they can [create a collection](https://support.google.com/merchants/answer/9703228) for their Merchant account. (No default URL)
        Parameters:
        intent - intent or null for none
      • getLocalizedText

        public String getLocalizedText()
        Output only. Localized text of the CTA. Optional.
        Returns:
        value or null for none
      • setLocalizedText

        public RecommendationCallToAction setLocalizedText(String localizedText)
        Output only. Localized text of the CTA. Optional.
        Parameters:
        localizedText - localizedText or null for none
      • getUri

        public String getUri()
        Optional. URL of the CTA. This field will only be set for some recommendations where there is a suggested landing URL. Otherwise it will be set to an empty string. We recommend developers to use their own custom landing page according to the description of the intent field above when this uri field is empty.
        Returns:
        value or null for none
      • setUri

        public RecommendationCallToAction setUri(String uri)
        Optional. URL of the CTA. This field will only be set for some recommendations where there is a suggested landing URL. Otherwise it will be set to an empty string. We recommend developers to use their own custom landing page according to the description of the intent field above when this uri field is empty.
        Parameters:
        uri - uri or null for none

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy