When i try to execute this code: 

function runReport1(id_campaign, id_group, id_product, period) {
  var query = `
          SELECT segments.product_item_id, metrics.clicks, 
metrics.conversions_value, campaign.id, ad_group.id
          FROM shopping_performance_view
          WHERE segments.date DURING `+period+` and 
segments.product_item_id="`+id_product+`" 
                  and campaign.id="`+id_campaign+`" and 
ad_group.id="`+id_group+`"
          `
        var rows = AdsApp.report(query).rows();
        Logger.log(rows.totalNumEntities());
}


it doesn't work and it returns this error instead: 
Ca: MutateError.UNSPECIFIED: Call to GoogleAdsService.Search failed: The 
error code is not in this version.

However, if I use this code I'm gonna tell you, it works: 

function runReport1(id_campaign, id_group, id_product, period) {
  var query = `
          SELECT metrics.clicks, metrics.conversions_value, campaign.id, 
ad_group.id
          FROM shopping_performance_view
          WHERE segments.date DURING `+period+` and 
segments.product_item_id="`+id_product+`" 
                  and campaign.id="`+id_campaign+`" and 
ad_group.id="`+id_group+`"
          `
        var rows = AdsApp.report(query).rows();
        Logger.log(rows.totalNumEntities());
}

but the result it's not the one I need. 

I need a solution for these. Where can I find the product information from? 

Last week it worked but since Friday it didn't work. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/800abea1-29e3-489e-8e2c-8d67800a53dbn%40googlegroups.com.

Reply via email to