Re: Campaign settings using Google Ads API

2021-03-03 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. You could query the campaign.frequency_caps from the campaign resource. You could refer to this code snippet on how to for loop the results. Thanks and regards, Xiaoming, Google Ads API Team Xiaoming Google Ads API Team ref:_00D1U1174p._5004Q23I8vx:ref -- --

Re: Campaign settings using Google Ads API

2021-03-03 Thread cv
Hi, When I tried to retrieved frequency cap like this It is giving me error. *Call to undefined method Google\Protobuf\Internal\RepeatedField::getCap()* Is this not correct way to get repeated fields? foreach ($campaign->getFrequencyCaps() as $frequencyCapEntry) {

Re: Campaign settings using Google Ads API

2021-03-02 Thread cv
Hi, I need to get FrequencyCapMaxImpressions from Adwords API to Google Ads API. I am not able to get those details in Google Ads API. I am using campaign.frequency_caps fields in SELECT agsing FROM campaign. Can you please check which fields I need to use? On Friday, 14 August 2020 at 22:11:4

Re: Campaign settings using Google Ads API

2020-08-14 Thread Google Ads API Forum Advisor Prod
Hi, We have received the logs and will discuss further in the new thread. Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5004Q23I8vx:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=

Re: Campaign settings using Google Ads API

2020-08-14 Thread cv
I have shared the log on the email. On Friday, 14 August 2020 at 10:51:59 UTC+5:30 cv wrote: > Hi Xiaoming, > > *Reply privately to author* is disabled for me. I am not able to post. > > But My main question is ignored. > > When I tried to fetch Location and Language through campaign_criterion

Re: Campaign settings using Google Ads API

2020-08-13 Thread cv
Hi Xiaoming, *Reply privately to author* is disabled for me. I am not able to post. But My main question is ignored. When I tried to fetch Location and Language through campaign_criterion view. I am getting error that *Call to a member function getLanguageConstant() on null* I cannot use *camp

Re: Campaign settings using Google Ads API

2020-08-13 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. For the frequency cap, you would need to query campaign.frequency_caps from campaign resource first and then you can use $googleAdsRow->getCampaign()->getFrequencyCaps() to get the object. The result is object representing key-value pair which is expected. Could

Re: Campaign settings using Google Ads API

2020-08-13 Thread cv
Hi, When I tried to fetch Location and Language through campaign_criterion view. I am getting error that *Call to a member function getLanguageConstant() on null* I cannot use *campaign_criterion.location.geo_target_constant using * *campaign_criterion *view? If this is the case how I can identi

Re: Campaign settings using Google Ads API

2020-08-12 Thread cv
Hello Xiaoming, Yes, I was fetching like this only. $googleAdsRow->getCampaignCriterion()->getLocation()->getGeoTargetConstantUnwrapped() $googleAdsRow->getCampaignCriterion()->getLanguage()->getLanguageConstantUnwrapped() It was already set by the user in the UI, I am just getting those v

Re: Campaign settings using Google Ads API

2020-08-12 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. Please confirm that you have set the Location and Language using CampaignCriterionService. For frequency_caps, as it contains both key and value so it is returned as an object. You would need to query the campaign resource to fetch the campaign.frequency_caps. T

Re: Campaign settings using Google Ads API

2020-08-12 Thread cv
Hi Xiaoming, I am not able to get Location and Language using campaignCriterion Service. I was using like this Query: SELECT campaign.id, campaign.name, campaign.status, campaign.serving_status,

Re: Campaign settings using Google Ads API

2020-08-10 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. Yes, you could get the same results by calling the service CampaignCriterionService.GetCampaignCriterion() but getting them through the report is always recommended since the get call in the Google Ads API is more expensive. Thanks and regards, Xiaoming, Google

Re: Campaign settings using Google Ads API

2020-08-10 Thread cv
Hello Xiaoming, campaign_criterion I can only access through GAQL? Is there no other way to directly get those values? Means like v201809 we can get the data through service usage. Thanks, On Friday, 7 August 2020 at 21:37:44 UTC+5:30 adsapiforumadvisor wrote: > Hi, > > Thank you for reachin

Re: Campaign settings using Google Ads API

2020-08-07 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. You could see a list of the CampaignCriterion that you can apply to the campaign and then query the campaign_criterion resource to fetch the corresponding data. For Network and Budget, you could query them from the campaign resource. Thanks and regards, Xiaoming

Re: Campaign settings using Google Ads API

2020-08-06 Thread cv
Hi, Xiaoming, I wanted to get those data and not set the data. If you could help how I can get all campaign settings would be helpful. Thanks, On Friday, 7 August 2020 at 01:24:14 UTC+5:30 adsapiforumadvisor wrote: > Hi, > > Thank you for reaching out. You could refer to this code sample >

RE: Campaign settings using Google Ads API

2020-08-06 Thread Google Ads API Forum Advisor Prod
Hi, Thank you for reaching out. You could refer to this code sample on how to set the budget on the campaign. You could refer to this code sample on how to set the targeting criteria on the campaign. Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5004Q23I8vx:ref -- -- =~=

Campaign settings using Google Ads API

2020-08-06 Thread cv
Hi, I wanted to get All Campaign settings, how would I get same using Google Ads API beta? I wanted to get Network Targetting Set Locations Set Languages Set Budget Settings (Accelarate/Standard etc..) Any other settings we can set for campaigns. Thanks, -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=