Hello Krishna,In the latest version of Google Ads API beta the SearchPagedResponse consists of number of GoogleAdsRows. A GoogleAdsRow represents an object returned by a query, and consists of a set of attributes that are populated based on the fields requested in the SELECT clause. To know more about GoogleAdsRow please refer
this guide. When you print the google Ads row as shown in the below code snippet(for JAVA client library) you will get the result similar to JSON format for each row. If you want to get exact JSON format you can use the CURL operations as shown in the step-5 of
this guide otherwise you have to build a JSON object at your end. Please let me know if you have any further questions.
SearchPagedResponse searchPagedResponse = googleAdsServiceClient.search(request);
for (GoogleAdsRow googleAdsRow : searchPagedResponse.iterateAll()) {
System.out.println(googleAdsRow);
}
Response (Redacted the Ids) below:
campaign {
resource_name: "customers/123456789/campaigns/123456789"
id {
value: 123456789
}
name {
value: "TestCampaign"
}
campaign_budget {
value: "customers/123456789/campaignBudgets/123456789"
}
network_settings {
target_content_network {
value: true
}
}
}
Hope this helps you, please let me know if you have any further questions.Regards,
Sai Teja, Google Ads API Team