applyIncentive(customerId, selectedIncentiveId, body=None, x__xgafv=None)
Applies the incentive for the ads customer.
Close httplib2 connections.
applyIncentive(customerId, selectedIncentiveId, body=None, x__xgafv=None)
Applies the incentive for the ads customer.
Args:
customerId: string, The customer ID of the account that the incentive is being applied to. (required)
selectedIncentiveId: string, The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow. (required)
body: object, The request body.
The object takes the form of:
{ # Request message for applying an incentive.
"countryCode": "A String", # Required. User's country code. Required. This field must be equal to the Google Ads account's billing country. Incentive eligibility, terms of service, and reward values are often country-specific. This country code is used to ensure the selected incentive is applicable to the user. Possible country codes: https://developers.google.com/google-ads/api/data/codes-formats#country_codes
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for applying an incentive.
"couponCode": "A String", # The coupon code of the applied incentive. A globally unique identifier of the applied incentive. This code is separate and distinct from the selected_incentive_id in the request.
"creationTime": "A String", # The timestamp when this incentive was applied. The timestamp is in UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
}
close()
Close httplib2 connections.