Re: Changing frequency capping on display campaigns using JAVA api

2016-11-20 Thread 'Peter Oliquino' via AdWords API Forum
Hi Aba,

My apologies for the delay. I believe it should be 
campaign.setFrequencyCap() instead of campaign.getFrequencyCap() if you 
wish to change the frequency capping. You may refer below to the sample 
code snippet and SOAP request on how to update your campaign with a new 
frequency cap :

//Set your preferred impressions value (10L), Time Unit and 
Level

FrequencyCap frequencyCap = new FrequencyCap(10L, TimeUnit.DAY, 
Level.CAMPAIGN);
// Create campaign with updated status.
Campaign campaign = new Campaign();
campaign.setId(campaignId);
campaign.setStatus(CampaignStatus.PAUSED);
campaign.setFrequencyCap(frequencyCap);
// Create operations.
CampaignOperation operation = new CampaignOperation();
operation.setOperand(campaign);
operation.setOperator(Operator.SET);
CampaignOperation[] operations = new CampaignOperation[] {operation};




http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

https://adwords.google.com/api/adwords/cm/v201609"; 
soapenv:mustUnderstand="0">
YOUR_CUSTOMER_ID
YOUR_DEVELOPER_TOKEN
YOUR_USER_AGENT
false
false



https://adwords.google.com/api/adwords/cm/v201609";>

SET

YOUR_CAMPAIGN_ID
PAUSED

10
DAY
CAMPAIGN








I hope this helps and kindly let me know if you require more help with the 
issue.

Best regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ba4170a0-aaa8-4023-b562-bfe9f6e7efb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Changing frequency capping on display campaigns using JAVA api

2016-11-19 Thread Aba
   

campaign.getFrequencyCap().setImpressions((long)theNumber);
CampaignOperation operation = new CampaignOperation();
operation.setOperand(campaign);
operation.setOperator(Operator.SET);
  CampaignOperation[] operations = new CampaignOperation[] {operation};
 CampaignReturnValue result = campaignService.mutate(operations);

is the solution .

On Saturday, November 19, 2016 at 10:26:39 PM UTC-5, Aba wrote:
>
> Hi all,
>
> How would I change the frequency capping on display campaigns using the 
> JAVA adwords api ? 
>
> Thanks for all your help,
> Aba
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a5c10e33-bca5-4a22-924b-c8166a72a546%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Changing frequency capping on display campaigns using JAVA api

2016-11-19 Thread Aba
Hi all,

How would I change the frequency capping on display campaigns using the 
JAVA adwords api ? 

Thanks for all your help,
Aba

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c9034f96-6a7d-4fbf-b31f-df22e105170e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.