Re: ShoppingProductAdInfo is empty

2020-08-20 Thread Ahmed Adly
Hello Anthony, I tried that and still the same. the code now looks like this: Ad ad = googleAdsRow.getAdGroupAd().getAd(); ShoppingProductAdInfo shoppingProductAd = googleAdsRow.getAdGroupAd().getAd().getShoppingProductAd(); System.out.println(shoppingProductAd.toString()); I tried this versio

Re: ShoppingProductAdInfo is empty

2020-08-20 Thread Google Ads API Forum Advisor Prod
Hi Ahmed, Please try to update the following lines: AdGroupAd adGroupAd =googleAdsRow.getAdGroupAd(); Ad ad = adGroupAd.getAd(); to Ad ad = googleAdsRow.getAdGroupAd().getAd(); Regards, Anthony Google Ads API Team ref:_00D1U1174p._5004Q23LHe7:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

Re: ShoppingProductAdInfo is empty

2020-08-19 Thread Ahmed Adly
Hello Anthony, I'm already looping through them, Here is the full code: String query = "SELECT ad_group.id, " + "ad_group_ad.ad.id, " + "ad_group_ad.ad.name," + " ad_group_ad.ad.type, " + "ad_group_ad.ad.shopping_product_ad " + " FROM ad_group_ad " + "Where ad_group_ad.ad.type = \"SHOPPING_PRODU

Re: ShoppingProductAdInfo is empty

2020-08-19 Thread Ahmed Adly
Hello Anthony, I'm already looping through them, Here is the full code: String query = "SELECT ad_group.id, " + "ad_group_ad.ad.id, " + "ad_group_ad.ad.name," + " ad_group_ad.ad.type, " + "ad_group_ad.ad.shopping_product_ad " + " FROM ad_group_ad " +

RE: ShoppingProductAdInfo is empty

2020-08-19 Thread Google Ads API Forum Advisor Prod
Hello Ahmed, Instead of using an AdGroupAd object, you should iterate through the rows in your report, much like how it is shown here. Regards, Anthony Google Ads API Team ref:_00D1U1174p._5004Q23LHe7:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https:/

Re: ShoppingProductAdInfo is empty

2020-08-19 Thread Ahmed Adly
Hello, Any reply to this? We need to fix this urgently. On Tuesday, August 18, 2020 at 3:33:44 PM UTC-5 Ahmed Adly wrote: > Hello, > I have this query: > > String query = "SELECT ad_group.id, " > + "ad_group_ad.ad.id, " > + "ad_group_ad.ad.name," + > " ad_group_ad.ad.type, " + > "ad_group_ad.ad.