Generate Historical Metrics

39 views
Skip to first unread message

yair viner

unread,
May 11, 2020, 3:05:30 PM5/11/20
to AdWords API and Google Ads API Forum
Hi,
in order to generate an Historical Metrics
i need to create the following:
  1. Creates a KeywordPlan. 
  2. add a KeywordPlanCampaign to the KeywordPlan
  3. add KeywordPlanAdGroups to the KeywordPlanCampaign.
  4. add KeywordPlanKeywords to the KeywordPlanAdGroups.
does it really create a Campigan with keywords and the client will need to pay for it or it only to get the Historical Metrics?

Thanks
Yair

Google Ads API Forum Advisor Prod

unread,
May 11, 2020, 3:48:25 PM5/11/20
to blooooooooo...@gmail.com, adwor...@googlegroups.com

Hi Yair,

Thank you for reaching out. When you use KeywordPlanService to generate the Historical Metrics you are not creating a campaign to run the ads and its only purpose is to generate data so it will not lead to any expense. Let me know if you have any further questions.

Thanks and regards,
Xiaoming, Google Ads API Team



 

ref:_00D1U1174p._5004Q1zLLWl:ref

yair viner

unread,
May 12, 2020, 1:05:44 AM5/12/20
to Google Ads API Forum Advisor Prod, adwor...@googlegroups.com
But before that we are creating a campaign via  KeywordPlanCampaignServiceClient,

try (KeywordPlanCampaignServiceClient client =
googleAdsClient.getLatestVersion().createKeywordPlanCampaignServiceClient()) {
// Adds the campaign.
MutateKeywordPlanCampaignsResponse response =
client.mutateKeywordPlanCampaigns(String.valueOf(customerId), Arrays.asList(op));

// Displays the result.
String resourceName = response.getResults(0).getResourceName();
System.out.printf("Created campaign for keyword plan: %s%n", resourceName);
return resourceName;
}

‫בתאריך יום ב׳, 11 במאי 2020 ב-22:48 מאת ‪Google Ads API Forum Advisor Prod‬‏ <‪adsapifor...@gmail.com‬‏>:‬
Reply all
Reply to author
Forward
0 new messages