Skip to main content
Google Ads API
  • Google Ads API
/
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어
Sign in
Guides Reference Libraries and samples Policies Support
Google Ads API
  • Google Ads API
  • Guides
  • Reference
  • Libraries and samples
  • Policies
  • Support
  • Google Ads API overview
  • Release notes
  • Welcome to the Google Ads API
  • Video guides
  • Get started
    • Introduction
    • Obtain a developer token
    • Download tools and libraries
    • Create or select a Google API Console project
    • Choose your application type
    • Configure the Google API Console project
    • Prepare the Google Ads account
    • Make an API call
    • Common errors
    • Next steps
  • Set up your Google Ads account
    • Authorization and authentication
      • Overview
      • Cloud project
      • Client library
      • Service accounts
      • Credential management
      • Internals
      • 2-Step Verification
      • Playground
  • Basic concepts
    • Overview
    • API structure
    • Versioning
    • Changing objects
    • Retrieving objects
    • Resource metadata
    • Call structure
    • Mutates
      • Overview
      • Resource mutates
      • Bulk mutates
      • Best practices
    • Cloud-managed access levels
  • Google Ads management
  • Manage accounts
    • Overview
    • Create an account
    • Link to manager accounts
    • List accessible accounts
    • Get account hierarchy
    • Manage user access
    • Manage user access invitations
    • Link product accounts
    • Link YouTube
    • Change status
    • Change event
    • Advertiser identity verification
  • Manage assets
    • Overview
    • Creation and usage
    • Location assets
    • Automated assets
    • Business message assets
    • Reporting
    • Manage billing
      • Billing overview
      • Billing setup
      • Account budget
      • Invoice
  • Create and manage campaigns
    • Explore campaign types
    • Overview
    • Create campaigns
    • Create ad groups
    • Ad management
      • Overview
      • Ad types
      • Create ads
      • Mutate ads
      • Responsive search ad customization
      • Upgraded URLs
        • Overview
        • Fields
        • Supported entities
        • Valuetrack parameters for Upgraded URLs
        • Reports
        • Serving URL expansion rules
      • Dynamic Search Ads
        • Overview
        • Create DSAs
        • DSA page feeds
        • Reporting
      • Hotel Ads
        • Overview
        • Create campaign
        • Create ad group
        • Create ad
        • Create listing groups
        • Bidding
          • Overview
          • Assign strategy
          • Set bids
          • Adjust bids
        • Reporting
        • Travel Feeds for Search Ads
      • Things to do ads
        • Overview
        • Create campaign
        • Create ad group
        • Create ad
        • Create listing groups
        • Reporting
      • Responsive display ads
        • Overview
        • Create ads
        • Retrieve ads
      • Responsive search ads
        • Overview
        • Create ads
        • Retrieve ads
      • Shopping Ads
        • Overview
        • Link Merchant Center
        • Create campaign
        • Create ad group
        • Create ad
        • Create listing groups
        • Reporting
      • Uploaded display ads
        • Overview
        • Create uploaded display ads
        • Uploaded HTML5 ads
    • Budgets
      • Overview
      • Create budget
      • Share budget
      • Assign budget
      • Remove budget
      • Track performance
      • Restrictions & errors
    • Campaign Groups
      • Overview
    • Bidding
      • Overview
      • Strategy types
      • Strategy status
      • Portfolio and standard bidding strategies
      • Cross-account bidding strategies
      • Ad group level target overrides
      • Set bids manually
      • Manage bid modifiers
      • Create seasonality adjustments
      • Create data exclusions
    • Campaign Drafts
    • Targeting
      • Overview
      • Criteria
      • Shared sets
      • Bid modifiers
      • Location targeting
      • Targeting settings
    • Performance Max campaigns
      • Overview
      • Get started
      • Business goals
      • Online sales or lead generation
      • Online sales with a product feed
      • Travel goals
      • Concepts
      • Campaign setup
        • Create a budget
        • Create a campaign
        • Conversion goals
        • Create campaign criteria
        • ValueTrack parameters
      • Asset group setup
        • Assets
        • Asset requirements
        • Asset groups
        • Asset group signals
        • Listing groups
      • Reporting
        • Overview
        • Campaign Reporting
        • Asset Group Reporting
        • Asset Reporting
        • Retail Campaign Reporting
        • Campaign Criterion Reporting
      • Upgrade
      • Upgrade to Performance Max
        • Overview
        • Check upgrade eligibility
        • Create a campaign based on an existing campaign
        • Enhance a campaign
        • Compare performance with an existing campaign
        • Complete the upgrade
      • Best practices
      • Structure requests
      • Batch processing
      • Optimization & troubleshooting
      • Resources and examples
      • Code examples
        • Add performance max campaign
        • Add performance max retail campaign
        • Add performance max product listing group tree
        • Add performance max for travel goals campaign
    • App campaigns
      • Overview
      • Create campaign
      • Create ad group & ad
      • Code example
      • Reporting
    • Demand Gen campaigns
      • Overview
      • Create campaign
      • Campaigns with product feeds
      • Channel controls
      • Reporting & optimization
    • Local Services campaigns
    • Smart campaigns
      • Overview
      • Get suggestions
      • Create budget
      • Create campaign and campaign setting
      • Create campaign criteria
      • Create ad group and ad group ad
      • Send mutate request
      • Reporting
    • Search campaigns
      • Getting started
    • Video campaigns
  • Manage conversions
    • Overview
    • Conversion action categories
    • Getting started
    • Manage offline conversions
    • Manage online conversions
    • Manage call conversions
    • Manage store sales conversions
    • Modify uploaded conversions
      • Upload conversion adjustments
      • Conversion value rules
    • Custom conversion variables
    • Conversion goals
      • Overview
      • Customer goals
      • Campaign goals
      • Lifecycle goals
    • Monitor Upload Health
    • Reporting
    • Troubleshooting
  • Manage audiences
    • Overview
    • Audiences
    • Get started with audience segments
    • Visitors to your website
    • Visitors to specific pages
    • Visitors who took specific actions
    • Multiple user lists
    • Customer match
      • Get started
      • Manage
      • Troubleshoot
    • Custom audiences
    • Lookalike segments
    • Sample scenario
      • Overview
      • Creating the rule item groups
      • Creating the user list
    • Dynamic Remarketing
      • Overview
      • Prerequisites
      • Asset-based Dynamic Remarketing
      • Merchant center-based Dynamic Remarketing
  • Batch processing
    • Overview
    • Usage flow
    • Using temporary IDs
    • Listing group filters
    • Best practices & limitations
  • Optimize your ads
    • Optimization & recommendations
    • Keyword planning
      • Overview
      • Generate keyword ideas
      • Generate ad group themes
      • Generate historical metrics
      • Generate forecast metrics
    • Experiments
      • Overview
      • Create experiments
      • Create experiment arms
      • Experiment operations
      • Reporting on experiments
      • Async errors
    • Reach forecasting
      • Overview
      • Concepts
      • Authenticate
      • Specify a media plan
      • Generate a curve
    • Bid simulations
      • Overview
      • Prerequisites
      • Retrieve bid simulations
  • Report and monitor performance
    • Reporting
      • Overview
      • Use case
      • Criteria metrics
      • Segmentation
      • Zero metrics
      • Labels
      • Streaming
      • Paging
      • Reports in the UI
      • Mapping valuetrack parameters with report fields
      • Query language
        • Overview
        • Query grammar
        • Query structure
        • Date ranges
        • Case sensitivity
        • Ordering and limiting results
        • Interactive query builder
        • Query Validator
        • Query Cookbook
    • Audience and creator insights
      • Overview
      • Audience insights
      • YouTube creator insights
  • Develop applications
  • Test and troubleshoot your application
    • Best practices
      • Overview
      • API limits and quotas
      • System limits
      • Troubleshooting
      • Testing
      • Test accounts
      • Error types
      • Common errors
      • Partial failures
      • Warnings
      • Developer token reset
    • Error debugging
      • Error types
      • Common errors
      • Partial failures
      • Warnings
    • Policy exemption request
      • Overview
      • Ads
      • Keywords
  • Productionize your application
    • Overview
    • Secure credentials
    • Access levels
    • Logging
    • Monitoring
    • Manage data efficiently
    • Rate limits
    • Shared aliases
    • Stay updated
To discuss and provide feedback on our products, join the official Google Ads Discord channel in the Google Advertising and Measurement Community server.
  • Home
  • Products
  • Google Ads API

Best Practices
Stay organized with collections Save and categorize content based on your preferences.

In this video, we cover some best practices for working with authentication and authorization.

See slide deck.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-03-08 UTC.

  • Blog Blog
    Visit our blog for important announcements.
  • Forum Forum
    Interact with our community of developer experts.
  • Client Libraries Client Libraries
    Use our officially supported client libraries.
  • YouTube YouTube
    Access our video contents.
  • Discord Discord
    Join the Google Ads Discord server.
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • Google AI
  • All products
  • Terms
  • Privacy
  • Manage cookies
  • Sign up for the Google for Developers newsletter Subscribe
  • English
  • Deutsch
  • Español
  • Español – América Latina
  • Français
  • Indonesia
  • Italiano
  • Polski
  • Português – Brasil
  • Tiếng Việt
  • Türkçe
  • Русский
  • עברית
  • العربيّة
  • فارسی
  • हिंदी
  • বাংলা
  • ภาษาไทย
  • 中文 – 简体
  • 中文 – 繁體
  • 日本語
  • 한국어