TargetingFields   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 176
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 176
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B getFieldTypes() 0 88 1
1
<?php
2
/**
3
 * Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
4
 *
5
 * You are hereby granted a non-exclusive, worldwide, royalty-free license to
6
 * use, copy, modify, and distribute this software in source code or binary
7
 * form for use in connection with the web services and APIs provided by
8
 * Facebook.
9
 *
10
 * As with any software that integrates with the Facebook platform, your use
11
 * of this software is subject to the Facebook Developer Principles and
12
 * Policies [http://developers.facebook.com/policy/]. This copyright notice
13
 * shall be included in all copies or substantial portions of the software.
14
 *
15
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
 * DEALINGS IN THE SOFTWARE.
22
 *
23
 */
24
25
namespace FacebookAds\Object\Fields;
26
27
use FacebookAds\Enum\AbstractEnum;
28
29
/**
30
 * This class is auto-generated.
31
 *
32
 * For any issues or feature requests related to this class, please let us know
33
 * on github and we'll fix in our codegen framework. We'll not be able to accept
34
 * pull request for this class.
35
 *
36
 */
37
38
class TargetingFields extends AbstractEnum {
39
40
  const ADGROUP_ID = 'adgroup_id';
41
  const AGE_MAX = 'age_max';
42
  const AGE_MIN = 'age_min';
43
  const APP_INSTALL_STATE = 'app_install_state';
44
  const AUDIENCE_NETWORK_POSITIONS = 'audience_network_positions';
45
  const BEHAVIORS = 'behaviors';
46
  const CITIES = 'cities';
47
  const COLLEGE_YEARS = 'college_years';
48
  const CONNECTIONS = 'connections';
49
  const CONTEXTUAL_TARGETING_CATEGORIES = 'contextual_targeting_categories';
50
  const COUNTRIES = 'countries';
51
  const COUNTRY = 'country';
52
  const COUNTRY_GROUPS = 'country_groups';
53
  const CUSTOM_AUDIENCES = 'custom_audiences';
54
  const DEVICE_PLATFORMS = 'device_platforms';
55
  const DIRECT_INSTALL_DEVICES = 'direct_install_devices';
56
  const DYNAMIC_AUDIENCE_IDS = 'dynamic_audience_ids';
57
  const EDUCATION_MAJORS = 'education_majors';
58
  const EDUCATION_SCHOOLS = 'education_schools';
59
  const EDUCATION_STATUSES = 'education_statuses';
60
  const EFFECTIVE_AUDIENCE_NETWORK_POSITIONS = 'effective_audience_network_positions';
61
  const EFFECTIVE_DEVICE_PLATFORMS = 'effective_device_platforms';
62
  const EFFECTIVE_FACEBOOK_POSITIONS = 'effective_facebook_positions';
63
  const EFFECTIVE_INSTAGRAM_POSITIONS = 'effective_instagram_positions';
64
  const EFFECTIVE_MESSENGER_POSITIONS = 'effective_messenger_positions';
65
  const EFFECTIVE_PUBLISHER_PLATFORMS = 'effective_publisher_platforms';
66
  const ENGAGEMENT_SPECS = 'engagement_specs';
67
  const ETHNIC_AFFINITY = 'ethnic_affinity';
68
  const EXCLUDE_REACHED_SINCE = 'exclude_reached_since';
69
  const EXCLUDED_CONNECTIONS = 'excluded_connections';
70
  const EXCLUDED_CUSTOM_AUDIENCES = 'excluded_custom_audiences';
71
  const EXCLUDED_DYNAMIC_AUDIENCE_IDS = 'excluded_dynamic_audience_ids';
72
  const EXCLUDED_ENGAGEMENT_SPECS = 'excluded_engagement_specs';
73
  const EXCLUDED_GEO_LOCATIONS = 'excluded_geo_locations';
74
  const EXCLUDED_MOBILE_DEVICE_MODEL = 'excluded_mobile_device_model';
75
  const EXCLUDED_PRODUCT_AUDIENCE_SPECS = 'excluded_product_audience_specs';
76
  const EXCLUDED_PUBLISHER_CATEGORIES = 'excluded_publisher_categories';
77
  const EXCLUDED_PUBLISHER_LIST_IDS = 'excluded_publisher_list_ids';
78
  const EXCLUDED_USER_DEVICE = 'excluded_user_device';
79
  const EXCLUSIONS = 'exclusions';
80
  const FACEBOOK_POSITIONS = 'facebook_positions';
81
  const FAMILY_STATUSES = 'family_statuses';
82
  const FB_DEAL_ID = 'fb_deal_id';
83
  const FLEXIBLE_SPEC = 'flexible_spec';
84
  const FRIENDS_OF_CONNECTIONS = 'friends_of_connections';
85
  const GENDERS = 'genders';
86
  const GENERATION = 'generation';
87
  const GEO_LOCATIONS = 'geo_locations';
88
  const HOME_OWNERSHIP = 'home_ownership';
89
  const HOME_TYPE = 'home_type';
90
  const HOME_VALUE = 'home_value';
91
  const HOUSEHOLD_COMPOSITION = 'household_composition';
92
  const INCOME = 'income';
93
  const INDUSTRIES = 'industries';
94
  const INSTAGRAM_POSITIONS = 'instagram_positions';
95
  const INTERESTED_IN = 'interested_in';
96
  const INTERESTS = 'interests';
97
  const KEYWORDS = 'keywords';
98
  const LIFE_EVENTS = 'life_events';
99
  const LOCALES = 'locales';
100
  const MESSENGER_POSITIONS = 'messenger_positions';
101
  const MOMS = 'moms';
102
  const NET_WORTH = 'net_worth';
103
  const OFFICE_TYPE = 'office_type';
104
  const PLACE_PAGE_SET_IDS = 'place_page_set_ids';
105
  const POLITICAL_VIEWS = 'political_views';
106
  const POLITICS = 'politics';
107
  const PRODUCT_AUDIENCE_SPECS = 'product_audience_specs';
108
  const PUBLISHER_PLATFORMS = 'publisher_platforms';
109
  const PUBLISHER_VISIBILITY_CATEGORIES = 'publisher_visibility_categories';
110
  const RADIUS = 'radius';
111
  const REGIONS = 'regions';
112
  const RELATIONSHIP_STATUSES = 'relationship_statuses';
113
  const RTB_FLAG = 'rtb_flag';
114
  const SITE_CATEGORY = 'site_category';
115
  const TARGETING_OPTIMIZATION = 'targeting_optimization';
116
  const USER_ADCLUSTERS = 'user_adclusters';
117
  const USER_DEVICE = 'user_device';
118
  const USER_EVENT = 'user_event';
119
  const USER_OS = 'user_os';
120
  const WIRELESS_CARRIER = 'wireless_carrier';
121
  const WORK_EMPLOYERS = 'work_employers';
122
  const WORK_POSITIONS = 'work_positions';
123
  const ZIPS = 'zips';
124
125
  public function getFieldTypes() {
126
    return array(
127
      'adgroup_id' => 'string',
128
      'age_max' => 'unsigned int',
129
      'age_min' => 'unsigned int',
130
      'app_install_state' => 'string',
131
      'audience_network_positions' => 'list<string>',
132
      'behaviors' => 'list<IDName>',
133
      'cities' => 'list<IDName>',
134
      'college_years' => 'list<unsigned int>',
135
      'connections' => 'list<IDName>',
136
      'contextual_targeting_categories' => 'list<IDName>',
137
      'countries' => 'list<string>',
138
      'country' => 'list<string>',
139
      'country_groups' => 'list<string>',
140
      'custom_audiences' => 'list<IDName>',
141
      'device_platforms' => 'list<DevicePlatforms>',
142
      'direct_install_devices' => 'bool',
143
      'dynamic_audience_ids' => 'list<string>',
144
      'education_majors' => 'list<IDName>',
145
      'education_schools' => 'list<IDName>',
146
      'education_statuses' => 'list<unsigned int>',
147
      'effective_audience_network_positions' => 'list<string>',
148
      'effective_device_platforms' => 'list<EffectiveDevicePlatforms>',
149
      'effective_facebook_positions' => 'list<string>',
150
      'effective_instagram_positions' => 'list<string>',
151
      'effective_messenger_positions' => 'list<string>',
152
      'effective_publisher_platforms' => 'list<string>',
153
      'engagement_specs' => 'list<TargetingDynamicRule>',
154
      'ethnic_affinity' => 'list<IDName>',
155
      'exclude_reached_since' => 'list<string>',
156
      'excluded_connections' => 'list<IDName>',
157
      'excluded_custom_audiences' => 'list<IDName>',
158
      'excluded_dynamic_audience_ids' => 'list<string>',
159
      'excluded_engagement_specs' => 'list<TargetingDynamicRule>',
160
      'excluded_geo_locations' => 'TargetingGeoLocation',
161
      'excluded_mobile_device_model' => 'list<string>',
162
      'excluded_product_audience_specs' => 'list<TargetingProductAudienceSpec>',
163
      'excluded_publisher_categories' => 'list<string>',
164
      'excluded_publisher_list_ids' => 'list<string>',
165
      'excluded_user_device' => 'list<string>',
166
      'exclusions' => 'FlexibleTargeting',
167
      'facebook_positions' => 'list<string>',
168
      'family_statuses' => 'list<IDName>',
169
      'fb_deal_id' => 'string',
170
      'flexible_spec' => 'list<FlexibleTargeting>',
171
      'friends_of_connections' => 'list<IDName>',
172
      'genders' => 'list<unsigned int>',
173
      'generation' => 'list<IDName>',
174
      'geo_locations' => 'TargetingGeoLocation',
175
      'home_ownership' => 'list<IDName>',
176
      'home_type' => 'list<IDName>',
177
      'home_value' => 'list<IDName>',
178
      'household_composition' => 'list<IDName>',
179
      'income' => 'list<IDName>',
180
      'industries' => 'list<IDName>',
181
      'instagram_positions' => 'list<string>',
182
      'interested_in' => 'list<unsigned int>',
183
      'interests' => 'list<IDName>',
184
      'keywords' => 'list<string>',
185
      'life_events' => 'list<IDName>',
186
      'locales' => 'list<unsigned int>',
187
      'messenger_positions' => 'list<string>',
188
      'moms' => 'list<IDName>',
189
      'net_worth' => 'list<IDName>',
190
      'office_type' => 'list<IDName>',
191
      'place_page_set_ids' => 'list<string>',
192
      'political_views' => 'list<unsigned int>',
193
      'politics' => 'list<IDName>',
194
      'product_audience_specs' => 'list<TargetingProductAudienceSpec>',
195
      'publisher_platforms' => 'list<string>',
196
      'publisher_visibility_categories' => 'list<string>',
197
      'radius' => 'string',
198
      'regions' => 'list<IDName>',
199
      'relationship_statuses' => 'list<unsigned int>',
200
      'rtb_flag' => 'bool',
201
      'site_category' => 'list<string>',
202
      'targeting_optimization' => 'string',
203
      'user_adclusters' => 'list<IDName>',
204
      'user_device' => 'list<string>',
205
      'user_event' => 'list<unsigned int>',
206
      'user_os' => 'list<string>',
207
      'wireless_carrier' => 'list<string>',
208
      'work_employers' => 'list<IDName>',
209
      'work_positions' => 'list<IDName>',
210
      'zips' => 'list<string>',
211
    );
212
  }
213
}
214