Script for enabling auto tagging setting

101 views
Skip to first unread message

Jack

unread,
May 22, 2023, 8:27:11 AM5/22/23
to Google Ads Scripts Forum
Hi,

I am attempting to write a script that will check to see if the auto tagging setting is enabled for my customer and if it is disabled then it will enable it. I dont have much Java experience and this is what I have created so far. I would love some guidance.

function main() {
  if customer.auto_tagging_enabled = TRUE
    set customer.auto_tagging_enabled = False
 
}

Thanks,

Jack

Nils Rooijmans

unread,
May 23, 2023, 3:29:15 AM5/23/23
to Google Ads Scripts Forum
You will need to use a GAQL query to check and see if this setting is enabled:
Unfortunately, as far as I know, you cannot change this setting using Google Ads Scripts so you will need to report it and then change it manually. Here's some code to help you get started:


  var gaqlQuery  = 'SELECT customer.auto_tagging_enabled FROM customer' ;

  var results = AdsApp.search(gaqlQuery);
 
  while (results.hasNext()) {
    var result = results.next();
    var autoTagging = result.auto_tagging_enabled;
    if ( autoTagging == false ) {
      console.log("autotagging disabled"):
      doSomething(); // send email alert, add to spreadsheet or stuff like that
  }




Hope this helps,

Nils Rooijmans
https://nilsrooijmans.com
See my Google Ads Scripts FAQ to avoid the same mistakes I made: https://nilsrooijmans.com/google-ads-scripts-faq/

Google Ads Scripts Forum Advisor

unread,
May 24, 2023, 2:19:47 PM5/24/23
to adwords...@googlegroups.com

Hi Everyone,

I'm from the Google Ads Scripts team.

Upon checking, I can confirm that updating customer.auto_tagging_enabled is not possible via Google Ads Scripts. I've raised a feature request on this, however, I'm afraid that I'm unable to provide a timeline on when it will become available. We recommend that you keep an eye on our Ads Developer Blog (https://ads-developers.googleblog.com/search/label/google_ads_scripts) for future updates and latest announcements.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2lKjCs:ref"

Thanks,
 
Google Logo Google Ads Scripts Team


zulunran wixpa

unread,
May 31, 2023, 3:45:00 AM5/31/23
to Google Ads Scripts Forum on behalf of adsscripts

how we enable  site tag with rest  api of google ads we make a conversion from rest api endpoint using  google ads v13 end point   


--
-- 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-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/CX2AM000000000000000000000000000000000000000000000RV6DKP00NZ2E5DLlQieYFeArpsvN5g%40sfdc.net.

Yến My Đồng

unread,
May 31, 2023, 3:45:27 AM5/31/23
to Google Ads Scripts Forum on behalf of adsscripts

Uy0kKX4aNi

Google Ads Scripts Forum

unread,
Jul 5, 2023, 1:26:44 AM7/5/23
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/2QadL2M0Kx4) from the forum as it wasn't routed to our support queue.

Regards,
Google Ads Scripts Team

On Wednesday, May 31, 2023 at 3:45:27 PM UTC+8 odpl0t...@gmail.com wrote:

Uy0kKX4aNi

Google Ads Scripts Forum Advisor

unread,
Jul 5, 2023, 4:49:50 AM7/5/23
to adwords...@googlegroups.com

Hi,

 

Thank you for reaching out to the Google Ads Scripts Team. Please excuse us for only getting back now as your message failed to be routed to our support queue.

 

I'm afraid we're unable to comment further regarding the REST API as our team can only provide assistance to Google Ads Scripts <https://developers.google.com/google-ads/scripts/docs/start>. I would instead suggest you reach out to the Google Ads API Support Team instead via their public forum as they can be able to provide better insights on this. Kindly refer to the links below for you to do so.

 

Relevant links:

 

Let us know if we can assist you with anything else regarding Google Ads Scripts.

 

This message is in relation to case "ref:_00D1U1174p._5004Q2mrQih:ref"


Thanks,
 
Google Logo Google Ads Scripts Team


Reply all
Reply to author
Forward
0 new messages