Hi Siddharth,
Thank you for reaching out to us.
With regard to your concern, there are two ways to extract all the campaigns per client:
Since you will be running the script on the MCC level, you will need to iterate first through child accounts using the
accounts method. Once you've retrieved the client accounts, you can iterate through them using the iterator's
hasNext and
next methods. You need to use the
select method to switch the execution context to a client account.
Regards,
 |
| Teejay Wennie |
| Google Ads Scripts Team |
|
|
| |

ref:_00D1U1174p._5004Q2bcwjt:ref