google_api_ad_sense_host v0.10.0 GoogleApi.AdSenseHost.V41.Api.Accounts View Source
API calls for all endpoints tagged Accounts
.
Link to this section Summary
Functions
Get information about one of the ad clients in the specified publisher's AdSense account.
List all hosted ad clients in the specified hosted account.
Delete the specified ad unit from the specified publisher AdSense account.
Get the specified host ad unit in this AdSense account.
Get ad code for the specified ad unit, attaching the specified host custom channels.
Insert the supplied ad unit into the specified publisher AdSense account.
List all ad units in the specified publisher's AdSense account.
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
Update the supplied ad unit in the specified publisher AdSense account.
Get information about the selected associated AdSense account.
List hosted accounts associated with this AdSense account by ad client id.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Link to this section Functions
adsensehost_accounts_adclients_get(connection, account_id, ad_client_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adclients_get( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdClient.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Get information about one of the ad clients in the specified publisher's AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad client.ad_client_id
(type:String.t
) - Ad client to get.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdClient{}}
on success{:error, info}
on failure
adsensehost_accounts_adclients_list(connection, account_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adclients_list( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdClients.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
List all hosted ad clients in the specified hosted account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account for which to list ad clients.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:maxResults
(type:integer()
) - The maximum number of ad clients to include in the response, used for paging.:pageToken
(type:String.t
) - A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdClients{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_delete(connection, account_id, ad_client_id, ad_unit_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_delete( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnit.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Delete the specified ad unit from the specified publisher AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad unit.ad_client_id
(type:String.t
) - Ad client for which to get ad unit.ad_unit_id
(type:String.t
) - Ad unit to delete.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnit{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_get(connection, account_id, ad_client_id, ad_unit_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_get( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnit.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Get the specified host ad unit in this AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad unit.ad_client_id
(type:String.t
) - Ad client for which to get ad unit.ad_unit_id
(type:String.t
) - Ad unit to get.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnit{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_get_ad_code(connection, account_id, ad_client_id, ad_unit_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_get_ad_code( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdCode.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Get ad code for the specified ad unit, attaching the specified host custom channels.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad client.ad_client_id
(type:String.t
) - Ad client with contains the ad unit.ad_unit_id
(type:String.t
) - Ad unit to get the code for.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:hostCustomChannelId
(type:list(String.t)
) - Host custom channel to attach to the ad code.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdCode{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_insert(connection, account_id, ad_client_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_insert( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnit.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Insert the supplied ad unit into the specified publisher AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which will contain the ad unit.ad_client_id
(type:String.t
) - Ad client into which to insert the ad unit.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:body
(type:GoogleApi.AdSenseHost.V41.Model.AdUnit.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnit{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_list(connection, account_id, ad_client_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_list( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnits.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
List all ad units in the specified publisher's AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad client.ad_client_id
(type:String.t
) - Ad client for which to list ad units.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:includeInactive
(type:boolean()
) - Whether to include inactive ad units. Default: true.:maxResults
(type:integer()
) - The maximum number of ad units to include in the response, used for paging.:pageToken
(type:String.t
) - A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnits{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_patch(connection, account_id, ad_client_id, ad_unit_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_patch( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnit.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad client.ad_client_id
(type:String.t
) - Ad client which contains the ad unit.ad_unit_id
(type:String.t
) - Ad unit to get.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:body
(type:GoogleApi.AdSenseHost.V41.Model.AdUnit.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnit{}}
on success{:error, info}
on failure
adsensehost_accounts_adunits_update(connection, account_id, ad_client_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_adunits_update( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.AdUnit.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Update the supplied ad unit in the specified publisher AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account which contains the ad client.ad_client_id
(type:String.t
) - Ad client which contains the ad unit.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:body
(type:GoogleApi.AdSenseHost.V41.Model.AdUnit.t
) -
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.AdUnit{}}
on success{:error, info}
on failure
adsensehost_accounts_get(connection, account_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_get(Tesla.Env.client(), String.t(), keyword(), keyword()) :: {:ok, GoogleApi.AdSenseHost.V41.Model.Account.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Get information about the selected associated AdSense account.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Account to get information about.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.Account{}}
on success{:error, info}
on failure
adsensehost_accounts_list(connection, filter_ad_client_id, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_list( Tesla.Env.client(), [String.t()], keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.Accounts.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
List hosted accounts associated with this AdSense account by ad client id.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serverfilter_ad_client_id
(type:list(String.t)
) - Ad clients to list accounts for.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.Accounts{}}
on success{:error, info}
on failure
adsensehost_accounts_reports_generate(connection, account_id, start_date, end_date, optional_params \\ [], opts \\ [])
View Sourceadsensehost_accounts_reports_generate( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.AdSenseHost.V41.Model.Report.t()} | {:ok, Tesla.Env.t()} | {:error, any()}
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Parameters
connection
(type:GoogleApi.AdSenseHost.V41.Connection.t
) - Connection to serveraccount_id
(type:String.t
) - Hosted account upon which to report.start_date
(type:String.t
) - Start of the date range to report on in "YYYY-MM-DD" format, inclusive.end_date
(type:String.t
) - End of the date range to report on in "YYYY-MM-DD" format, inclusive.optional_params
(type:keyword()
) - Optional parameters:alt
(type:String.t
) - Data format for the response.: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
) - An opaque string that represents a user for quota purposes. Must not exceed 40 characters.:userIp
(type:String.t
) - Deprecated. Please use quotaUser instead.:dimension
(type:list(String.t)
) - Dimensions to base the report on.:filter
(type:list(String.t)
) - Filters to be run on the report.:locale
(type:String.t
) - Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.:maxResults
(type:integer()
) - The maximum number of rows of report data to return.:metric
(type:list(String.t)
) - Numeric columns to include in the report.:sort
(type:list(String.t)
) - The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.:startIndex
(type:integer()
) - Index of the first row of report data to return.
opts
(type:keyword()
) - Call options
Returns
{:ok, %GoogleApi.AdSenseHost.V41.Model.Report{}}
on success{:error, info}
on failure