
jp.co.yahoo.adssearchapi.v15.api.AdGroupAdServiceApi Maven / Gradle / Ivy
package jp.co.yahoo.adssearchapi.v15.api;
import jp.co.yahoo.adssearchapi.v15.ApiClient;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceGetResponse;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceMutateResponse;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceOperation;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceSelector;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceSetTrademarkStatusOperation;
import jp.co.yahoo.adssearchapi.v15.model.AdGroupAdServiceSetTrademarkStatusResponse;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.client.RestClientException;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@Component("jp.co.yahoo.adssearchapi.v15.api.AdGroupAdServiceApi")
public class AdGroupAdServiceApi {
private ApiClient apiClient;
public AdGroupAdServiceApi() {
this(new ApiClient());
}
@Autowired
public AdGroupAdServiceApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
*
* <div lang=\"ja\">広告に関する情報を追加します。</div> <div lang=\"en\">Add informations of ad.</div>
* 503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>120020</td><td>Can not set value.</td><td><div lang=\"ja\">値を設定することができません。</div><div lang=\"en\">Value cannot be set.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210607</td><td>There are already 3 responsive ads with userStatus ACTIVE.</td><td><div lang=\"ja\">レスポンシブ広告かつuserStatusがACTIVEである広告が既に3件存在します。</div><div lang=\"en\">There are already 3 responsive ads with userStatus ACTIVE.</div></td></tr> <tr><td>210608</td><td>When using fixed display position, need three title assets and two description assets.</td><td><div lang=\"ja\">表示位置の固定を利用する場合、タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。</div><div lang=\"en\">When using fixed display position, need three title assets and two description assets.</div></td></tr> <tr><td>210609</td><td>Need three title assets and two description assets. Assets that use a function without default text are not counted in the required count.</td><td><div lang=\"ja\">タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。<br>デフォルトテキストのない関数が使われているアセットは、必須件数にカウントされません。<br>デフォルトテキストを設定、または関数を使わずにアセットを作成してください。</div><div lang=\"en\">Need three title assets and two description assets.<br>Assets that use a function without default text are not counted in the required count.<br>Set the default text or create an asset without using a function.</div></td></tr> <tr><td>210614</td><td>Description: A number of characters is exceeding the limit for input.</td><td><div lang=\"ja\">説明文:入力可能な文字数を超えています。</div><div lang=\"en\">Description: A number of characters is exceeding the limit for input.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return AdGroupAdServiceMutateResponse
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public AdGroupAdServiceMutateResponse adGroupAdServiceAddPost(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
return adGroupAdServiceAddPostWithHttpInfo(xZBaseAccountId, adGroupAdServiceOperation).getBody();
}
/**
*
* <div lang=\"ja\">広告に関する情報を追加します。</div> <div lang=\"en\">Add informations of ad.</div>
*
503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>120020</td><td>Can not set value.</td><td><div lang=\"ja\">値を設定することができません。</div><div lang=\"en\">Value cannot be set.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210607</td><td>There are already 3 responsive ads with userStatus ACTIVE.</td><td><div lang=\"ja\">レスポンシブ広告かつuserStatusがACTIVEである広告が既に3件存在します。</div><div lang=\"en\">There are already 3 responsive ads with userStatus ACTIVE.</div></td></tr> <tr><td>210608</td><td>When using fixed display position, need three title assets and two description assets.</td><td><div lang=\"ja\">表示位置の固定を利用する場合、タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。</div><div lang=\"en\">When using fixed display position, need three title assets and two description assets.</div></td></tr> <tr><td>210609</td><td>Need three title assets and two description assets. Assets that use a function without default text are not counted in the required count.</td><td><div lang=\"ja\">タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。<br>デフォルトテキストのない関数が使われているアセットは、必須件数にカウントされません。<br>デフォルトテキストを設定、または関数を使わずにアセットを作成してください。</div><div lang=\"en\">Need three title assets and two description assets.<br>Assets that use a function without default text are not counted in the required count.<br>Set the default text or create an asset without using a function.</div></td></tr> <tr><td>210614</td><td>Description: A number of characters is exceeding the limit for input.</td><td><div lang=\"ja\">説明文:入力可能な文字数を超えています。</div><div lang=\"en\">Description: A number of characters is exceeding the limit for input.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return ResponseEntity<AdGroupAdServiceMutateResponse>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity adGroupAdServiceAddPostWithHttpInfo(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
Object postBody = adGroupAdServiceOperation;
// verify the required parameter 'xZBaseAccountId' is set
if (xZBaseAccountId == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xZBaseAccountId' when calling adGroupAdServiceAddPost");
}
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (xZBaseAccountId != null)
headerParams.add("x-z-base-account-id", apiClient.parameterToString(xZBaseAccountId));
final String[] localVarAccepts = {
"application/json"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] contentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(contentTypes);
String[] authNames = new String[] { "oAuth" };
ParameterizedTypeReference returnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/AdGroupAdService/add", HttpMethod.POST, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType);
}
/**
*
* <div lang=\"ja\">広告に関する情報を取得します。</div> <div lang=\"en\">Returns ad information.</div>
* 503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceSelector (optional)
* @return AdGroupAdServiceGetResponse
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public AdGroupAdServiceGetResponse adGroupAdServiceGetPost(Long xZBaseAccountId, AdGroupAdServiceSelector adGroupAdServiceSelector) throws RestClientException {
return adGroupAdServiceGetPostWithHttpInfo(xZBaseAccountId, adGroupAdServiceSelector).getBody();
}
/**
*
* <div lang=\"ja\">広告に関する情報を取得します。</div> <div lang=\"en\">Returns ad information.</div>
*
503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceSelector (optional)
* @return ResponseEntity<AdGroupAdServiceGetResponse>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity adGroupAdServiceGetPostWithHttpInfo(Long xZBaseAccountId, AdGroupAdServiceSelector adGroupAdServiceSelector) throws RestClientException {
Object postBody = adGroupAdServiceSelector;
// verify the required parameter 'xZBaseAccountId' is set
if (xZBaseAccountId == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xZBaseAccountId' when calling adGroupAdServiceGetPost");
}
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (xZBaseAccountId != null)
headerParams.add("x-z-base-account-id", apiClient.parameterToString(xZBaseAccountId));
final String[] localVarAccepts = {
"application/json"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] contentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(contentTypes);
String[] authNames = new String[] { "oAuth" };
ParameterizedTypeReference returnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/AdGroupAdService/get", HttpMethod.POST, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType);
}
/**
*
* <div lang=\"ja\">広告に関する情報を削除します。</div> <div lang=\"en\">Remove ad information.</div>
* 503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return AdGroupAdServiceMutateResponse
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public AdGroupAdServiceMutateResponse adGroupAdServiceRemovePost(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
return adGroupAdServiceRemovePostWithHttpInfo(xZBaseAccountId, adGroupAdServiceOperation).getBody();
}
/**
*
* <div lang=\"ja\">広告に関する情報を削除します。</div> <div lang=\"en\">Remove ad information.</div>
*
503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return ResponseEntity<AdGroupAdServiceMutateResponse>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity adGroupAdServiceRemovePostWithHttpInfo(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
Object postBody = adGroupAdServiceOperation;
// verify the required parameter 'xZBaseAccountId' is set
if (xZBaseAccountId == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xZBaseAccountId' when calling adGroupAdServiceRemovePost");
}
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (xZBaseAccountId != null)
headerParams.add("x-z-base-account-id", apiClient.parameterToString(xZBaseAccountId));
final String[] localVarAccepts = {
"application/json"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] contentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(contentTypes);
String[] authNames = new String[] { "oAuth" };
ParameterizedTypeReference returnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/AdGroupAdService/remove", HttpMethod.POST, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType);
}
/**
*
* <div lang=\"ja\">広告に関する情報を更新します。</div> <div lang=\"en\">Updates ad information.</div>
* 503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。<br>広告、またはレスポンシブ検索広告で指定するアセットの審査状況が審査中です。</div><div lang=\"en\">The status is invalid.<br>The review status of Ads or Assets specified in responsive search ads is under review.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210607</td><td>There are already 3 responsive ads with userStatus ACTIVE.</td><td><div lang=\"ja\">レスポンシブ広告かつuserStatusがACTIVEである広告が既に3件存在します。</div><div lang=\"en\">There are already 3 responsive ads with userStatus ACTIVE.</div></td></tr> <tr><td>210604</td><td>The requested ad type is not available.</td><td><div lang=\"ja\">リクエストされた広告タイプはご利用できません。</div><div lang=\"en\">The requested ad type is not available.</div></td></tr> <tr><td>210608</td><td>When using fixed display position, need three title assets and two description assets.</td><td><div lang=\"ja\">表示位置の固定を利用する場合、タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。</div><div lang=\"en\">When using fixed display position, need three title assets and two description assets.</div></td></tr> <tr><td>210609</td><td>Need three title assets and two description assets. Assets that use a function without default text are not counted in the required count.</td><td><div lang=\"ja\">タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。<br>デフォルトテキストのない関数が使われているアセットは、必須件数にカウントされません。<br>デフォルトテキストを設定、または関数を使わずにアセットを作成してください。</div><div lang=\"en\">Need three title assets and two description assets.<br>Assets that use a function without default text are not counted in the required count.<br>Set the default text or create an asset without using a function.</div></td></tr> <tr><td>210614</td><td>Description: A number of characters is exceeding the limit for input.</td><td><div lang=\"ja\">説明文:入力可能な文字数を超えています。</div><div lang=\"en\">Description: A number of characters is exceeding the limit for input.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> <tr><td>120020</td><td>Can not set value.</td><td><div lang=\"ja\">値を設定することができません。詳細はヘルプを参照してください。<a href=\"https://ads-help.yahoo-net.jp/s/article/H000044211?language=ja\">A/Bテストについて</a></div><div lang=\"en\">Value cannot be set. See also the help below. <a href=\"https://ads-help.yahoo-net.jp/s/article/H000044211?language=en_US\">About A/B test</a></div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return AdGroupAdServiceMutateResponse
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public AdGroupAdServiceMutateResponse adGroupAdServiceSetPost(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
return adGroupAdServiceSetPostWithHttpInfo(xZBaseAccountId, adGroupAdServiceOperation).getBody();
}
/**
*
* <div lang=\"ja\">広告に関する情報を更新します。</div> <div lang=\"en\">Updates ad information.</div>
*
503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。<br>広告、またはレスポンシブ検索広告で指定するアセットの審査状況が審査中です。</div><div lang=\"en\">The status is invalid.<br>The review status of Ads or Assets specified in responsive search ads is under review.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210607</td><td>There are already 3 responsive ads with userStatus ACTIVE.</td><td><div lang=\"ja\">レスポンシブ広告かつuserStatusがACTIVEである広告が既に3件存在します。</div><div lang=\"en\">There are already 3 responsive ads with userStatus ACTIVE.</div></td></tr> <tr><td>210604</td><td>The requested ad type is not available.</td><td><div lang=\"ja\">リクエストされた広告タイプはご利用できません。</div><div lang=\"en\">The requested ad type is not available.</div></td></tr> <tr><td>210608</td><td>When using fixed display position, need three title assets and two description assets.</td><td><div lang=\"ja\">表示位置の固定を利用する場合、タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。</div><div lang=\"en\">When using fixed display position, need three title assets and two description assets.</div></td></tr> <tr><td>210609</td><td>Need three title assets and two description assets. Assets that use a function without default text are not counted in the required count.</td><td><div lang=\"ja\">タイトルは3番目まで、説明文は2番目まで表示されるアセットが必要です。<br>デフォルトテキストのない関数が使われているアセットは、必須件数にカウントされません。<br>デフォルトテキストを設定、または関数を使わずにアセットを作成してください。</div><div lang=\"en\">Need three title assets and two description assets.<br>Assets that use a function without default text are not counted in the required count.<br>Set the default text or create an asset without using a function.</div></td></tr> <tr><td>210614</td><td>Description: A number of characters is exceeding the limit for input.</td><td><div lang=\"ja\">説明文:入力可能な文字数を超えています。</div><div lang=\"en\">Description: A number of characters is exceeding the limit for input.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> <tr><td>120020</td><td>Can not set value.</td><td><div lang=\"ja\">値を設定することができません。詳細はヘルプを参照してください。<a href=\"https://ads-help.yahoo-net.jp/s/article/H000044211?language=ja\">A/Bテストについて</a></div><div lang=\"en\">Value cannot be set. See also the help below. <a href=\"https://ads-help.yahoo-net.jp/s/article/H000044211?language=en_US\">About A/B test</a></div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceOperation (optional)
* @return ResponseEntity<AdGroupAdServiceMutateResponse>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity adGroupAdServiceSetPostWithHttpInfo(Long xZBaseAccountId, AdGroupAdServiceOperation adGroupAdServiceOperation) throws RestClientException {
Object postBody = adGroupAdServiceOperation;
// verify the required parameter 'xZBaseAccountId' is set
if (xZBaseAccountId == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xZBaseAccountId' when calling adGroupAdServiceSetPost");
}
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (xZBaseAccountId != null)
headerParams.add("x-z-base-account-id", apiClient.parameterToString(xZBaseAccountId));
final String[] localVarAccepts = {
"application/json"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] contentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(contentTypes);
String[] authNames = new String[] { "oAuth" };
ParameterizedTypeReference returnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/AdGroupAdService/set", HttpMethod.POST, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType);
}
/**
*
* <div lang=\"ja\">商標の使用制限が解除されている場合は、制限が解除された旨の値が返却されます。</div> <div lang=\"en\">When the trademark restriction is removed, a value indicates \"removed\" will be returned.</div>
* 503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceSetTrademarkStatusOperation (optional)
* @return AdGroupAdServiceSetTrademarkStatusResponse
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public AdGroupAdServiceSetTrademarkStatusResponse adGroupAdServiceSetTrademarkStatusPost(Long xZBaseAccountId, AdGroupAdServiceSetTrademarkStatusOperation adGroupAdServiceSetTrademarkStatusOperation) throws RestClientException {
return adGroupAdServiceSetTrademarkStatusPostWithHttpInfo(xZBaseAccountId, adGroupAdServiceSetTrademarkStatusOperation).getBody();
}
/**
*
* <div lang=\"ja\">商標の使用制限が解除されている場合は、制限が解除された旨の値が返却されます。</div> <div lang=\"en\">When the trademark restriction is removed, a value indicates \"removed\" will be returned.</div>
*
503 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0099</td><td>Out of service.</td><td><div lang=\"ja\">APIがメンテナンス中、またはご利用できません。</div><div lang=\"en\">API is under maintenance or not available to use.</div></td></tr> </tbody> </table> </div>
*
500 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0002</td><td>An internal error has occurred.</td><td><div lang=\"ja\">内部エラーが発生しました。再度操作を実行してください。 <br>もし、問題が解決しない場合は、お問い合わせページをご利用ください。</div><div lang=\"en\">An internal error has occurred. Please try again later. <br>If the problem continues, please contact the support team via Inquiry page for assistance. </div></td></tr> </tbody> </table> </div>
*
200 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0001</td><td>Invalid Request.</td><td><div lang=\"ja\">さまざまな要因が考えられます。<br>主な要因は、パラメータの値が不正か、誤りがあるためにオペレーションが完了できません。</div><div lang=\"en\">This error can result for a variety of reasons. <br>Typically because one of the parameter values in the request is wrong or invalid and the operation cannot be completed.</div></td></tr> <tr><td>R0001</td><td>Require.</td><td><div lang=\"ja\">必須です。</div><div lang=\"en\">It is missing required parameter.</div></td></tr> <tr><td>F0001</td><td>Invalid format.</td><td><div lang=\"ja\">値の形式が不正です。</div><div lang=\"en\">The value format is invalid.</div></td></tr> <tr><td>V0001</td><td>Invalid value.</td><td><div lang=\"ja\">値が無効です。</div><div lang=\"en\">The value is invalid.</div></td></tr> <tr><td>S0001</td><td>Invalid Status.</td><td><div lang=\"ja\">ステータスが無効です。</div><div lang=\"en\">The status is invalid.</div></td></tr> <tr><td>L0002</td><td>Over list size.</td><td><div lang=\"ja\">配列の要素数が上限値を超過しています。</div><div lang=\"en\">The number of elements in the array exceeds the upper limit.</div></td></tr> <tr><td>L0001</td><td>Lower list size.</td><td><div lang=\"ja\">配列の要素数が下限値を下回っています。</div><div lang=\"en\">The number of elements in the array is below the lower limit.</div></td></tr> <tr><td>D0001</td><td>Duplicate.</td><td><div lang=\"ja\">一意な値が重複しています。</div><div lang=\"en\">The unique value is duplicated.</div></td></tr> <tr><td>RL001</td><td>Invalid relation.</td><td><div lang=\"ja\">リクエストの関連性が矛盾しています。<br> たとえば、開始>終了の日付指定を行なっているなど</div><div lang=\"en\">The relation of the request is contradictory.<br> For example, you are specifying the date of start > end.</div></td></tr> <tr><td>LT001</td><td>Over limit.</td><td><div lang=\"ja\">登録できる上限値を超過しています。</div><div lang=\"en\">The upper limit value that can be registered is exceeded.</div></td></tr> <tr><td>I0001</td><td>Deactivated Id.</td><td><div lang=\"ja\">IDが無効です。</div><div lang=\"en\">The ID is Deactivated.</div></td></tr> <tr><td>130000</td><td>The server is busy. Please retry later.</td><td><div lang=\"ja\">サーバーが高負荷です。時間をおいて再試行してください。</div><div lang=\"en\">The server is busy. Please retry later.</div></td></tr> <tr><td>130001</td><td>The request was not completed. Please reduce concurrent requests or data size. </td><td><div lang=\"ja\">リクエストが完了しませんでした。同時リクエスト数またはデータサイズを減らして再度お試しください。</div><div lang=\"en\">The request was not completed. Please reduce concurrent requests or data size.</div></td></tr> <tr><td>210605</td><td>App ad does not support Data Auto Insertion.</td><td><div lang=\"ja\">アプリ広告はデータ自動挿入をサポートしていません。</div><div lang=\"en\">App ad does not support Data Auto Insertion.</div></td></tr> <tr><td>210601</td><td>Multiple feeds are set in one ad.</td><td><div lang=\"ja\">一つの広告に複数のフィードが含まれています。</div><div lang=\"en\">Multiple feeds are set in one ad.</div></td></tr> <tr><td>211003</td><td>Domain does not match with DisplayURL.</td><td><div lang=\"ja\">表示URLと最終リンク先URLのドメインが一致していません。</div><div lang=\"en\">Domain of DisplayURL and AdvancedURL(FinalURL) do not match.</div></td></tr> <tr><td>211004</td><td>Cannot set under AndroidCampaign.</td><td><div lang=\"ja\">Androidのアプリキャンペーンでは、以下の設定ができません:<br>・キャンペーン、広告グループ、広告、キーワードにTrackingUrlや CustomParameterを設定<br>・キーワードに最終リンク先URLやスマートフォン向けURLを設定</div><div lang=\"en\">In the Android app campaign, the following settings can not be made:<br>・Set TrackingUrl and CustomParameter for campaigns, ad groups, ads, keywords<br>・Set the AdvancedUrl(FinalUrl) and AdvancedMobileUrl(SmartphoneFinalUrl) for the keywords</div></td></tr> <tr><td>211000</td><td>Cannot operate AdvancedURL(FinalURL).</td><td><div lang=\"ja\">アドバンスドURLに移行済みのため、操作できません。</div><div lang=\"en\">Since it has already been transferred to AdvancedURL(FinalURL), it can not be operated.</div></td></tr> <tr><td>211001</td><td>Cannot set AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">アプリダウンロードキャンペーンでは、advancedMobileURL(smartphoneFinalURL)の設定はできません。</div><div lang=\"en\">In the app download campaign, AdvancedMobileURL(SmartphoneFinalURL) can not be set.</div></td></tr> <tr><td>210606</td><td>Cannot create double text ad.</td><td><div lang=\"ja\">拡張テキスト広告が設定できるアカウントではありません。</div><div lang=\"en\">It is not an account that can set double text ad.</div></td></tr> <tr><td>211011</td><td>Cannot set DisplayURL and AdvancedURL(FinalURL),AdvancedMobileURL(SmartphoneFinalURL).</td><td><div lang=\"ja\">Dynamic Ads for SearchにはAdvancedUrl(FinalUrl),AdvancedMobileUrl(SmartphoneFinalUrl),displayUrlは設定できません。</div><div lang=\"en\">AdvancedUrl(FinalUrl), AdvancedMobileUrl(SmartphoneFinalUrl), DisplayUrl can not be set for Dynamic Ads for Search.</div></td></tr> <tr><td>211019</td><td>Request failed because of trademark conflicts.</td><td><div lang=\"ja\">商標に抵触している為、登録できません。</div><div lang=\"en\">Request failed because of trademark conflicts.</div></td></tr> <tr><td>210920</td><td>This action isn't available when creating the A/B test.</td><td><div lang=\"ja\">A/Bテスト作成中のため操作できません。</div><div lang=\"en\">This action isn't available when creating the A/B test.</div></td></tr> </tbody> </table> </div>
*
403 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0098</td><td>Permission denied.</td><td><div lang=\"ja\">権限がありません。</div><div lang=\"en\">Permission denied.</div></td></tr> <tr><td>0003</td><td>Frequency limit exceeded. Please try your request again later</td><td><div lang=\"ja\">アクセス頻度が上限値に達しました。時間をおいて再度実行してください。</div><div lang=\"en\">Frequency limit exceeded. Please try your request again later.</div></td></tr> </tbody> </table> </div>
*
401 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0110</td><td>Require access token.</td><td><div lang=\"ja\">アクセストークンがリクエストヘッダに存在していません。</div><div lang=\"en\">There is no access token in the request header.</div></td></tr> <tr><td>0111</td><td>Authentication failed.</td><td><div lang=\"ja\">アクセストークンの認証に失敗しました。</div><div lang=\"en\">The access token authentication failed.</div></td></tr> <tr><td>0112</td><td>Account not found.</td><td><div lang=\"ja\">アカウントが見つかりませんでした。</div><div lang=\"en\">The account can not found.</div></td></tr> <tr><td>0113</td><td>Deactivated account.</td><td><div lang=\"ja\">アカウントが無効です。</div><div lang=\"en\">The account is deactivated.</div></td></tr> </tbody> </table> </div>
*
400 - <p class=\"cellContent__head\">Error codes</p> <div class=\"cellContent__body\"> <table class=\"apiTable\"> <colgroup span=\"1\" class=\"short\"></colgroup> <colgroup span=\"2\"></colgroup> <thead> <tr><th>Code</th><th>Message</th><th>Description</th></tr> </thead> <tbody> <tr><td>0114</td><td>Invalid scope.</td><td><div lang=\"ja\">アクセストークンが無効です。</div><div lang=\"en\">The access token is invalid.</div></td></tr> </tbody> </table> </div>
* @param xZBaseAccountId <div lang=\"ja\">アカウントIDを指定してください。</div> <div lang=\"en\">Specify Account ID.</div> (required)
* @param adGroupAdServiceSetTrademarkStatusOperation (optional)
* @return ResponseEntity<AdGroupAdServiceSetTrademarkStatusResponse>
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public ResponseEntity adGroupAdServiceSetTrademarkStatusPostWithHttpInfo(Long xZBaseAccountId, AdGroupAdServiceSetTrademarkStatusOperation adGroupAdServiceSetTrademarkStatusOperation) throws RestClientException {
Object postBody = adGroupAdServiceSetTrademarkStatusOperation;
// verify the required parameter 'xZBaseAccountId' is set
if (xZBaseAccountId == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xZBaseAccountId' when calling adGroupAdServiceSetTrademarkStatusPost");
}
final MultiValueMap queryParams = new LinkedMultiValueMap();
final HttpHeaders headerParams = new HttpHeaders();
final MultiValueMap cookieParams = new LinkedMultiValueMap();
final MultiValueMap formParams = new LinkedMultiValueMap();
if (xZBaseAccountId != null)
headerParams.add("x-z-base-account-id", apiClient.parameterToString(xZBaseAccountId));
final String[] localVarAccepts = {
"application/json"
};
final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] contentTypes = {
"application/json"
};
final MediaType localVarContentType = apiClient.selectHeaderContentType(contentTypes);
String[] authNames = new String[] { "oAuth" };
ParameterizedTypeReference returnType = new ParameterizedTypeReference() {};
return apiClient.invokeAPI("/AdGroupAdService/setTrademarkStatus", HttpMethod.POST, Collections.emptyMap(), queryParams, postBody, headerParams, cookieParams, formParams, localVarAccept, localVarContentType, authNames, returnType);
}
}