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
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, Google Ads API Team
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 Ads API Team
Google\Protobuf\Internal\RepeatedField Object
(
)
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.
Thanks and regards,
Xiaoming, Google Ads API Team
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 you also please share the complete request and response logs along with the client customer id and the report results via the Reply privately to author option?
Thanks and regards,
Xiaoming, Google Ads API Team
Hi,
We have received the logs and will discuss further in the new thread.
Thanks and regards,
Xiaoming, Google Ads API Team
Call to undefined method Google\Protobuf\Internal\RepeatedField::getCap()
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
|
||||||