@@ -25,6 +25,24 @@ class Item
25
25
26
26
use HasListName;
27
27
28
+ public const BUSINESS_VERTICAL_RETAIL = 'retail ' ;
29
+
30
+ public const BUSINESS_VERTICAL_EDUCATION = 'education ' ;
31
+
32
+ public const BUSINESS_VERTICAL_FLIGHTS = 'flights ' ;
33
+
34
+ public const BUSINESS_VERTICAL_HOTEL_RENTAL = 'hotel_rental ' ;
35
+
36
+ public const BUSINESS_VERTICAL_JOBS = 'jobs ' ;
37
+
38
+ public const BUSINESS_VERTICAL_LOCAL = 'local ' ;
39
+
40
+ public const BUSINESS_VERTICAL_REAL_ESTATE = 'real_estate ' ;
41
+
42
+ public const BUSINESS_VERTICAL_TRAVEL = 'travel ' ;
43
+
44
+ public const BUSINESS_VERTICAL_CUSTOM = 'custom ' ;
45
+
28
46
protected ?string $ id = null ;
29
47
30
48
protected ?string $ name = null ;
@@ -53,6 +71,8 @@ class Item
53
71
54
72
protected int $ quantity = 1 ;
55
73
74
+ protected ?string $ businessVertical = null ;
75
+
56
76
public function getId (): ?string
57
77
{
58
78
return $ this ->id ;
@@ -221,6 +241,21 @@ public function setQuantity(int $quantity): self
221
241
return $ this ;
222
242
}
223
243
244
+ /**
245
+ * See https://support.google.com/google-ads/answer/7305793
246
+ */
247
+ public function getBusinessVertical (): ?string
248
+ {
249
+ return $ this ->businessVertical ;
250
+ }
251
+
252
+ public function setBusinessVertical (?string $ businessVertical ): self
253
+ {
254
+ $ this ->businessVertical = $ businessVertical ;
255
+
256
+ return $ this ;
257
+ }
258
+
224
259
public function getParameters (): array
225
260
{
226
261
return array_filter ([
@@ -243,6 +278,7 @@ public function getParameters(): array
243
278
'location_id ' => $ this ->locationId ,
244
279
'price ' => $ this ->price ,
245
280
'quantity ' => $ this ->quantity ,
281
+ 'google_business_vertical ' => $ this ->businessVertical ,
246
282
]);
247
283
}
248
284
}
0 commit comments