AdSense Management API (adsense:v2)

2022-09-22

5 new methods

Additions

    Methods
  • adsense.accounts.adclients.customchannels.delete

      Parameters:

        name

          Description: Required. Name of the custom channel to delete. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

          Pattern: ^accounts/[^/]+/adclients/[^/]+/customchannels/[^/]+$

          Type: string

          Required: Yes

          Location: path

      Flat Path: v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}

      Path: v2/{+name}

      Scopes: https://www.googleapis.com/auth/adsense

      Description: Deletes a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms product](https://developers.google.com/adsense/platforms/).

      HTTP Method: DELETE

      Parameter Order: name

  • adsense.accounts.adclients.customchannels.patch

      Description: Updates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms product](https://developers.google.com/adsense/platforms/).

      Scopes: https://www.googleapis.com/auth/adsense

      Parameter Order: name

      Flat Path: v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels/{customchannelsId}

      Path: v2/{+name}

      HTTP Method: PATCH

      Parameters:

        updateMask

          Type: string

          Description: The list of fields to update. If empty, a full update is performed.

          Location: query

          Format: google-fieldmask

        name

          Location: path

          Description: Output only. Resource name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}

          Required: Yes

          Type: string

          Pattern: ^accounts/[^/]+/adclients/[^/]+/customchannels/[^/]+$

  • adsense.accounts.adclients.customchannels.create

      Flat Path: v2/accounts/{accountsId}/adclients/{adclientsId}/customchannels

      Path: v2/{+parent}/customchannels

      Scopes: https://www.googleapis.com/auth/adsense

      Parameters:

        parent

          Pattern: ^accounts/[^/]+/adclients/[^/]+$

          Description: Required. The ad client to create a custom channel under. Format: accounts/{account}/adclients/{adclient}

          Location: path

          Type: string

          Required: Yes

      HTTP Method: POST

      Parameter Order: parent

      Description: Creates a custom channel. This method can only be used by projects enabled for the [AdSense for Platforms product](https://developers.google.com/adsense/platforms/).

  • adsense.accounts.adclients.adunits.create

      Parameters:

        parent

          Location: path

          Pattern: ^accounts/[^/]+/adclients/[^/]+$

          Required: Yes

          Type: string

          Description: Required. Ad client to create an ad unit under. Format: accounts/{account}/adclients/{adclient}

      Flat Path: v2/accounts/{accountsId}/adclients/{adclientsId}/adunits

      Description: Creates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms product](https://developers.google.com/adsense/platforms/). Note that ad units can only be created for ad clients with an "AFC" product code. For more info see the [AdClient resource](https://developers.google.com/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566

      HTTP Method: POST

      Parameter Order: parent

      Scopes: https://www.googleapis.com/auth/adsense

      Path: v2/{+parent}/adunits

  • adsense.accounts.adclients.adunits.patch

      Path: v2/{+name}

      Description: Updates an ad unit. This method can only be used by projects enabled for the [AdSense for Platforms product](https://developers.google.com/adsense/platforms/). For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566

      Scopes: https://www.googleapis.com/auth/adsense

      Parameter Order: name

      Parameters:

        updateMask

          Location: query

          Type: string

          Description: The list of fields to update. If empty, a full update is performed.

          Format: google-fieldmask

        name

          Required: Yes

          Location: path

          Pattern: ^accounts/[^/]+/adclients/[^/]+/adunits/[^/]+$

          Type: string

          Description: Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}

      Flat Path: v2/accounts/{accountsId}/adclients/{adclientsId}/adunits/{adunitsId}

      HTTP Method: PATCH