Complete guide to authentication flows for accessing YDengGrand Ads Platform and Google Ads API.
Our platform uses industry-standard OAuth 2.0 for secure authentication.
YDengGrand Ads Platform supports two authentication methods:
Recommended — Enterprise authentication via Google Workspace. Users authorize access to their Google Ads accounts through Google's secure OAuth flow.
Traditional authentication using work email and password. Requires MFA for all accounts.
Step-by-step guide to the OAuth 2.0 authorization code flow.
User clicks "Continue with Google" button
Platform redirects to Google's OAuth 2.0 authorization endpoint
Google displays consent screen requesting Ads API access
Google redirects back with temporary authorization code
Server exchanges code for access token and refresh token
User is authenticated and can access the platform
https://accounts.google.com/o/oauth2/v2/authhttps://oauth2.googleapis.com/tokenhttps://www.googleapis.com/auth/adwordsHow to authenticate API requests to YDengGrand Ads Platform.
Guidelines for secure authentication implementation.
Never store tokens in localStorage or sessionStorage. Use HTTP-only cookies.
Always validate tokens on the server before granting access to resources.
For mobile or SPA apps, use Proof Key for Code Exchange (PKCE).
Provide a way to revoke tokens when user logs out or changes password.
Monitor for suspicious login activity and implement rate limiting.
Common authentication issues and solutions.
Cause: Authorization code expired or already used.
Solution: Initiate a new OAuth flow to get a fresh code.
Cause: User lacks required permissions or scope.
Solution: Verify user has access to the requested Google Ads account.
Cause: Access token exceeded 60-minute validity.
Solution: Use refresh token to obtain a new access token.
Cause: Redirect URI doesn't match Google Cloud Console configuration.
Solution: Ensure exact URI match including protocol and path.
Our support team can assist with OAuth setup and API access issues.