Hi Rohith,

> Question 1: - can you provide curl commands like above where i get the report 
> directly? Also can you tell me whether I am hitting the right endpoint or not?

You will need to create a report definition in an XML file and use this with 
the cURL command. As mentioned in the previous email, you should refer to 
https://developers.google.com/adwords/api/docs/guides/reporting to see how to 
create this report definition.
The same guide also describes the endpoint at 
https://adwords.google.com/api/adwords/reportdownload/v201809

curl --header "Content-Type: application/soap+xml" \
     --header "Authorization : Bearer access-token" \
     --data @<report_definition>.xml \
       https://adwords.google.com/api/adwords/reportdownload/v201809


> Question2:- If I want to pull last 7 days of report only for the campaigns 
> with ACTIVE status, do I get records of those campaigns which are active for 
> the first three days and inactive for the next four days?

If you query for DateRangeType LAST_7_DAYS and CampaignStatus ENABLED, you will 
get results where campaigns are currently serving ads: 
https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.CampaignStatus

Hope that this helps your issue, thank you.
ref:_00D1U1174p._5001UZXqZT:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/nMvmo000000000000000000000000000000000000000000000Q92DJT00epzmULsYQqWuQBmjbAsWTw%40sfdc.net.

Reply via email to