Thanks Sai Teja. I was printing searchPagedResponse instead of  
googleAdsRow.

Is there a limitation on the # of fields in the SELECT clause? Thinking in 
terms of a huge SELECT operation for all GET requests.

Thanks,

Krishna



On Thursday, December 27, 2018 at 2:46:19 PM UTC-5, Teja Makani wrote:
>
> 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 
> <https://developers.google.com/google-ads/api/docs/concepts/retrieving-objects#understanding_the_googleadsrow>.
>  
> 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 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#api_call_example>
>  otherwise 
> you have to build a JSON object at your end. Please let me know if you have 
> any further questions.  
>   
> *Sample Code snippet from JAVA client library's GetCampaigns.java 
> <https://github.com/googleads/google-ads-java/blob/master/google-ads-examples/src/main/java/com/google/ads/googleads/examples/basicoperations/GetCampaigns.java#L97-L100>
>  below:*
> 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
>
> On Thursday, December 27, 2018 at 9:11:10 AM UTC-5, vskadwords wrote:
>>
>> Hi,
>>
>>
>> Is there an api method to print *SearchPagedResponse* as JSON on the 
>> console? If not, any ideas to accomplish that.
>>
>> Basically looking to retrieve the response as a JSON string.
>>
>>
>> Thanks,
>>
>>
>> Krishna
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/90f4a92b-b3d7-4a15-b93c-78efa622e07f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to