-
Notifications
You must be signed in to change notification settings - Fork 160
/
leadgen_form.rb
98 lines (87 loc) · 2.24 KB
/
leadgen_form.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# FB:AUTOGEN
module FacebookAds
# This class is auto-generated.
# For any issues or feature requests related to this class, please let us know
# on github and we'll fix in our codegen framework. We'll not be able to accept
# pull request for this class.
class LeadgenForm < AdObject
STATUS = [
"ACTIVE",
"ARCHIVED",
"DELETED",
"DRAFT",
]
LOCALE = [
"AR_AR",
"CS_CZ",
"DA_DK",
"DE_DE",
"EL_GR",
"EN_GB",
"EN_US",
"ES_ES",
"ES_LA",
"FI_FI",
"FR_FR",
"HE_IL",
"HI_IN",
"HU_HU",
"ID_ID",
"IT_IT",
"JA_JP",
"KO_KR",
"NB_NO",
"NL_NL",
"PL_PL",
"PT_BR",
"PT_PT",
"RO_RO",
"RU_RU",
"SV_SE",
"TH_TH",
"TR_TR",
"VI_VN",
"ZH_CN",
"ZH_HK",
"ZH_TW",
]
field :allow_organic_lead, 'bool'
field :block_display_for_non_targeted_viewer, 'bool'
field :context_card, 'LeadGenContextCard'
field :created_time, 'datetime'
field :creator, 'User'
field :expired_leads_count, 'int'
field :follow_up_action_text, 'string'
field :follow_up_action_url, 'string'
field :id, 'string'
field :is_optimized_for_quality, 'bool'
field :leads_count, 'int'
field :legal_content, 'LeadGenLegalContent'
field :locale, 'string'
field :name, 'string'
field :organic_leads_count, 'int'
field :page, 'Page'
field :page_id, 'string'
field :privacy_policy_url, 'string'
field :question_page_custom_headline, 'string'
field :questions, { list: 'LeadGenQuestion' }
field :status, 'string'
field :thank_you_page, 'LeadGenThankYouPage'
field :tracking_parameters, { list: 'hash' }
has_no_delete
has_edge :leads do |edge|
edge.get 'Lead'
end
has_edge :test_leads do |edge|
edge.get 'Lead'
edge.post 'Lead' do |api|
api.has_param :custom_disclaimer_responses, { list: 'object' }
api.has_param :field_data, { list: 'object' }
end
end
end
end