public class AdMob.Accounts.AdUnits extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
AdMob.Accounts.AdUnits.AdUnitMappings
The "adUnitMappings" collection of methods.
|
class |
AdMob.Accounts.AdUnits.Create |
class |
AdMob.Accounts.AdUnits.List |
| Constructor and Description |
|---|
AdUnits() |
| Modifier and Type | Method and Description |
|---|---|
AdMob.Accounts.AdUnits.AdUnitMappings |
adUnitMappings()
An accessor for creating requests from the AdUnitMappings collection.
|
AdMob.Accounts.AdUnits.Create |
create(String parent,
AdUnit content)
Creates an ad unit under the specified AdMob account.
|
AdMob.Accounts.AdUnits.List |
list(String parent)
List the ad units under the specified AdMob account.
|
public AdMob.Accounts.AdUnits.Create create(String parent, AdUnit content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Resource name of the account to create the specified ad unit for. Example:
accounts/pub-9876543210987654content - the AdUnitIOExceptionpublic AdMob.Accounts.AdUnits.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Resource name of the account to list ad units for. Example: accounts/pub-9876543210987654IOExceptionpublic AdMob.Accounts.AdUnits.AdUnitMappings adUnitMappings()
The typical use is:
AdMob admob = new AdMob(...);AdMob.AdUnitMappings.List request = admob.adUnitMappings().list(parameters ...)
Copyright © 2011–2024 Google. All rights reserved.