| 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.geoTargetConstants.html">geoTargetConstants</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="#suggest">suggest(body=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Returns GeoTargetConstant suggestions by location name or by resource name. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [GeoTargetConstantSuggestionError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()</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="suggest">suggest(body=None, x__xgafv=None)</code> |
| 91 |
<pre>Returns GeoTargetConstant suggestions by location name or by resource name. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [GeoTargetConstantSuggestionError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]() |
| 92 |
|
| 93 |
Args: |
| 94 |
body: object, The request body. |
| 95 |
The object takes the form of: |
| 96 |
|
| 97 |
{ # Request message for GeoTargetConstantService.SuggestGeoTargetConstants. |
| 98 |
"countryCode": "A String", # Returned geo targets are restricted to this country code. |
| 99 |
"geoTargets": { # A list of geo target constant resource names. # The geo target constant resource names to filter by. |
| 100 |
"geoTargetConstants": [ # A list of geo target constant resource names. |
| 101 |
"A String", |
| 102 |
], |
| 103 |
}, |
| 104 |
"locale": "A String", # If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets. |
| 105 |
"locationNames": { # A list of location names. # The location names to search by. At most 25 names can be set. |
| 106 |
"names": [ # A list of location names. |
| 107 |
"A String", |
| 108 |
], |
| 109 |
}, |
| 110 |
} |
| 111 |
|
| 112 |
x__xgafv: string, V1 error format. |
| 113 |
Allowed values |
| 114 |
1 - v1 error format |
| 115 |
2 - v2 error format |
| 116 |
|
| 117 |
Returns: |
| 118 |
An object of the form: |
| 119 |
|
| 120 |
{ # Response message for GeoTargetConstantService.SuggestGeoTargetConstants. |
| 121 |
"geoTargetConstantSuggestions": [ # Geo target constant suggestions. |
| 122 |
{ # A geo target constant suggestion. |
| 123 |
"geoTargetConstant": { # A geo target constant. # The GeoTargetConstant result. |
| 124 |
"canonicalName": "A String", # Output only. The fully qualified English name, consisting of the target's name and that of its parent and country. |
| 125 |
"countryCode": "A String", # Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. |
| 126 |
"id": "A String", # Output only. The ID of the geo target constant. |
| 127 |
"name": "A String", # Output only. Geo target constant English name. |
| 128 |
"parentGeoTarget": "A String", # Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}` |
| 129 |
"resourceName": "A String", # Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}` |
| 130 |
"status": "A String", # Output only. Geo target constant status. |
| 131 |
"targetType": "A String", # Output only. Geo target constant target type. |
| 132 |
}, |
| 133 |
"geoTargetConstantParents": [ # The list of parents of the geo target constant. |
| 134 |
{ # A geo target constant. |
| 135 |
"canonicalName": "A String", # Output only. The fully qualified English name, consisting of the target's name and that of its parent and country. |
| 136 |
"countryCode": "A String", # Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. |
| 137 |
"id": "A String", # Output only. The ID of the geo target constant. |
| 138 |
"name": "A String", # Output only. Geo target constant English name. |
| 139 |
"parentGeoTarget": "A String", # Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{parent_geo_target_constant_id}` |
| 140 |
"resourceName": "A String", # Output only. The resource name of the geo target constant. Geo target constant resource names have the form: `geoTargetConstants/{geo_target_constant_id}` |
| 141 |
"status": "A String", # Output only. Geo target constant status. |
| 142 |
"targetType": "A String", # Output only. Geo target constant target type. |
| 143 |
}, |
| 144 |
], |
| 145 |
"locale": "A String", # The language this GeoTargetConstantSuggestion is currently translated to. It affects the name of geo target fields. For example, if locale=en, then name=Spain. If locale=es, then name=EspaƱa. The default locale will be returned if no translation exists for the locale in the request. |
| 146 |
"reach": "A String", # Approximate user population that will be targeted, rounded to the nearest 100. |
| 147 |
"searchTerm": "A String", # If the request searched by location name, this is the location name that matched the geo target. |
| 148 |
}, |
| 149 |
], |
| 150 |
}</pre> |
| 151 |
</div> |
| 152 |
|
| 153 |
</body></html> |