All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.
    • Constructor Detail

      • Adunits

        public Adunits()
    • 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