blob: 92303d368d7ca5e18a205248461ec680997c79ee [file] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="searchads360_v23.html">Search Ads 360 Reporting API</a> . <a href="searchads360_v23.incentives.html">incentives</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#fetchIncentive">fetchIncentive(countryCode=None, email=None, languageCode=None, type=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns incentives for a given user.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="fetchIncentive">fetchIncentive(countryCode=None, email=None, languageCode=None, type=None, x__xgafv=None)</code>
<pre>Returns incentives for a given user.
Args:
countryCode: string, Optional. User&#x27;s country code. If not provided, the server will default to &quot;US&quot;. Possible country codes: https://developers.google.com/google-ads/api/data/codes-formats#country_codes
email: string, Optional. Email of the user that the requested incentive is meant for. Will be used for channel partners who do NOT use OAuth to authenticate on behalf of user.
languageCode: string, Optional. User&#x27;s language code. If not provided, the server will default to &quot;en&quot;. Possible language codes: https://developers.google.com/google-ads/api/data/codes-formats#languages
type: string, Optional. The type of incentive to get. Defaults to ACQUISITION.
Allowed values
UNSPECIFIED - Not specified.
UNKNOWN - Unknown incentive type. Should not be used as a value explicitly.
ACQUISITION - An acquisition incentive.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response from getting the acquisition incentive for a user when they visit a specific marketing page.
&quot;incentiveOffer&quot;: { # An acquisition incentive offer for a user. An offer means how the user is treated. An offer can have no incentive or multiple incentives. # Required. The acquisition incentive offer for the user.
&quot;consolidatedTermsAndConditionsUrl&quot;: &quot;A String&quot;, # Optional. The URL of the terms and conditions for the incentive offer.
&quot;cyoIncentives&quot;: { # An incentive offer in the Choose-Your-Own Incentive feature where a user can select from a set of incentives with different money amounts. # CYO incentives. Set when type is CYO_INCENTIVE.
&quot;highOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with high target and award amounts.
&quot;incentiveId&quot;: &quot;A String&quot;, # The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
&quot;incentiveTermsAndConditionsUrl&quot;: &quot;A String&quot;, # The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
&quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
&quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
&quot;awardAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount in free spend that user will be granted after spending target amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
&quot;requiredAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount that user must spend to receive the award amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
},
},
&quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
},
&quot;lowOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with low target and award amounts.
&quot;incentiveId&quot;: &quot;A String&quot;, # The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
&quot;incentiveTermsAndConditionsUrl&quot;: &quot;A String&quot;, # The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
&quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
&quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
&quot;awardAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount in free spend that user will be granted after spending target amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
&quot;requiredAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount that user must spend to receive the award amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
},
},
&quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
},
&quot;mediumOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with medium target and award amounts.
&quot;incentiveId&quot;: &quot;A String&quot;, # The incentive ID of this incentive. This is used to identify which incentive is selected by the user in the CYO flow.
&quot;incentiveTermsAndConditionsUrl&quot;: &quot;A String&quot;, # The URL of the terms and conditions for THIS incentive offer ONLY. This is different from the terms_and_conditions_url field in AcquisitionIncentiveOffer which is a combination of all the Incentive offers in a CYO offer.
&quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
&quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
&quot;awardAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount in free spend that user will be granted after spending target amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
&quot;requiredAmount&quot;: { # Represents an amount of money with its currency type. # Required. Amount that user must spend to receive the award amount. Denominated in the currency of the country passed in the get request.
&quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
&quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
&quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
},
},
},
&quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
},
},
&quot;type&quot;: &quot;A String&quot;, # Required. The type of this acquisition incentive offer.
},
}</pre>
</div>
</body></html>