一般的なエラー
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このページでは、Google Ad Manager API でよく発生するエラーについて説明します。エラーは Error.REASON
の形式で返されます。
EntityChildrenLimitReachedError
- まとめ
- エンティティに許容される子の最大数に達したため、そのエンティティにこれ以上子を追加できません。
- 推奨される対処方法
- 子エンティティの最大数に達したエンティティの新しいタイプを作成し、作成しようとしている子エンティティを新しいエンティティに追加します。たとえば、LINE_ITEM_LIMIT_FOR_ORDER_REACHED を受け取った場合は、新しいオーダーを作成し、作成する広告申込情報をその新しいオーダーに追加する必要があります。
QuotaError.EXCEEDED_QUOTA
- まとめ
- 1 秒あたりのリクエスト数が多すぎて、許容上限を超えました。
- 推奨される対処方法
-
- ローカルで変更を 1 回リクエストして一括で変更(updateLineItems など)を行い、変更を一度に処理します。
- 5 秒ほど待ってから、リクエストを再試行します。ただし、リクエストが成功するとは限りません。失敗した場合は待機時間を長くしてみてください。この方法は、アド マネージャーと統合されているリアルタイムで使用するインタラクティブ アプリケーションにおすすめします。
- リクエスト数の上限は、アド マネージャー ネットワークの場合は 1 秒あたり 2 件、アド マネージャー 360 ネットワークの場合は 1 秒あたり 8 件です。すべてのリクエストが成功するとは限りませんが、このエラーが表示される回数を減らすことができます。この方法は、毎晩レポートを作成するアプリケーションなど、アド マネージャーと統合されており、リアルタイムのインタラクションを行わないアプリケーションにおすすめします。
AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK
- まとめ
- ユーザーが、すでにネットワークに関連付けられているアカウントを使用してテスト ネットワークを作成しようとしました。
- 一般的な原因
- ユーザーが
NetworkService.makeTestNetwork()
を呼び出す前に新しい Google アカウントを作成していない。
- 推奨される対処方法
NetworkService.makeTestNetwork()
を呼び出す前に、新しいアカウントを作成してください。詳細については、テスト ネットワークの作成方法をご覧ください。
AuthenticationError.NETWORK_CODE_REQUIRED
- まとめ
- ユーザーが
networkCode
を提供していません。リクエストを行うにはネットワーク コードが必要です。
- 一般的な原因
- ネットワーク コードは、
NetworkService.getAllNetworks()
と NetworkService.makeTestNetwork()
を除くすべてのリクエストに必要です。
- 推奨される対処方法
- アドレスを指定するネットワークのネットワーク コードをリクエスト ヘッダーに含めます。アカウントのログインに使用できるネットワーク コードのみを使用してください。アカウントのコードは、アド マネージャー ウェブサイトの [管理者] > [ネットワーク設定] ページの [ネットワーク コード] で確認できます。ネットワーク コードの設定について詳しくは、SOAP XML リクエスト ヘッダーと SOAP レスポンス ヘッダーのページをご覧ください。
AuthenticationError.NETWORK_NOT_FOUND
- まとめ
- 構成で指定されたネットワーク コードがサーバーで見つからなかったため、リクエストを実行できませんでした。
- 一般的な原因
- 設定で指定したネットワーク コードが正しくありません。
- 推奨される対処方法
- 多くの場合、エラーログの「trigger」フィールドから適切なネットワークがユーザーに提示されます。
AuthenticationError.NO_NETWORKS_TO_ACCESS
- まとめ
- ユーザーはどのネットワークにも関連付けられていません。
- 一般的な原因
- 本番環境アカウントで API アクセスが有効になっていません。
- 推奨される対処方法
- 本番環境への API アクセスを有効にする。詳しくは、API アクセスの有効化をご覧ください。
AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS
- まとめ
- お客様が API アクセスの許可リストに登録されていません。
- 一般的な原因
- 使用しているネットワークは本番環境の許可リストに登録されていませんが、SOAP ヘッダーでネットワーク コードが指定されています。
-
- 推奨される対処方法
- API アクセスを有効にします。
-
PermissionError.PERMISSION_DENIED
- まとめ
- ユーザーにリクエストに必要な権限がありません。
- 一般的な原因
-
- 別のネットワークに存在するオブジェクトにアクセスしようとしました。
- ネットワークに存在するオブジェクトにアクセスしようとしましたが、読み取りまたは更新する権限がありません。
- アカウントで追加の機能を有効にする必要があるタスクを実行しようとしました。
- 推奨される対処方法
-
- UI を作成する場合は、この操作を行う権限がないことをユーザーに示し、管理者に相談してください。
- プレミアム専用機能に関連するタスクなど、ネットワークに権限が付与されていないタスクを実行する場合は、この機能を有効にすることについてアカウント マネージャーにお問い合わせください。
- テスト ネットワークは、デフォルトではアド マネージャー 360 ネットワークではありません。つまり、アド マネージャー 360 ネットワークにあるプレミアム機能は利用できません。テスト ネットワークで機能を有効にするには、アカウント マネージャーにお問い合わせください。
ApiVersionError.UPDATE_TO_NEWER_VERSION
- まとめ
- アプリケーションは、成功するために新しいバージョンを必要とするリクエストを開始したか、非推奨バージョンへのリクエストを開始しました。
- 一般的な原因
-
- API 呼び出しのバージョンは非推奨になりました。サポート終了については、Google のブログを定期的にご覧ください。
- リクエストを正常に実行するには、新しいバージョンの API が必要です。
よくあるケースとして、UI に機能が導入されています。API でオブジェクトを正しく送信するには、新しいバージョンの API が必要です。
- 推奨される対処方法
-
- API バージョンを最新の状態に保ち、定期的なアップグレードを計画します。
- サポートの終了については、Google のブログを定期的にご確認ください。
404 エラー
- まとめ
- リクエストがサーバーに到達しませんでした。
- 一般的な原因
- インターネット接続またはプロキシが正しく構成されていない可能性があります。また、呼び出している API のバージョンも廃止される可能性があります。
-
- 推奨される対処方法
- インターネットまたはプロキシの構成を確認し、最新バージョンの API を使用していることを確認します。クライアント ライブラリも最新バージョンにアップグレードすることをおすすめします。
-
- 感染予防のヒント
- Ad Manager API フォーラムを購読するとともに、ブログで Ad Manager API の最新情報をご確認ください。
マーシャリング解除エラー
- まとめ
- リクエスト内の SOAP XML が WSDL 仕様に準拠していません。
- 一般的な原因
- リクエストに WSDL 仕様に含まれていないか、誤った名前空間にあるフィールドまたはエンティティが含まれています。
-
- リクエストに型の不一致があります(整数フィールドに文字列値が含まれているなど)。
-
- 推奨される対処方法
- リクエストが WSDL 仕様に準拠していることを確認します。
-
- クライアント ライブラリを使用して有効な SOAP を生成し、比較に使用します。すべてのクライアント ライブラリは、SOAP リクエストとレスポンスのロギングをサポートしています。
-
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-21 UTC。
[null,null,["最終更新日 2025-08-21 UTC。"],[[["\u003cp\u003eThis page lists common Google Ad Manager API errors and offers troubleshooting tips.\u003c/p\u003e\n"],["\u003cp\u003eErrors are categorized by type, such as authentication, permission, and quota errors.\u003c/p\u003e\n"],["\u003cp\u003eEach error description includes a summary, common causes, and recommended handling tips.\u003c/p\u003e\n"],["\u003cp\u003eUsers are encouraged to stay updated on API versions and subscribe to the Ad Manager API forum and blog for the latest news.\u003c/p\u003e\n"],["\u003cp\u003eUtilizing client libraries for generating valid SOAP requests is recommended to avoid unmarshalling errors.\u003c/p\u003e\n"]]],[],null,["# Common Errors\n\nThis page describes the most frequently encountered errors returned by the\nGoogle Ad Manager API. Errors are returned in the format\n`Error.REASON`:\n\n- [`EntityChildrenLimitReachedError`](#EntityChildrenLimitReachedError)\n- [`QuotaError.EXCEEDED_QUOTA`](#QuotaError.EXCEEDED_QUOTA)\n- [`AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK`](#AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK)\n- [`AuthenticationError.NETWORK_CODE_REQUIRED`](#AuthenticationError.NETWORK_CODE_REQUIRED)\n- [`AuthenticationError.NETWORK_NOT_FOUND`](#AuthenticationError.NETWORK_NOT_FOUND)\n- [`AuthenticationError.NO_NETWORKS_TO_ACCESS`](#AuthenticationError.NO_NETWORKS_TO_ACCESS)\n- [`AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS`](#AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS)\n- [`PermissionError.PERMISSION_DENIED`](#PermissionError.PERMISSION_DENIED)\n- [`ApiVersionError.UPDATE_TO_NEWER_VERSION`](#ApiVersionError.UPDATE_TO_NEWER_VERSION)\n- [404 Error](#404Error)\n- [Unmarshalling Errors](#Unmarshalling)\n\n[Entity limit errors](/ad-manager/api/reference/latest/LineItemService.EntityChildrenLimitReachedError)\n-------------------------------------------------------------------------------------------------------\n\n### `EntityChildrenLimitReachedError`\n\nSummary\n: The maximum number of allowed children has been reached for the entity\n and no more children can be added to that entity.\n\nRecommended handling tips\n: Create a new type of the entity that has reached the max allowed number\n of children and add the child entity you are trying to create to the new one.\n For example if you receive [LINE_ITEM_LIMIT_FOR_ORDER_REACHED](/ad-manager/api/reference/latest/LineItemService.EntityChildrenLimitReachedError.Reason#LINE_ITEM_LIMIT_FOR_ORDER_REACHED),\n then you will need to create a new order and add the line item you are trying\n to create to that new order.\n\n[Quota errors](/ad-manager/api/reference/latest/NetworkService.QuotaError)\n--------------------------------------------------------------------------\n\n### `QuotaError.EXCEEDED_QUOTA`\n\nSummary\n: The number of requests made per second is too high and has exceeded the\n allowable limit.\n\nRecommended handling tips\n:\n - Use batch methods such as [updateLineItems](/ad-manager/api/reference/latest/LineItemService#updateLineItems) by gathering changes locally and making a single request to fulfill those changes all at once.\n - Wait about 5 seconds and then retry the request. Note that this does not guarantee the request will succeed. If it fails again, try increasing the wait time. This is recommended for interactive applications integrating with Ad Manager that are used in real time.\n - Limit requests to 2 per second for Ad Manager networks, or 8 per second for Ad Manager 360 networks. Once again this does not guarantee that every request will succeed, but may help reduce the number of times you receive this error. This is recommended for applications integrating with Ad Manager that do not have real time interaction, such as running nightly reports.\n\n[Authentication errors](/ad-manager/api/reference/latest/NetworkService.AuthenticationError)\n--------------------------------------------------------------------------------------------\n\n### `AuthenticationError.GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK`\n\nSummary\n: The user tried to create a test network using an account that already is\n associated with a network.\n\nCommon causes\n: The user did not create a new Google account first before calling\n `NetworkService.makeTestNetwork()`.\n\nRecommended handling tips\n: Create a brand new account before calling\n `NetworkService.makeTestNetwork()`. See [how to create a test network](/ad-manager/api/start#enable_api) for more\n information.\n\n### `AuthenticationError.NETWORK_CODE_REQUIRED`\n\nSummary\n: The user did not provide a `networkCode`. To make the request,\n a network code is required.\n\nCommon causes\n: Network codes are required for all requests except\n `NetworkService.getAllNetworks()` and\n `NetworkService.makeTestNetwork()`.\n\nRecommended handling tips\n: Include the network code of the network being addressed in the request\n header. Only use a network code available to your account login. You can find\n the code on the Ad Manager website for your account, on the Admin \\\u003e Network\n Settings page next to \"Network code\". More information about setting your\n network code can be found on the [SOAP XML request and\n response headers](/ad-manager/api/soap_xml) page.\n\n### `AuthenticationError.NETWORK_NOT_FOUND`\n\nSummary\n: The request could not be made because the network code provided in the\n configuration is not found on the server.\n\nCommon causes\n: You have specified an incorrect network code in your configuration.\n\nRecommended handling tips\n: The \"trigger\" field of the error log will often suggest the correct\n network for the user.\n\n### `AuthenticationError.NO_NETWORKS_TO_ACCESS`\n\nSummary\n: The user is not associated with any network.\n\nCommon causes\n: You have not enabled your production account for API access.\n\nRecommended handling tips\n: Enable API access to your production environment. See [Enabling API Access](/ad-manager/api/start#enable_api) for information.\n\n### `AuthenticationError.NOT_WHITELISTED_FOR_API_ACCESS`\n\nSummary\n: The customer is not whitelisted for API access.\n\nCommon causes\n: Your network is not whitelisted for production, but you provided a [network code](/ad-manager/api/soap_xml) in the SOAP Header.\n:\n\nRecommended handling tips\n: Enable [API access](/ad-manager/api/start#enable_api).\n:\n\n[Permission errors](/ad-manager/api/reference/latest/NetworkService.PermissionError)\n------------------------------------------------------------------------------------\n\n### `PermissionError.PERMISSION_DENIED`\n\nSummary\n: The user does not have the required permission for the request.\n\nCommon causes\n:\n - You tried to access an object that exists in another network.\n - You tried to access an object that exists in your network, but you don't have permission to read or update.\n - You tried to perform a task that requires an additional feature to enabled on your account.\n\nRecommended handling tips\n:\n - If you are creating a UI, indicate to the user that they did not have permission to perform this action and to speak to their Administrator.\n - If you tried performing a task, such as one involving a premium-only feature that your network does not have permission to do, speak to your account manager about enabling this feature.\n - Remember, test networks are, by default, not Ad Manager 360 networks, meaning that they do not have the premium features found in Ad Manager 360 networks. Speak to your account manager to enable features on your test network.\n\n[Version errors](/ad-manager/api/reference/latest/NetworkService.ApiVersionError)\n---------------------------------------------------------------------------------\n\n### `ApiVersionError.UPDATE_TO_NEWER_VERSION`\n\nSummary\n: The application either: initiated a request that requires a newer version\n to succeed; or initiated a request to a deprecated version.\n\nCommon causes\n:\n - The version of the API call has been deprecated. Please subscribe to our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api) for deprecation announcements.\n - The request you made requires a newer version of the API to succeed. This is often the case where a feature has been introduced in the UI and in order for the API to send the object correctly, it needs a newer version of the API.\n\nRecommended handling tips\n:\n - Stay up to date on API versions; plan on upgrading regularly.\n - Subscribe to our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api) to be notified about deprecations.\n\n404 Error\n---------\n\nSummary\n: Your request did not reach the server.\n\nCommon causes\n: Your internet connection or proxy may be misconfigured. The version of\n the API you are calling may also be sunsetted.\n:\n\nRecommended handling tips\n: Check your internet or proxy configuration and make sure you are using a\n recent version of the API. You may want to upgrade your client library to\n the most recent version as well.\n:\n\nPrevention tips\n: Subscribe to the [Ad\n Manager API forum](//groups.google.com/group/google-doubleclick-for-publishers-api) and check our [blog](//ads-developers.googleblog.com/search/label/ad_manager_api)\n to stay updated on the latest Ad Manager API news.\n\nUnmarshalling Error\n-------------------\n\nSummary\n: The SOAP XML in your request did not conform to the WSDL\n specification.\n\nCommon causes\n: The request contains fields or entities not included in the WSDL\n specification, or in the wrong namespace.\n:\n: There is a type mismatch in the request (e.g., an integer field has a\n string value).\n:\n\nRecommended handling tips\n: Ensure that your request conforms to the WSDL specification.\n:\n: Use a [client library](/ad-manager/api/clients) to generate\n valid SOAP, and use this for comparison. All client libraries support\n logging of SOAP requests and responses.\n:"]]