search for missing partner code and add it to URLs

9 views
Skip to first unread message

Kirill V

unread,
Aug 6, 2019, 3:56:48 PM8/6/19
to Google Ads Scripts Forum
I would like to know if it doable and what's the best approach to build a script to accomplish my goal.

I'd like to check all landing pages to see there is a specific partner code (e.g.: purchase_type={bulk} ) that is missing in each landing page URL.

If it's missing then add it, if it's not - ignore and keep iterating thru the rest of URLs.

Thank you.

Google Ads Scripts Forum Advisor Prod

unread,
Aug 7, 2019, 3:36:04 AM8/7/19
to adwords...@googlegroups.com
Hi Kirill,

Thanks for posting your concern.

Could you confirm if you are referring to the custom parameters of the landing page? If yes, I am afraid that landing page with the partner code (in this form purchase_type={bulk}) is currently not possible to retrieve. However, you may utilize the getCustomParameters() method to get custom parameters of landing page (for sitelinks).

The sample returned value for this method is displayed below.
{key1: 'value1', key2: 'value2', key3: 'value3'}

Moving forward to your concern about setting the custom parameters. You may use the setCustomParameters(customParameters) for setting the custom parameters for your landing pages (for sitelinks).

Let me know if you have further questions.

Regards,
Ejay
Google Ads Scripts Team

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