Hello IIdar,

The constant in the code example serves some purposes:

   - It's used to highlight that this is where you change to your desired 
   value. The code example can't be run as is if you don't change that.
   - Though it's true that the value can be changed (unlike API keys that 
   are mostly fixed), but it's a constant in one program run--it's never 
   changed once the program is executed.

Note that in our more generic examples, we do use normal variables for 
objects we got from the API server directly.

Hope this help clarify your curiosity. :)
Please let me know if you have further questions.

Regards,
Thanet, AdWords API Team

On Tuesday, August 1, 2017 at 1:25:43 AM UTC+9, Ildar Khakimov wrote:
>
> 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:12 AM UTC-4, Ivan Bautista wrote:
>>
>> Hi Ildar,
>>
>> Please note that all code samples 
>> <https://developers.google.com/adwords/api/docs/clientlibraries> 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 CAMPAIGN_ID as a non-constant 
>> variable, then you may do so.
>>
>> Let me know if you have any other AdWords API related questions.
>>
>> Regards,
>> Ivan 
>> 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 [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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
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/f6883297-57c6-4c1c-a86b-7aa4d4065e9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Why ... Ildar Khakimov
    • ... 'Ivan Bautista' via AdWords API Forum
      • ... Ildar Khakimov
        • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum

Reply via email to