
target.apidocs.com.google.api.services.adsensehost.AdSenseHost.Accounts.Adunits.html Maven / Gradle / Ivy
AdSenseHost.Accounts.Adunits (AdSense Host API v4.1-rev20200930-2.0.0)
com.google.api.services.adsensehost
Class AdSenseHost.Accounts.Adunits
- java.lang.Object
-
- com.google.api.services.adsensehost.AdSenseHost.Accounts.Adunits
-
- Enclosing class:
- AdSenseHost.Accounts
public class AdSenseHost.Accounts.Adunits
extends Object
The "adunits" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AdSenseHost.Accounts.Adunits.Delete
class
AdSenseHost.Accounts.Adunits.Get
class
AdSenseHost.Accounts.Adunits.GetAdCode
class
AdSenseHost.Accounts.Adunits.Insert
class
AdSenseHost.Accounts.Adunits.List
class
AdSenseHost.Accounts.Adunits.Patch
class
AdSenseHost.Accounts.Adunits.Update
-
Constructor Summary
Constructors
Constructor and Description
Adunits()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AdSenseHost.Accounts.Adunits.Delete
delete(String accountId,
String adClientId,
String adUnitId)
Delete the specified ad unit from the specified publisher AdSense account.
AdSenseHost.Accounts.Adunits.Get
get(String accountId,
String adClientId,
String adUnitId)
Get the specified host ad unit in this AdSense account.
AdSenseHost.Accounts.Adunits.GetAdCode
getAdCode(String accountId,
String adClientId,
String adUnitId)
Get ad code for the specified ad unit, attaching the specified host custom channels.
AdSenseHost.Accounts.Adunits.Insert
insert(String accountId,
String adClientId,
AdUnit content)
Insert the supplied ad unit into the specified publisher AdSense account.
AdSenseHost.Accounts.Adunits.List
list(String accountId,
String adClientId)
List all ad units in the specified publisher's AdSense account.
AdSenseHost.Accounts.Adunits.Patch
patch(String accountId,
String adClientId,
String adUnitId,
AdUnit content)
Update the supplied ad unit in the specified publisher AdSense account.
AdSenseHost.Accounts.Adunits.Update
update(String accountId,
String adClientId,
AdUnit content)
Update the supplied ad unit in the specified publisher AdSense account.
-
-
Method Detail
-
delete
public AdSenseHost.Accounts.Adunits.Delete delete(String accountId,
String adClientId,
String adUnitId)
throws IOException
Delete the specified ad unit from the specified publisher AdSense account.
Create a request for the method "adunits.delete".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad unit.
adClientId
- Ad client for which to get ad unit.
adUnitId
- Ad unit to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public AdSenseHost.Accounts.Adunits.Get get(String accountId,
String adClientId,
String adUnitId)
throws IOException
Get the specified host ad unit in this AdSense account.
Create a request for the method "adunits.get".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad unit.
adClientId
- Ad client for which to get ad unit.
adUnitId
- Ad unit to get.
- Returns:
- the request
- Throws:
IOException
-
getAdCode
public AdSenseHost.Accounts.Adunits.GetAdCode getAdCode(String accountId,
String adClientId,
String adUnitId)
throws IOException
Get ad code for the specified ad unit, attaching the specified host custom channels.
Create a request for the method "adunits.getAdCode".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad client.
adClientId
- Ad client with contains the ad unit.
adUnitId
- Ad unit to get the code for.
- Returns:
- the request
- Throws:
IOException
-
insert
public AdSenseHost.Accounts.Adunits.Insert insert(String accountId,
String adClientId,
AdUnit content)
throws IOException
Insert the supplied ad unit into the specified publisher AdSense account.
Create a request for the method "adunits.insert".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which will contain the ad unit.
adClientId
- Ad client into which to insert the ad unit.
content
- the AdUnit
- Returns:
- the request
- Throws:
IOException
-
list
public AdSenseHost.Accounts.Adunits.List list(String accountId,
String adClientId)
throws IOException
List all ad units in the specified publisher's AdSense account.
Create a request for the method "adunits.list".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad client.
adClientId
- Ad client for which to list ad units.
- Returns:
- the request
- Throws:
IOException
-
patch
public AdSenseHost.Accounts.Adunits.Patch patch(String accountId,
String adClientId,
String adUnitId,
AdUnit content)
throws IOException
Update the supplied ad unit in the specified publisher AdSense account. This method supports
patch semantics.
Create a request for the method "adunits.patch".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad client.
adClientId
- Ad client which contains the ad unit.
adUnitId
- Ad unit to get.
content
- the AdUnit
- Returns:
- the request
- Throws:
IOException
-
update
public AdSenseHost.Accounts.Adunits.Update update(String accountId,
String adClientId,
AdUnit content)
throws IOException
Update the supplied ad unit in the specified publisher AdSense account.
Create a request for the method "adunits.update".
This request holds the parameters needed by the adsensehost server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
accountId
- Account which contains the ad client.
adClientId
- Ad client which contains the ad unit.
content
- the AdUnit
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy