Yahoo! JAPAN Ads Script | Developer Center
日本語How to fix scripts due to the change in access
There are scripts that need to be fixed due to the change of access in the Google Account Integration feature. This page describes the details of the target script and how to fix them.
*Learn more about the access change in the following announcement.
Yahoo! JAPAN Ads: Yahoo! JAPAN Ads Script change scripts and agreement to new access
Actions that require script content modification
Fix the script that contains the following actions.
Check the fix example.
Actions that will be unavailable after agreement |
Read actions for files and folders created outside of Yahoo! JAPAN Ads Scripts on Google Drive. Functions that will no longer be available:
|
What to do after fixing |
Read and write fixed spreadsheets Example function: |
How to determine which scripts need to be fixed
Search for "DriveApp.get" in the script editing screen. If the target function is found, it is subject to fix.
Search shortcuts: [Windows]Ctrl+F, [Mac]Command+F
Example search results
Examples of fixing by usage pattern
<Pattern A: Create a file under a specified folder (export report data as CSV)>
What to do before fixing | What to do after fixing |
■ Actions
|
Case 1: Change to spreadsheet output
Reference: Case 2: Change to file output directly under My Drive
* By setting DriveApp.createFile instead of createFile for folder, a file will be created directly under My Drive. |
<Pattern B: Retrieving csv files (offline conversions or uploading audience lists)>
What to do before fixing | What to do after fixing |
■ Actions
■ Actions
■ Actions
* If you are using the retrieved file to perform an automatic upload (Search.OfflineConversionService.upload() or Display.AudienceListService.uploadUserList()). |
Prepare a spreadsheet and change its spreadsheet ID to the specified data acquisition. Reference: Offline conversion
Audience list |
<Pattern C: Acquisition of image and video files (image and video submission)>
What to do before fixing | What to do after fixing |
■ Actions The same action for getting from Google Drive as pattern B * If you are using the acquired file to perform an automatic upload (such as Display.MediaService.add()). |
You will not be able to retrieve images and video files from Google Drive. Note that the judging of images and videos in Display Ads begins at the time set for the ads. Upload your ad manually when you create it, as uploading it in advance will not be reviewed until it is set to an ad. |