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‬‏ <‪[email protected]‬‏>:‬

> Hi Yair,
>
> Thank you for reaching out. When you use KeywordPlanService
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v3.services#google.ads.googleads.v3.services.KeywordPlanService.GenerateHistoricalMetrics>
> 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
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/CADCiZfcyrJr0G%2BgxYXVFuntt8tOdqGs7pnA01xePEBton9D1OQ%40mail.gmail.com.

Reply via email to