Campaign metrics adjustments

23 views
Skip to first unread message

Vitalii Mamontov

unread,
Mar 29, 2023, 12:01:38 PM3/29/23
to Google Ads API and AdWords API Forum
Hi!

I am working on retrieving information about campaign metrics (cpc, ctr, clicks...) and I want to know if there are any header or something like that, which will show me that resource was\was not changed?

I send this request:
https://googleads.googleapis.com/v12/customers/7864943450/googleAds:searchStream
With body:

{
    "query""SELECT segments.date, campaign.start_date, campaign.end_date, customer.idcampaign.name, customer.currency_code, campaign.id, campaign.advertising_channel_type,  campaign.status, metrics.average_cpc, metrics.average_cost,  campaign.manual_cpm, metrics.impressions, metrics.clicks, campaign_budget.amount_micros  FROM campaign WHERE campaign.name = 'kryladnepr.dp.ua' AND  segments.date >= '2017-02-14' AND segments.date <= '2022-02-13'"
} If there are any flags or headers in Google Ads API, which will say that. if I send this request again that the data was\was not changed. In Facebook Graph API we use ETag, like If-None-Match to perform this operation.
Best regards,
Vitalii Mamontov
Developer @ Creatio

Google Ads API Forum Advisor

unread,
Mar 29, 2023, 5:56:47 PM3/29/23
to vinti...@gmail.com, adwor...@googlegroups.com

Hi Vitalii,

Thank you for reaching out to Google Ads API Forum.



I want to know if there are any header or something like that, which will show me that resource was\was not changed?

>> Moving forward with your concern, there is no flag that functions like this in Google Ads API. For your reference, you may refer below guides regarding API call structure.


Let us know if you have further questions related to Google Ads API.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2kCx5R:ref
Reply all
Reply to author
Forward
0 new messages