Hey there af32adqws,
Thank you for posting in Apple Support Communities. We understand you are having problems charging your iPad from your MacBook. Checking If your iPad won't charge was a great step to help resolve issues charging your iPad. Ensuring your iPad charges when connected to a different power source will help to determine if the issue lies in the cable, the iPad, or the Mac.
According to Charge the iPad battery charging from your Mac requires:
"Connect iPad and your computer with a cable.
Make sure your computer is turned on—if iPad is connected to a computer that’s turned off, the battery may drain instead of charge. Look for on the battery icon to make sure iPad is charging.
If your Mac or PC doesn’t provide enough power to charge iPad, a Not Charging message appears in the status bar.
Note: Don’t try to charge your iPad by connecting it to your keyboard, unless your keyboard has a high-power USB port."
"Connect iPad to the USB port on your computer using the charging cable for your iPad.
If the cable isn’t compatible with the port on your computer, do one of the following:
- If your iPad came with a USB-C Charge Cable and your computer has a USB port, use a USB-C to USB Adapter and a USB-A cable (each sold separately).
- If your iPad came with a USB-C to Lightning cable and your computer has a USB port, use a Lightning to USB Cable (sold separately).
- If your iPad came with a Lightning to USB cable and your computer has a USB-C port, connect the USB end of the cable to a USB-C to USB Adapter (sold separately), or use a USB-C to Lightning Cable (sold separately).
- If your iPad came with a Thunderbolt 4 / USB-4 charging cable and your computer has a USB port, use a USB-C to USB Adapter and a USB-A cable (each sold separately). (You can use Thunderbolt or USB cables with Thunderbolt devices like iPad Pro 12.9-inch (5th generation) and iPad Pro 11-inch (3rd generation).)"
Have a great day!