Hello,
I have set frequency capping while updating the campaign with PHP client 
library as given below

$campaign = new Campaign([
                'resource_name' => 
ResourceNames::forCampaign(self::CUSTOMER_ID, $this->campaign_id),
                'status' => CampaignStatus::PAUSED,
                'frequency_caps'=>[ new 
\Google\Ads\GoogleAds\V3\Common\FrequencyCapEntry([
                    'key' => new 
\Google\Ads\GoogleAds\V3\Common\FrequencyCapKey([
                        'level'=> 
\Google\Ads\GoogleAds\V3\Enums\FrequencyCapLevelEnum\FrequencyCapLevel::CAMPAIGN,
                        'event_type'=> 
\Google\Ads\GoogleAds\V3\Enums\FrequencyCapEventTypeEnum\FrequencyCapEventType::IMPRESSION,
                        'time_unit'=> 
\Google\Ads\GoogleAds\V3\Enums\FrequencyCapTimeUnitEnum\FrequencyCapTimeUnit::DAY,
                    ]),
                    'cap' => new Int32Value(['value'=>10])

                ])],
                'frequency_caps'=> new 
\Google\Protobuf\Internal\RepeatedField()
            ]);

            $campaignOperation = new CampaignOperation();
            $campaignOperation->setUpdate($campaign);
            
$campaignOperation->setUpdateMask(FieldMasks::allSetFieldsOf($campaign));

            // Issues a mutate request to update the campaign.
            $campaignServiceClient = 
$this->googleAdsClient->getCampaignServiceClient();
            $response = $campaignServiceClient->mutateCampaigns(
                self::CUSTOMER_ID,
                [$campaignOperation]
            );

The problem is I cannot reset frequency capping to null. Is there a way to 
remove frequency capping settings from the campaign?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6a2dc6fd-d901-463c-bbf2-2445e2f480da%40googlegroups.com.

Reply via email to