GADInAppPurchaseDelegate

@protocol GADInAppPurchaseDelegate <NSObject>

In-app purchase delegate protocol for custom purchase handling. The delegate must handle the product purchase flow then call the GADInAppPurchase object’s reportPurchaseStatus: method.

  • Called when the user clicks on the buy button of an in-app purchase ad. After the receiver handles the purchase, it must call the GADInAppPurchase object’s reportPurchaseStatus: method.

    Declaration

    Swift

    func didReceive(_ purchase: GADInAppPurchase!)

    Objective-C

    - (void)didReceiveInAppPurchase:(nonnull GADInAppPurchase *)purchase;