Debian Codegraph @

docs/dyn/searchads360_v23.incentives.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="searchads360_v23.html">Search Ads 360 Reporting API</a> . <a href="searchads360_v23.incentives.html">incentives</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#fetchIncentive">fetchIncentive(countryCode=None, email=None, languageCode=None, type=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Returns incentives for a given user.</p>
83 <h3>Method Details</h3>
84 <div class="method">
85 <code class="details" id="close">close()</code>
86 <pre>Close httplib2 connections.</pre>
87 </div>
88
89 <div class="method">
90 <code class="details" id="fetchIncentive">fetchIncentive(countryCode=None, email=None, languageCode=None, type=None, x__xgafv=None)</code>
91 <pre>Returns incentives for a given user.
92
93 Args:
94 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
95 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.
96 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
97 type: string, Optional. The type of incentive to get. Defaults to ACQUISITION.
98 Allowed values
99 UNSPECIFIED - Not specified.
100 UNKNOWN - Unknown incentive type. Should not be used as a value explicitly.
101 ACQUISITION - An acquisition incentive.
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
106
107 Returns:
108 An object of the form:
109
110 { # Response from getting the acquisition incentive for a user when they visit a specific marketing page.
111 &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.
112 &quot;consolidatedTermsAndConditionsUrl&quot;: &quot;A String&quot;, # Optional. The URL of the terms and conditions for the incentive offer.
113 &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.
114 &quot;highOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with high target and award amounts.
115 &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.
116 &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.
117 &quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
118 &quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
119 &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.
120 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
121 &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.
122 &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.
123 },
124 &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.
125 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
126 &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.
127 &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.
128 },
129 },
130 },
131 &quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
132 },
133 &quot;lowOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with low target and award amounts.
134 &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.
135 &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.
136 &quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
137 &quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
138 &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.
139 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
140 &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.
141 &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.
142 },
143 &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.
144 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
145 &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.
146 &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.
147 },
148 },
149 },
150 &quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
151 },
152 &quot;mediumOffer&quot;: { # An incentive that a user can claim for their account. # Required. The CYO incentive with medium target and award amounts.
153 &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.
154 &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.
155 &quot;requirement&quot;: { # Requirement for an incentive. # The requirement for this incentive.
156 &quot;spend&quot;: { # Spend requirements for an incentive. # Optional. Spend requirement for an incentive.
157 &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.
158 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
159 &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.
160 &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.
161 },
162 &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.
163 &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
164 &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.
165 &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.
166 },
167 },
168 },
169 &quot;type&quot;: &quot;A String&quot;, # The type of the incentive.
170 },
171 },
172 &quot;type&quot;: &quot;A String&quot;, # Required. The type of this acquisition incentive offer.
173 },
174 }</pre>
175 </div>
176
177 </body></html>