Migrating Link Checker to new experience - MCC Version

263 views
Skip to first unread message

ni...@bambrickmedia.com.au

unread,
May 20, 2022, 1:20:02 AM5/20/22
to Google Ads Scripts Forum
I'm trying to migrate an old experience Link Checker that runs across our MCC.

I'm getting an error message that I need help to solve please 
as it looks to be something internal to scripts.

This is the error message that it spits out.

20/05/2022 2:42:25 pm    SystemError: Could not read from Google Ads
(Internal details: Missing field campaign
in object {
  "asset": {
    "resourceName": "customers/1234567890/assets/9876543210",
    "type": "SITELINK",
    "id": "9876543210",
    "finalUrls": [
      "https://domain.com.au/#lp"
    ],
    "sitelinkAsset": {
      "linkText": "XXXX",
      "description1": "abcdefghighlmnopqrsutuvwxyz",
      "description2": "Try Not To Drool!"
    }
  },
  "campaignAsset": {
    "resourceName": "customers/3920107709/campaignAssets/1234567890~9876543210~SITELINK",
    "fieldType": "SITELINK",
    "status": "ENABLED",
    "campaign": "customers/1234567890/campaigns/9876543210",
    "asset": "customers/1234567890/assets/9876543210"
  }
})
    at g (adsapp_compiled:265:50)
    at nd (adsapp_compiled:1127:10)
    at pd.getResourceName (adsapp_compiled:1144:14)
    at Qj (adsapp_compiled:2565:15)
    at CD (adsapp_compiled:15587:10)
    at Pk (adsapp_compiled:15602:43)
    at eo.getCampaign (adsapp_compiled:5434:12)
    at Object.<anonymous> (adsapp_compiled:18305:54)


The script appears to continue to run, particularly since it's using executeInParallel.

However, the above then seems to also cause a secondary error which halts execution.
20/05/2022 2:49:18 pm    Exception: Call to GoogleAdsService.Search failed: An internal error has occurred.
    at adsapp_compiled:18050:138
    at adsapp_compiled:18061:9
    at ra (adsapp_compiled:227:15)
    at Object.search (adsapp_compiled:235:20)
    at $H.search (adsapp_compiled:18176:36)
    at JH.search (adsapp_compiled:17753:19)
    at KH.search (adsapp_compiled:17848:20)
    at RH.search (adsapp_compiled:17940:19)
    at ed (adsapp_compiled:1042:32)
    at ed.next (<anonymous>)
20/05/2022 2:56:44 pm    SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at processResults (Code:241:32)



Can you please provide some assistance with solving this?   Thanks.

PS - the migrated script runs perfectly with the Check Sitelink URLS option turned off.

Regards
Nigel


Google Ads Scripts Forum Advisor

unread,
May 23, 2022, 4:32:07 AM5/23/22
to adwords...@googlegroups.com

Hello Nigel,

I’m James from the Google Ads scripts support team. Thank you for reaching out to us.

I completely understand your concern. However, please be informed that running our solution scripts such as Link checker for Manager account in the new script experience version is expected to encounter any errors or unexpected behaviors because it is not yet fully migrated to the new script experience environment and manually migrating the said script in the new script experience environment would be complicated.

Having said that, I suggest that you continue to execute the said solution script in the legacy version of Google Ads script (by toggling off the new experience option in the script interface in the meantime), until it has been fully migrated and released in our latest documentation.

Rest assured that the team will surely provide best effort to reduce the script changes, so that the migration of the solution script will be hasslefree and easy to our users. The team will also provide an ample amount of time for users migrating to the new solution script once available. For any updates on this, I suggest that you keep an eye to our blog or our latest documentation.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2bBa3d:ref

ni...@bambrickmedia.com.au

unread,
May 24, 2022, 12:56:43 AM5/24/22
to Google Ads Scripts Forum
Hi James

I am still running the script in the Legacy version, however I'd like to migrate as soon as possible to avoid it failing.  
The reason for this is the email I received that I've copied below which states I must migrate the script by May 13th
(which was 10 days ago) and I'm beginning to get a little concerned that the script will start failing soon.

I hope the solution will be available shortly.



Dear Scripts user,

Migrate your scripts which create, fetch, or modify extensions to the new Google Ads scripts experience by May 13, 2022.

You must migrate your scripts which create, fetch, or modify ad extensions to the new Google Ads scripts experience by May 13, 2022, or they will cease to function properly.

What’s changing?

On May 13, 2022, Google will begin to automatically copy all instances of Feed-based Callout, App, Price, Sitelink, and Structured Snippet extensions to new Asset-based extensions. This change will allow us to roll out more product improvements in the future. The new Assets will be linked to the same ad groups, campaigns, and customers as the Feed-based extensions from which they were copied. After an account has been migrated, all scripts which create, fetch, or modify these extension types will fail with errors. You can continue to request reports for Feed-based extensions until August 2022.

The following scripts will need to be migrated:


Sincerely,

The Google Ads Scripts Team

Google Ads Scripts Forum Advisor

unread,
May 25, 2022, 1:18:37 AM5/25/22
to adwords...@googlegroups.com
Hi Nigel,

I work along with James. Allow me to assist you in this.

Since you're using our Solution Scripts, then we recommend to execute it through Legacy while the team is migrating the said solution script to new experience. You may safely ignore the notification that you've received as of this moment. I would also recommend to keep an eye on our blog or our latest documentation regarding this.

Regards,
Google Logo
Teejay Wennie
Google Ads Scripts Team
 

 

ref:_00D1U1174p._5004Q2bBa3d:ref

ni...@bambrickmedia.com.au

unread,
May 25, 2022, 1:59:48 AM5/25/22
to Google Ads Scripts Forum
Thanks Teejay.

Will keep an eye out for the solution scripts in the documentation.

Regards
Nigel

Google Ads Scripts Forum Advisor

unread,
May 25, 2022, 3:59:12 AM5/25/22
to adwords...@googlegroups.com

Hello Nigel,

Please let us know if you need anything else from us. We’re happy to assist you.

Regards,

Google Logo
James Howell
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2bBa3d:ref
Reply all
Reply to author
Forward
0 new messages