Promotions
class Promotions extends Resource (View source)
The "promotions" collection of methods.
Typical usage is:
$contentService = new Google\Service\ShoppingContent(...);
$promotions = $contentService->promotions;
Methods
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping- content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed. (promotions.create)
Retrieves a promotion from your Merchant Center account. (promotions.get)
List all promotions from your Merchant Center account.
Details
Promotion
create(string $merchantId, Promotion $postBody, array $optParams = [])
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead. To [end or delete] (https://developers.google.com/shopping- content/guides/promotions#end_a_promotion) a promotion update the time period of the promotion to a time that has already passed. (promotions.create)
Promotion
get(string $merchantId, string $id, array $optParams = [])
Retrieves a promotion from your Merchant Center account. (promotions.get)
ListPromotionResponse
listPromotions(string $merchantId, array $optParams = [])
List all promotions from your Merchant Center account.
(promotions.listPromotions)