Getting the Frequency Capping Value of a campaign through JAVA Adwords API

2016-08-06 Thread Aba
Hello,

I am trying to read the value of the "Frequency capping" value set on each 
of 1000 display campaigns I have.

I have managed to filter the display campaigns, but it seems that the 
.getFrequencyCap() method is always returning null. 





Has anyone managed to get that working ?

Thanks for your help.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/313fc742-5db7-4ac2-b183-08e9ef165751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: AdvertisingChannelType null

2016-08-06 Thread Aba
Hey Josh,

Thanks ! It worked.

On Thursday, August 4, 2016 at 5:10:35 PM UTC-4, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi Aba,
>
> You could use the GetCampaigns.java example 
> 
>  in 
> the client library, but modify it slightly to also include the selector 
> field *CampaignField.AdvertisingChannelType*. You can see the complete 
> list of selector fields either on the CampaignField enum in the library 
> 
>  or 
> on the Selector fields page 
> . 
> As a general rule, the AdWords API will only return fields that you include 
> in your selector.
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, August 4, 2016 at 5:00:17 PM UTC-4, Aba wrote:
>>
>> Hi Josh,
>>
>> Would you happen to know how I can get the type of an AdWords Campaign 
>> (SEARCH, DISPLAY, SHOPPING etc..) using the current Java API then ? 
>>
>> Thanks,
>> Aba
>>
>> On Thursday, August 4, 2016 at 4:48:20 PM UTC-4, Josh Radcliff (AdWords 
>> API Team) wrote:
>>>
>>> Hi,
>>>
>>> As of version 2.14.0 of the Java client library 
>>> , we 
>>> are no longer supporting or updating the beta AdWords Utility Extension. If 
>>> you would like to continue to use the extension, you are free to do so, but 
>>> you will have to update it for new versions of the AdWords API in your own 
>>> clone of the project.
>>>
>>> Thank you,
>>> Josh, AdWords API Team
>>>
>>> On Thursday, August 4, 2016 at 2:27:42 PM UTC-4, Aba wrote:

 Hello guys,


 I tried it out with the latest 201607 API , and still got the same 
 issue. It's defaulting to NULL. 

 any news ? 

 On Thursday, February 19, 2015 at 10:12:55 AM UTC-5, Josh Radcliff 
 (AdWords API Team) wrote:
>
> Thanks for filing the issue. I just replied with the root cause there 
> - I'll post updates to that issue once we have it fixed.
>
> Cheers,
> Josh, AdWords API Team
>
> On Thursday, February 19, 2015 at 7:21:29 AM UTC-5, David B. wrote:
>>
>>  Ok, done !
>>
>>  Regards
>>
>> Le mercredi 18 février 2015 18:51:21 UTC+1, Josh Radcliff (AdWords 
>> API Team) a écrit :
>>>
>>> Hi,
>>>
>>> Thanks for pointing this out. Could you file an issue in the Java 
>>> Client Library 
>>> ? This will 
>>> allow us to track the problem + will ensure you get updates once it's 
>>> fixed.
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>> On Wednesday, February 18, 2015 at 12:02:53 PM UTC-5, David B. wrote:

 Hi guys,

 Here a sample code, using the utility extension. I'm trying to get 
 the AdvertisingChannel value for each campaign, but I get a null 
 value. I 
 tried (firstly) to get ExtendedManagedCampaigns, but nothing is set. 

 Is it a bug from the utility extension (so I'll post a feature 
 request), from the account (not updated ? - don't think so), or 
 something 
 not handled by v201409 (open to shortlisted parters, as it can 
 happend) ?

 Thanks for your help !

 Cheers

 import 
 com.google.api.ads.adwords.axis.utility.extension.ExtendedManagedCustomer;
 import 
 com.google.api.ads.adwords.axis.utility.extension.ExtendedMcc;
 import 
 com.google.api.ads.adwords.axis.v201409.cm.AdvertisingChannelType;
 import com.google.api.ads.adwords.axis.v201409.cm.Campaign;
 import 
 com.google.api.ads.common.lib.conf.ConfigurationLoadException;
 import com.google.api.ads.common.lib.exception.OAuthException;
 import com.google.api.ads.common.lib.exception.ValidationException;
 import java.rmi.RemoteException;
 import java.util.List;


 public class NewMain {

 /**
  * @param args the command line arguments
  */
 public static void main(String[] args) throws OAuthException, 
 ValidationException, ConfigurationLoadException, RemoteException {
 
 ExtendedMcc mcc = ExtendedMcc.withOAuth2FromFile();
 ExtendedManagedCustomer customer = 
 mcc.getExtendedManagedCustomer(accountIdLong);
 List campaigns = customer.getCampaigns();
 
 for (Campaign c : campaigns) {
 AdvertisingChannelType channelType = 
 c

Re: How to get Customer Id using Access token for Non-MCC account

2016-08-06 Thread Shibu Alist
Hello Mike,

Thanks for your reply!!!
Does this works in test environment ?.
Because i get error "Missing CLIENT_CUSTOMER_ID" when using CustomerService 

 in 
test environment.


On Friday, August 5, 2016 at 7:36:39 AM UTC-7, Michael Cloonan (AdWords API 
Team) wrote:
>
> Hello,
>
> Use the CustomerService 
> 
>  
> for this. The CustomerService does not require a CustomerID header to be 
> specified, and will return the currently authenticated customer. The 
> Customer 
> 
>  
> that is returned includes the ID, which you can then specify in other 
> requests, as well as other information about the customer.
>
> Regards,
> Mike, AdWords API Team
>
> On Friday, August 5, 2016 at 2:42:04 AM UTC-4, Shibu Alist wrote:
>>
>> Hi Anthony,
>>
>> Thanks for your reply
>>
>> But i am still confused as i get the same answer from everywhere.
>>
>> Let me clear our application flow.
>>
>> Actually we are building an application, where normal users will connect 
>> their adword account by going through OAuth Authentication process.
>> After Authentication, they should be able to create campaign from our 
>> website. But we have to pass customerid for every request.How to get that 
>> customerID? as Authentication process doesn't return it. 
>>
>> ManagedCustomerService 
>> 
>>   
>> will be used if client account is added in MCC account. But what if any 
>> random user, who is not under any MCC account wants to use our application 
>> . How he can achieve this ? I have seen many websites doing this But i 
>> didn't get any solution yet .
>>
>> Please do the needful.
>>
>> On Friday, August 5, 2016 at 5:09:58 AM UTC+5:30, Anthony Madrigal wrote:
>>>
>>> Hi Shibu,
>>>
>>> You can use the ManagedCustomerService 
>>> 
>>>  from 
>>> your MCC level in order to get the client accounts under it. This will give 
>>> you the customer Ids of these accounts as well if you select the field 
>>> customerId 
>>> 
>>> .
>>>
>>> Cheers,
>>> Anthony
>>> 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/6288d8eb-dce6-4f72-bfdc-721e9319df54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.