Noizu.Google.Scopes (Noizu Google v0.2.3)

Copy Markdown View Source

Common OAuth2 scope URLs for Google marketing APIs.

Pass one or more (space-separated) to Noizu.Google.OAuth.authorize_url/1 via the :scope option, or use marketing_default/0 / join/1.

Noizu.Google.OAuth.authorize_url(
  client_id: id,
  redirect_uri: uri,
  scope: Noizu.Google.Scopes.marketing_default()
)

Summary

Functions

AdSense full.

AdSense read-only.

Google Ads API.

Google Analytics (includes GA4 Admin + Data) full.

Google Analytics edit (Admin API write).

Google Analytics read-only.

Join a list of scope URLs into a space-separated string.

Recommended offline-consent scope string for marketing automation.

Search Console full access.

Search Console read-only.

Functions

adsense()

AdSense full.

adsense_readonly()

AdSense read-only.

adwords()

Google Ads API.

analytics()

Google Analytics (includes GA4 Admin + Data) full.

analytics_edit()

Google Analytics edit (Admin API write).

analytics_readonly()

Google Analytics read-only.

join(scopes)

@spec join([String.t()]) :: String.t()

Join a list of scope URLs into a space-separated string.

marketing_default()

Recommended offline-consent scope string for marketing automation.

Includes Search Console + Analytics edit + AdSense readonly + Ads. Narrow in production to least privilege.

search_console()

Search Console full access.

search_console_readonly()

Search Console read-only.