fetching optimization score of campaign

13 views
Skip to first unread message

Dushyant

unread,
Nov 5, 2024, 12:42:15 AM11/5/24
to Google Ads API and AdWords API Forum
curl --location 'https://googleads.googleapis.com/v17/customers/7571879790/googleAds:search' \
--header 'Content-Type: application/json' \
--header 'developer-token: 0-4PjaUzBnyeiqsEkhbpgg' \
--header 'login-customer-id: 8663393180' \
--header 'Authorization: Bearer ya29.a0AeDClZADxsi4bUX3N13Zkia7teAnxXP8AWWLTJ0oo1Ush0laIrktx3S0TyVMowKV4jDBxcC0ORxkz6YUMKvbl4fxowFs-pLSogHDmfG91w8FVsT8NDV2yR4Hna4OWfCz0BCOjtbcmtVOFSMBcnvMyFWv8iSJHyXhquohHeipycUaCgYKAYsSARMSFQHGX2MixHZe9zhyPupP6WXZWT2Lxw0178' \
--data '{
"query" : "SELECT campaign.id, campaign.name, campaign.optimization_score, metrics.optimization_score_url, metrics.optimization_score_uplift FROM campaign where campaign.id = 21809558073"
}'

i used this curl to get optimization score for a campaign. and i get the following response :
{
"results": [
{
"campaign": {
"resourceName": "customers/7571879790/campaigns/21809558073",
"name": "Latest performance max-2",
"id": "21809558073"
},
"metrics": {
"optimizationScoreUplift": 0
}
}
],
"fieldMask": "campaign.id,campaign.name,campaign.optimizationScore,metrics.optimizationScoreUrl,metrics.optimizationScoreUplift",
"queryResourceConsumption": "736"
} kindly guide me how can i fetch optimization score for the campaign as i am not getting in this response although the campaign is active.

Google Ads API Forum Advisor

unread,
Nov 5, 2024, 9:37:46 AM11/5/24
to dkno...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

I have checked your account (757-187-9790) for the campaign ID (21809558073) and the optimization score is not available for that campaign in the UI that is the reason the API is not returning that data.

You may also refer to these Optimization score and recommendations and About optimization score article for more information.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGiAC:ref" (ADR-00274352)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages