View Source GoogleAds (GoogleAds v0.1.2)
Documentation for GoogleAds
.
Summary
Functions
Append Local Services Lead Conversation resources to Local Services Lead resources.
Paginates the results of a paginated function.
Returns all rows that match the search query.
Types
@type access_token() :: String.t()
@type append_lead_conversation_response() :: {:ok, map()} | error_response()
@type customer_id() :: String.t()
@type developer_token() :: String.t()
@type error_response() :: {:error, :invalid_credentials | :invalid_permissions | any()}
@type paginated_function() :: (pagination_options() -> {:ok, map()} | error_response())
@type pagination_options() :: [{:pageToken, String.t()}]
@type pagination_result() :: {:ok, list()} | error_response()
@type request_body() :: map()
@type search_response() :: {:ok, map()} | error_response()
Functions
@spec append_lead_conversation( developer_token(), access_token(), customer_id(), request_body() ) :: append_lead_conversation_response()
Append Local Services Lead Conversation resources to Local Services Lead resources.
@spec paginate(paginated_function()) :: pagination_result()
Paginates the results of a paginated function.
Example:
GoogleAds.paginate(fn pagination_options ->
GoogleAds.search(developer_token, token, customer_id, request_body, pagination_options)
end)
@spec search(developer_token(), access_token(), customer_id(), request_body()) :: search_response()
Returns all rows that match the search query.
https://developers.google.com/google-ads/api/rest/reference/rest/v18/customers.googleAds/search
@spec search( developer_token(), access_token(), customer_id(), request_body(), pagination_options() ) :: search_response()