Skip to content

Commit 08148f8

Browse files
committed
Add google_business_vertical to Item
1 parent 17f89b7 commit 08148f8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/Request/Body/Event/Item/Item.php

+36
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ class Item
2525

2626
use HasListName;
2727

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+
2846
protected ?string $id = null;
2947

3048
protected ?string $name = null;
@@ -53,6 +71,8 @@ class Item
5371

5472
protected int $quantity = 1;
5573

74+
protected ?string $businessVertical = null;
75+
5676
public function getId(): ?string
5777
{
5878
return $this->id;
@@ -221,6 +241,21 @@ public function setQuantity(int $quantity): self
221241
return $this;
222242
}
223243

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+
224259
public function getParameters(): array
225260
{
226261
return array_filter([
@@ -243,6 +278,7 @@ public function getParameters(): array
243278
'location_id' => $this->locationId,
244279
'price' => $this->price,
245280
'quantity' => $this->quantity,
281+
'google_business_vertical' => $this->businessVertical,
246282
]);
247283
}
248284
}

0 commit comments

Comments
 (0)