30 #ifndef GOOGLE_ANALYTICS_API_AD_WORDS_ACCOUNT_H_ 31 #define GOOGLE_ANALYTICS_API_AD_WORDS_ACCOUNT_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_analytics_api::AdWordsAccount");
93 return Storage().isMember(
"autoTaggingEnabled");
100 MutableStorage()->removeMember(
"autoTaggingEnabled");
108 const Json::Value& storage = Storage(
"autoTaggingEnabled");
109 return client::JsonValueToCppValueHelper<bool >(storage);
121 client::SetJsonValueFromCppValueHelper<bool >(
122 value, MutableStorage(
"autoTaggingEnabled"));
131 return Storage().isMember(
"customerId");
138 MutableStorage()->removeMember(
"customerId");
146 const Json::Value& v = Storage(
"customerId");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
159 *MutableStorage(
"customerId") = value.data();
168 return Storage().isMember(
"kind");
175 MutableStorage()->removeMember(
"kind");
183 const Json::Value& v = Storage(
"kind");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"kind") = value.data();
203 #endif // GOOGLE_ANALYTICS_API_AD_WORDS_ACCOUNT_H_ const StringPiece get_kind() const
Definition: ad_words_account.h:182
const StringPiece get_customer_id() const
Definition: ad_words_account.h:145
void set_kind(const StringPiece &value)
Definition: ad_words_account.h:195
bool has_auto_tagging_enabled() const
Definition: ad_words_account.h:92
void set_customer_id(const StringPiece &value)
Definition: ad_words_account.h:158
void set_auto_tagging_enabled(bool value)
Definition: ad_words_account.h:120
const StringPiece GetTypeName() const
Definition: ad_words_account.h:83
bool get_auto_tagging_enabled() const
Definition: ad_words_account.h:107
Definition: ad_words_account.h:50
bool has_kind() const
Definition: ad_words_account.h:167
Definition: account.cc:41
void clear_customer_id()
Definition: ad_words_account.h:137
void clear_kind()
Definition: ad_words_account.h:174
void clear_auto_tagging_enabled()
Definition: ad_words_account.h:99
bool has_customer_id() const
Definition: ad_words_account.h:130