Hi, 

Congratulations on your first post!

The cost 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#cost>
 field 
in Campaign Performance Report will get modified to accommodate the invalid 
clicks if it has any. Hence the cost that you get on your report should be 
the correct value (provided that you are not running the report too soon or 
looking for the data corresponding to current day or previous day). Please 
check the guide on data freshness 
<https://support.google.com/adwords/answer/2544985?hl=en> for better 
clarity on correctness of the report stats. If you run the report at each 
click level and include both valid and invalid clicks, you should be able 
to validate the stats. The invalid clicks 
<https://developers.google.com/adwords/api/docs/appendix/reports/campaign-performance-report#invalidclicks>
 in 
the Campaign Performance Report should give you the number which weren't 
charged as they were considered illegitimate. 

For getting the spend via the API, we do not have a service which gives the 
value directly. However, you will be able to calculate the spend if you are 
able to save the spendingLimit 
<https://developers.google.com/adwords/api/docs/appendix/selectorfields#v201702-BudgetOrderService>
 regularly 
which can be retrieved using the BudgetOrderService 
<https://developers.google.com/adwords/api/docs/reference/v201702/BudgetOrderService>
 locally 
and derive the spend by applying the calculation as below:
spent = (oldSpendingLimit - newSpendingLimit) + totalAdjustments

Let me know if you have any additional questions. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/5132109b-b208-4734-bf46-3d0f288b075a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How can ... Evan Chad
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Evan Chad
        • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
          • ... Evan Chad
            • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
              • ... Evan Chad
                • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
                • ... Evan Chad
                • ... 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum

Reply via email to