ऐक्शन फ़ीड

कार्रवाई वाले फ़ीड बनाना और अपलोड करना

कार्रवाई वाले फ़ीड बनाते और अपलोड करते समय, इन निर्देशों का पालन करें:

  • कार्रवाई के डेटा वाली फ़ाइलों के लिए, कार्रवाई वाले फ़ीड में बताए गए स्पेसिफ़िकेशन का पालन करें. हमारा सुझाव है कि हर अपलोड के लिए, कार्रवाई के डेटा वाली फ़ाइल के अलग-अलग नाम इस्तेमाल करें. फ़ाइल के नाम में टाइमस्टैंप शामिल करें. उदाहरण के लिए, action_1633621547.json.
  • फ़ाइलसेट डिस्क्रिप्टर में, name फ़ील्ड को reservewithgoogle.action.v2 पर सेट करें. डिस्क्रिप्टर फ़ाइल के उदाहरण के लिए, JSON का सैंपल देखें. हमारा सुझाव है कि हर अपलोड के लिए, डिस्क्रिप्टर फ़ाइल के अलग-अलग नाम इस्तेमाल करें. फ़ाइल के नाम में टाइमस्टैंप शामिल करें. उदाहरण के लिए, action_1633621547.filesetdesc.json. डिस्क्रिप्टर फ़ाइल को, सामान्य एसएफ़टीपी सर्वर पर अपलोड करना ज़रूरी है.
  • फ़ीड को हर दिन, सामान्य एसएफ़टीपी सर्वर पर पूरी तरह से रीफ़्रेश करके अपलोड करें.
  • एसएफ़टीपी सर्वर की जानकारी, Partner Portal के कॉन्फ़िगरेशन > फ़ीड सेक्शन में देखी जा सकती है.
  • फ़ीड सर्वर चुनना

    Partner Portal में फ़ीड सर्वर चुनना
  • Partner Portal के फ़ीड > इतिहास सेक्शन में जाकर, फ़ीड के इनजेशन का स्टेटस देखें.

परिभाषाएं

ActionFeed की परिभाषा

message ActionFeed {
  repeated ActionDetail data = 1;
}

ActionDetail की परिभाषा

message ActionDetail {
  string entity_id = 2;
  string link_id = 3;

  // Deep link for action detail
  string url = 4;

  // The actions that can be performed using this deep link. At least one
  // Action must be specified.
  repeated Action actions = 1;
}

Action की परिभाषा

// Information about an Action which could be performed.
message Action {
  // Deprecated fields not to be reused.
  reserved 1;

  oneof action_info {
    AppointmentInfo appointment_info = 2;
  }
}

AppointmentInfo की परिभाषा

// Indicates that the parent Action is for booking an appointment.
// In v2 of the Action feed, the deep link URL is specified on ActionDetail.url,
// so this message has no fields and should be set as an empty object
// (for example, "appointment_info": {} in JSON).
message AppointmentInfo {
}

कार्रवाई वाले फ़ीड के सैंपल

कार्रवाई वाला फ़ीड

{
  "data": [
    {
      "entity_id": "appointments-merchant-1",
      "link_id": "appointment-link-1",
      "url": "https://www.partnerwebsite.com/appointment/appointment-partner-1",
      "actions":[
        {
          "appointment_info": {}
        }
      ]
    }
  ]
}

डिस्क्रिप्टर फ़ाइल

{
  "generation_timestamp": 1677540395,
  "name": "reservewithgoogle.action.v2",
  "data_file": [
    "action_1677540395_0001.json",
    "action_1677540395_0002.json"

  ]
}