| 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="admob_v1beta.html">AdMob API</a> . <a href="admob_v1beta.accounts.html">accounts</a> . <a href="admob_v1beta.accounts.adUnitMappings.html">adUnitMappings</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p> |
| 79 |
<p class="firstline">Batch create the ad unit mappings under the specific AdMob account. The maximum allowed batch size is 100. This method has limited access. If you see a 403 permission denied error, please reach out to your account manager for access.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#close">close()</a></code></p> |
| 82 |
<p class="firstline">Close httplib2 connections.</p> |
| 83 |
<h3>Method Details</h3> |
| 84 |
<div class="method"> |
| 85 |
<code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code> |
| 86 |
<pre>Batch create the ad unit mappings under the specific AdMob account. The maximum allowed batch size is 100. This method has limited access. If you see a 403 permission denied error, please reach out to your account manager for access. |
| 87 |
|
| 88 |
Args: |
| 89 |
parent: string, Required. The AdMob account which owns this collection of ad unit mappings. Format: accounts/{publisher_id} See https://support.google.com/admob/answer/2784578 for instructions on how to find your AdMob publisher ID. (required) |
| 90 |
body: object, The request body. |
| 91 |
The object takes the form of: |
| 92 |
|
| 93 |
{ # Request to create a batch of ad unit mappings under the specific AdMob account. |
| 94 |
"requests": [ # Required. The request message specifying the ad unit mappings to create. A maximum of 100 ad unit mappings can be created in a batch. If the number of ad unit mappings in the batch request exceed 100, the entire request will be rejected and no ad unit mappings will be created. |
| 95 |
{ # Request to create an ad unit mapping under the specific AdMob account and ad unit. |
| 96 |
"adUnitMapping": { # Settings to map an AdMob ad unit to a 3rd party ad unit. # Required. The ad unit mapping to create. |
| 97 |
"adUnitConfigurations": { # Settings for the specified ad unit to make an ad request to 3rd party ad network. Key-value pairs with values set by the user for the keys requested by the ad network. Please see https://support.google.com/admob/answer/3245073 for details on how to configure the network settings. |
| 98 |
"a_key": "A String", |
| 99 |
}, |
| 100 |
"adapterId": "A String", # The ID of mediation ad source adapter used by this ad unit mapping. The adapter determines the information needed in the ad_network_settings. |
| 101 |
"displayName": "A String", # Optional. The display name of this ad unit mapping instance. |
| 102 |
"name": "A String", # Resource name of this ad unit mapping. Format is: accounts/{publisher_id}/adUnits/{ad_unit_id_fragment}/adUnitMappings/{ad_unit_mapping_id} Example: accounts/pub-1234567890123456/adUnits/0123456789/adUnitMappings/987654321 |
| 103 |
"state": "A String", # Output only. The status of this ad unit mapping. |
| 104 |
}, |
| 105 |
"parent": "A String", # Required. The parent which owns the ad unit mapping. Format: accounts/{publisher_id}/adUnits/{ad_unit_id} |
| 106 |
}, |
| 107 |
], |
| 108 |
} |
| 109 |
|
| 110 |
x__xgafv: string, V1 error format. |
| 111 |
Allowed values |
| 112 |
1 - v1 error format |
| 113 |
2 - v2 error format |
| 114 |
|
| 115 |
Returns: |
| 116 |
An object of the form: |
| 117 |
|
| 118 |
{ # Response containing a batch of created ad unit mappings. |
| 119 |
"adUnitMappings": [ # The Ad units mappings created under the requested account. |
| 120 |
{ # Settings to map an AdMob ad unit to a 3rd party ad unit. |
| 121 |
"adUnitConfigurations": { # Settings for the specified ad unit to make an ad request to 3rd party ad network. Key-value pairs with values set by the user for the keys requested by the ad network. Please see https://support.google.com/admob/answer/3245073 for details on how to configure the network settings. |
| 122 |
"a_key": "A String", |
| 123 |
}, |
| 124 |
"adapterId": "A String", # The ID of mediation ad source adapter used by this ad unit mapping. The adapter determines the information needed in the ad_network_settings. |
| 125 |
"displayName": "A String", # Optional. The display name of this ad unit mapping instance. |
| 126 |
"name": "A String", # Resource name of this ad unit mapping. Format is: accounts/{publisher_id}/adUnits/{ad_unit_id_fragment}/adUnitMappings/{ad_unit_mapping_id} Example: accounts/pub-1234567890123456/adUnits/0123456789/adUnitMappings/987654321 |
| 127 |
"state": "A String", # Output only. The status of this ad unit mapping. |
| 128 |
}, |
| 129 |
], |
| 130 |
}</pre> |
| 131 |
</div> |
| 132 |
|
| 133 |
<div class="method"> |
| 134 |
<code class="details" id="close">close()</code> |
| 135 |
<pre>Close httplib2 connections.</pre> |
| 136 |
</div> |
| 137 |
|
| 138 |
</body></html> |