(1) In the area I am now, Google website is not visitable because of the Great Firewall. But I am using Clash for Windows and I could access and visit Google website. It works well on my browser.

(2)I am testing Google Ads API with simple function in Python like the following through Jupyter Notebook which is installed on my Windows 10 laptop:

import logging logging.basicConfig(level=logging.INFO) from google.ads.googleads.client import GoogleAdsClient from google.ads.googleads.errors import GoogleAdsException    # Define the main function def main(client, customer_id):     ga_service = client.get_service("GoogleAdsService")     query = """         SELECT             campaign.id,             campaign.name         FROM campaign         ORDER BY campaign.id     """     # Issues a search request using streaming.     stream = ga_service.search_stream(customer_id=customer_id, query=query)     # Iterate through the results and print them     for batch in stream:         for row in batch.results:             print(                 f"Campaign with ID {row.campaign.id} and name "                 f"{row.campaign.name}"             ) # Load Google Ads client from storage # Replace "PATH/TO/YOUR/google-ads.yaml" with the actual path to your file googleads_client = GoogleAdsClient.load_from_storage(path=r"C:\Users\tomxi\google-ads.yaml", version="v15") # Get customer ID from user input (optional) # Replace with your desired method of obtaining the customer ID customer_id = "xxxxxxxxxx" # Call the main function try:     main(googleads_client, customer_id) except GoogleAdsException as ex:     print(         f'Request with ID "{ex.request_id}" failed with status '         f'"{ex.error.code().name}" and includes the following errors:'     )     for error in ex.failure.errors:         print(f'\tError with message "{error.message}".')         if error.location:             for field_path_element in error.location.field_path_elements:                 print(f"\t\tOn field: {field_path_element.field_name}")     sys.exit(1) 

(3)I got the error:

[TransportError: HTTPSConnectionPool(host='accounts.google.com', port=443): Max retries exceeded with url: /o/oauth2/token (Caused by SSLError(SSLEOFError(8, '\[SSL: UNEXPECTED_EOF_WHILE_READING\] EOF occurred in violation of protocol (_ssl.c:1006)')))][1] 

(4)I guess the Google Ads API employs some route or something else which is not used or controlled by the Clash for Window on my laptop. I am not sure how to check and change it. Please help me.

How can I optimize the following script? It is timing out due to probably multiple loops. The loops are in order:

1-Loop through all Google Ads accounts.

2-Loop through all Ad Groups.

3-Within each Ad Group, check if any ads have a "DISAPPROVED" status. If yes, append the data to Google Sheets.

  function main() {   var sheetId = 'XXX';   var sheetName = 'XXX';   var spreadsheet = SpreadsheetApp.openById(sheetId);   var sheet = spreadsheet.getSheetByName(sheetName);   if (!sheet) {     sheet = spreadsheet.insertSheet(sheetName);   } else {     // Clear the existing contents     sheet.clearContents();   }   // Adding headers (column names)   var headers = ['Account Name', 'Campaign', 'Ad Group'];   sheet.appendRow(headers);    // Iterating through each client account   var accountIterator = AdsManagerApp.accounts().get();   while (accountIterator.hasNext()) {     var account = accountIterator.next();     AdsManagerApp.select(account);     var adGroupIterator = AdsApp.adGroups()         .withCondition('CampaignStatus = ENABLED')         .withCondition('AdGroupStatus = ENABLED')         .get();     while (adGroupIterator.hasNext()) {       var adGroup = adGroupIterator.next();       // Check if the ad group has any disapproved ads       var disapprovedAdFound = false;       var adIterator = adGroup.ads().get();       while (adIterator.hasNext()) {         var ad = adIterator.next();         if (ad.getPolicyApprovalStatus() === 'DISAPPROVED') {           disapprovedAdFound = true;           break;         }       }       if (disapprovedAdFound) { // Disapproved ads found         // Record the details of the ad group with disapproved ads         sheet.appendRow([           account.getName(),           adGroup.getCampaign().getName(),           adGroup.getName()         ]);       }     }   } } 

I'm trying to get leads and filter them by lead ID or field_data. I'm using the Facebook NodeJS SDK but neither got it working in the GraphQL Explorer.

What's the issue? I want to filter leads by id or field_data but I'm getting An unknown error has occurred.

GraphQL query: 807167831236778 is the leadgen form ID is the Facebook lead ID

807167831236778/leads?fields=id&filtering=[{"field":"id","operator":"EQUAL","value":"346632491054423"}]

NodeJS SDK

const params = {   // trying to filter a specific lead id   'filtering' : [{'field':'id','operator':'EQUAL','value':'123456'}], }; const leadgenFormLeads = await (new LeadgenForm(form.id)).getLeads([                 Lead.Fields.campaign_name,                 Lead.Fields.created_time,                 Lead.Fields.field_data,                 Lead.Fields.form_id             ], params).then((result) => result.map((lead) => lead._data)) 

Hi can anyone relate to this? my WABA Account just get banned over and over again because they said it breach the terms of acceptable used. I try with different facebook account,different number with various country code,i try with so many BSP, i even use VPN but when I made WABA its always disable because They say I breach the terms of acceptable use. Has anyone ever get this type of banned to? And How to resolve it because I need to made many WABA Account for my client.