Hi Shivangi,
Could you confirm which API it is you wish to use, is the
AdWords API or the
Google Ads API?
If AdWords, you can refer below for the guide and example code :
DSA Page Feeds
Code example (the 1st Python sample you provided is the more complete example that you can refer to when using the AdWords API)
If you will be using the Google Ads API, you can refer to the below documentation instead :
Google Ads API DSA Page Feeds
The 2nd Python sample you provided is the example code that you can use if you will be using the Google Ads API.
Best regards,
 |
Peter Laurence Napa Oliquino |
Google Ads API Team |
|
|
|

ref:_00D1U1174p._5004Q2B1iX2:ref