Yahoo! JAPAN Ads Script | Developer Center
日本語Troubleshooting runtime updates
This page describes troubleshooting when upgrading to each runtime.
If an error occurs, refer to the error message for each version and rewrite it.
・V202406 to V202507(latest version)
・V202501 to V202503
・Old versions
V202406 to V202507(latest version)
Error Message | Service in use | Change | Before the change | After the change | Comments |
---|---|---|---|---|---|
Error: errorCode: "0005", message: "Bad request." | CampaignService of Display Ads | Rename fields | skanOptimaizeAdDeliveryEnabled | skanOptimizeAdDeliveryEnabled | Error encountered when verifying operation (Refer to Old versions) |
Error: errorCode: "0005", message: "Bad request.", details: [{key: "null", value: "Unexpected value 'SITE_CATEGORY'"}] | AdGroupTargetService of Display Ads | If targetType is "SITE_CATEGORY" remove calling part | Example 1: If targetTypes is only "SITE_CATEGORY" const adGroupTargets = Display.AdGroupTargetService.add({ accountId: 123456, operand: [ { campaignId: 11111111, adGroupId: 22222222, bidMultiplier: 1.2, target: { targetId: 123456789, targetType: 'SITE_CATEGORY' } } ] }).rval; Example 2: If targetTypes is not only "SITE_CATEGORY" const adGroupTargets = Display.AdGroupTargetService.add({ accountId: 123456, operand: [ { campaignId: 11111111, adGroupId: 22222222, bidMultiplier: 1.2, target: { ageTarget: { age: 'GT_RANGE20_24', }, targetType: 'AGE_TARGET', }, }, { campaignId: 11111111, adGroupId: 22222222, bidMultiplier: 1.5, target: { targetId: 123456789, targetType: 'SITE_CATEGORY' } } ] }).rval; |
Example 1: Remove all calling parts |
Due to end of site category targeting. |
Error: errorCode: "0005", message: "Bad request.", details: [{key: "null", value: "Unexpected value 'SITE_CATEGORY'"}] | StatsService/get of Display Ads | If targetType is "SITE_CATEGORY" remove calling part |
Example 1: If targetTypes is only "SITE_CATEGORY" |
Example 1: Remove all calling parts |
Due to end of site category targeting. |
Error: errorCode: "0005", message: "Bad request.", details: [{key: "reportType", value: "Unexpected value 'SITE_CATEGORY'"}] | ReportDefinitionService/ of Display Ads getReportFields |
If reportType is "SITE_CATEGORY" remove calling part | Example: const result = Display.ReportDefinitionService.getReportFields({ reportType: "SITE_CATEGORY" }); |
Example: |
Due to end of site category targeting |
TypeError: Display.DictionaryService.getSiteCategory is not a function | DictionaryService/ getSiteCategory of Display Ads | Remove the calling part | Example: const result = Display.DictionaryService.getSiteCategory({ lang:"JA" }); |
Example: |
Due to end of site category targeting |
Error: errorCode: "0005", message: "Bad request." | AudienceListService of Display Ads | Delete value | customAudienceId | - (Delete the item.) |
Launch of the tracking tag |
V202501 to V202503
There is no trouble updating V202503.
If the script doesn't work, it is likely to be an error that normally occurs, not an error related to updating; refer to the section on "how to handle errors. "
Old versions
V202406 to V202501
Starting with V202501, having two functions with the same name in a script results in an error.
Error Message | Service in use | Change | Before the change | After the change | Relevant page |
---|---|---|---|---|---|
SyntaxError: Identifier 'main' has already been declared | Depends on your settings | Remove unnecessary main functions so that multiple main functions become one. | As shown in pattern 1~3 | None *Depends on your settings. This often happens when the solution is pasted without removing the main function that is initially shown. The main function may be at the end of the script, rather than at the beginning. |
|
SyntaxError: Identifier '○○○' has already been declared | Depends on your settings | Fixed multiple ○○○ functions (functions with the same name) to become one. | Various patterns depend on the script, but the following are common examples: 1.If multiple ○○○ functions have the same processes, remove the unnecessary ones. 2. If multiple ○○○ functions have different processes, change one of the function names as needed or separate them into other scripts. This issue often occurs in scripts customized by the user, so ask the person who created the script to make the necessary corrections. |
None *Depends on your settings. |
Pattern 1: When there is an empty main function at the beginning Pattern 2: When there is an empty main function at the end
Pattern 3: When the main function is nested
V202306 to V202402
Error Message | Service in use | Change | Before the change | After the change | Relevant page |
---|---|---|---|---|---|
Error: errorCode: "0005", message: "Bad request." at code:NN:NN *Note that this error is generic and there are other possible causes |
AccountLinkService (Operation to MCC accounts) |
Change in item names | managerAccountId | mccAccountId |
・Sample Library>Solutions>Account summary report under MCC |
Error: errorCode: "F0001", message: "Invalid format.", details: [{key: "startDate", value: "20240201000000"}] errorCode: "F0001", message: "Invalid format.", details: [{key: "endDate", value: "20240305235959"}] at code:NN:NN, at code:NN:NN *Bold text indicates arbitrary values |
AuditLogService (Change history) |
Removing the hours, minutes, and seconds portion of a value for a duration period | Example: dateRange: { startDate:"20240201000000", endDate:"202400305235959" } |
Example: dateRange: { startDate:"20240201", endDate:"20240305" } |
None |