Re: Why is this a constant?

2017-07-31 Thread 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum
hard code values like API keys using a constant, why use a > constant for values that change like CAMPAIGN_ID? > > On Monday, July 31, 2017 at 1:19:12 AM UTC-4, Ivan Bautista wrote: >> >> Hi Ildar, >> >> Please note that all code samples >> <h

Re: Why is this a constant?

2017-07-31 Thread Ildar Khakimov
Sure and that's why I wrote "i'm just curios" :) Is this some kind of a security thing? I discussed this on a few forums and normally we hard code values like API keys using a constant, why use a constant for values that change like CAMPAIGN_ID? On Monday, July 31, 2017 at 1:19:1

Re: Why is this a constant?

2017-07-30 Thread 'Ivan Bautista' via AdWords API Forum
Hi Ildar, Please note that all code samples from the client libraries are mainly used as reference for development. Thus, you may modify them according to what best suit your application requirements. If you want to set the

Why is this a constant?

2017-07-29 Thread Ildar Khakimov
Just curios, the PHP examples include a class called GetAdGroups Which goes like class GetAdGroups { > const CAMPAIGN_ID = ""; Why is CAMPAIGN_ID a constant? It's a variable that should be changeable, it's not like an API key or something. Just trying to understand the