Problem with getting Impressions data from Criteria Performance Report

2019-07-30 Thread Denis Mazur
Hi,

I have problem with getting Impressions data from Criteria Performance 
Report 
https://developers.google.com/adwords/api/docs/appendix/reports/criteria-performance-report


The request which we send by API:
SELECT Id, Criteria, ClickType, Date, Clicks, AverageCost, Cost, Impressions
, CampaignId, CampaignName, AdGroupId, AdGroupName 
FROM CRITERIA_PERFORMANCE_REPORT 
DURING 20190722, 20190722


For one keyword, we get two types of ClickType:

   - Headline
   - Phone calls

Data that we get by API:
Headline:

   - Impressions: 1333
   - Clicks: 57
   - Cast: $ 203.52

Phone calls:

   - Impressions: 163
   - Clicks: 1
   - Cast: $ 3.90

Summary data that we get by API:

   - Impressions: 1496 - wrong data
   - Clicks: 58 - correct data
   - Cast: $ 207,42 - correct data

The data that we see in the Google Ads interface:

   - Impressions: 1333
   - Clicks: 58
   - Cast: $ 207,42

If we sum Impressions data it does not match with the data in the 
interface, although all other data match when summing data.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/45e77728-cdd0-4060-b173-65963a26ca61%40googlegroups.com.


How to get all the phone numbers in Google Ads account?

2019-07-31 Thread Denis Mazur
The code that we use to get phone numbers, but it gives out only one phone 
number (although there are two in the account).

var campaignIterator = AdsApp.campaigns().get();
  
  while(campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
var phoneNumberIterator = campaign.extensions().phoneNumbers().get();


while (phoneNumberIterator.hasNext()) {
  var phoneNumber = phoneNumberIterator.next();
  Logger.log('Phone number : ' + phoneNumber.getCountry() + phoneNumber.
getPhoneNumber());
  
}


Logger.log('Number of phone number extensions applied to this campaign: 
' +
phoneNumberIterator.totalNumEntities());
  }



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2c96571a-1bdb-445c-9ab0-123a1af3ca03%40googlegroups.com.