Account level Sitelinks

18 views
Skip to first unread message

Jamie T

unread,
Jan 18, 2019, 6:54:45 AM1/18/19
to Google Ads Scripts Forum
Hi all,

Just wondering - is there any way of adding sitelinks at the account level through scripting? I've taken a look at the documentation and I can see how to pull the info for account level sitelinks but not how to create new ones and apply them - I'm not sure if I'm just missing something!

Thanks,

Jamie

googleadsscrip...@google.com

unread,
Jan 18, 2019, 12:26:11 PM1/18/19
to Jamie T via Google Ads Scripts Forum, Google Ads Scripts Forum
Hi Jamie,

You can add sitelinks to accounts via the addSitelink function in the common Account object. For example, one way to add an account sitelink would be:

AdsApp.currentAccount().addSitelink(sitelink) // assume a previously defined variable 'sitelink' that is of type, SiteLink

You can also create a sitelink with the sitelink builder and use the newly created sitelink as the argument to addSitelink(argument). Also, please note that although this example was done in a client account, this can also be accomplished from an MCC as well.

Regards,
Matt 
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/99062073-b2a2-4938-8bb3-0b3e3333eb49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages