GoogleApi.AdMob.V1.Api.Accounts (google_api_ad_mob v0.7.1) View Source

API calls for all endpoints tagged Accounts.

Link to this section Summary

Functions

Gets information about the specified AdMob publisher account.

List the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.

Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Link to this section Functions

Link to this function

admob_accounts_get(connection, name, optional_params \\ [], opts \\ [])

View Source

Specs

admob_accounts_get(Tesla.Env.client(), String.t(), keyword(), keyword()) ::
  {:ok, GoogleApi.AdMob.V1.Model.PublisherAccount.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

Gets information about the specified AdMob publisher account.

Parameters

  • connection (type: GoogleApi.AdMob.V1.Connection.t) - Connection to server
  • name (type: String.t) - Resource name of the publisher account to retrieve. Example: accounts/pub-9876543210987654
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.AdMob.V1.Model.PublisherAccount{}} on success
  • {:error, info} on failure
Link to this function

admob_accounts_list(connection, optional_params \\ [], opts \\ [])

View Source

Specs

admob_accounts_list(Tesla.Env.client(), keyword(), keyword()) ::
  {:ok, GoogleApi.AdMob.V1.Model.ListPublisherAccountsResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

List the AdMob publisher account accessible with the client credential. Currently, all credentials have access to at most one AdMob account.

Parameters

  • connection (type: GoogleApi.AdMob.V1.Connection.t) - Connection to server
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :pageSize (type: integer()) - Maximum number of accounts to return.
    • :pageToken (type: String.t) - The value returned by the last ListPublisherAccountsResponse; indicates that this is a continuation of a prior ListPublisherAccounts call, and that the system should return the next page of data.
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.AdMob.V1.Model.ListPublisherAccountsResponse{}} on success
  • {:error, info} on failure
Link to this function

admob_accounts_mediation_report_generate(connection, parent, optional_params \\ [], opts \\ [])

View Source

Specs

admob_accounts_mediation_report_generate(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.AdMob.V1.Model.GenerateMediationReportResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

Generates an AdMob Mediation report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Parameters

  • connection (type: GoogleApi.AdMob.V1.Connection.t) - Connection to server
  • parent (type: String.t) - Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.AdMob.V1.Model.GenerateMediationReportRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.AdMob.V1.Model.GenerateMediationReportResponse{}} on success
  • {:error, info} on failure
Link to this function

admob_accounts_network_report_generate(connection, parent, optional_params \\ [], opts \\ [])

View Source

Specs

admob_accounts_network_report_generate(
  Tesla.Env.client(),
  String.t(),
  keyword(),
  keyword()
) ::
  {:ok, GoogleApi.AdMob.V1.Model.GenerateNetworkReportResponse.t()}
  | {:ok, Tesla.Env.t()}
  | {:error, any()}

Generates an AdMob Network report based on the provided report specification. Returns result of a server-side streaming RPC. The result is returned in a sequence of responses.

Parameters

  • connection (type: GoogleApi.AdMob.V1.Connection.t) - Connection to server
  • parent (type: String.t) - Resource name of the account to generate the report for. Example: accounts/pub-9876543210987654
  • optional_params (type: keyword()) - Optional parameters
    • :"$.xgafv" (type: String.t) - V1 error format.
    • :access_token (type: String.t) - OAuth access token.
    • :alt (type: String.t) - Data format for response.
    • :callback (type: String.t) - JSONP
    • :fields (type: String.t) - Selector specifying which fields to include in a partial response.
    • :key (type: String.t) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
    • :oauth_token (type: String.t) - OAuth 2.0 token for the current user.
    • :prettyPrint (type: boolean()) - Returns response with indentations and line breaks.
    • :quotaUser (type: String.t) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
    • :uploadType (type: String.t) - Legacy upload protocol for media (e.g. "media", "multipart").
    • :upload_protocol (type: String.t) - Upload protocol for media (e.g. "raw", "multipart").
    • :body (type: GoogleApi.AdMob.V1.Model.GenerateNetworkReportRequest.t) -
  • opts (type: keyword()) - Call options

Returns

  • {:ok, %GoogleApi.AdMob.V1.Model.GenerateNetworkReportResponse{}} on success
  • {:error, info} on failure