class PartnersPromotions extends Resource (View source)

The "promotions" collection of methods.

Typical usage is:

 $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);
 $promotions = $paymentsresellersubscriptionService->partners_promotions;

Methods

findEligible(string $parent, GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest $postBody, array $optParams = [])

To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope openid is sufficient, which will skip the consent screen. (promotions.findEligible)

listPartnersPromotions(string $parent, array $optParams = [])

Retrieves the promotions, such as free trial, that can be used by the partner. - This API doesn't apply to YouTube promotions currently. It should be autenticated with a service account. (promotions.listPartnersPromotions)

Details

GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse findEligible(string $parent, GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest $postBody, array $optParams = [])

To find eligible promotions for the current user. The API requires user authorization via OAuth. The bare minimum oauth scope openid is sufficient, which will skip the consent screen. (promotions.findEligible)

Parameters

string $parent

Required. The parent, the partner that can resell. Format: partners/{partner}

GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse

Exceptions

Exception

GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse listPartnersPromotions(string $parent, array $optParams = [])

Retrieves the promotions, such as free trial, that can be used by the partner. - This API doesn't apply to YouTube promotions currently. It should be autenticated with a service account. (promotions.listPartnersPromotions)

Parameters

string $parent

Required. The parent, the partner that can resell. Format: partners/{partner}

array $optParams

Optional parameters.

Return Value

GoogleCloudPaymentsResellerSubscriptionV1ListPromotionsResponse

Exceptions

Exception