I want get currency code for child account under my manager account.
*- I am using the following query *
query_currency = """
SELECT
currency_constant.code
FROM currency_constant
"""
*- and parsing the data in the data frame*
act_ids=['xxxxxxxxxx','yyyyyyyyyy']
for act_id in act_ids:
response = ga_service.search_stream(act_id, query_currency)
for batch in response:
for row in batch.results:
currency = row.currency_constant
dic_currency["Currency_code"].append(currency.code)
df_currency=pd.DataFrame(dic_currency)
*- I am getting following output*
*df_currency.Currency_code.unique()*
Out[31]:
array(['AED', 'AOA', 'ARS', 'AUD', 'BDT', 'BGN', 'BHD', 'BND', 'BOB',
'BRL', 'BSD', 'BWP', 'BYN', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP',
'CRC', 'CSD', 'CZK', 'DEM', 'DKK', 'DOP', 'DZD', 'EEK', 'EGP', 'ETB',
'EUR', 'FJD', 'FRF', 'GBP', 'GEL', 'GHS', 'GTQ', 'HKD', 'HRK', 'HUF',
'IDR', 'ILS', 'INR', 'JOD', 'JPY', 'KES', 'KHR', 'KRW', 'KWD', 'KZT',
'LBP', 'LKR', 'LTL', 'MAD', 'MGA', 'MMK', 'MTL', 'MUR', 'MWK', 'MXN',
'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB',
'PEN', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'ROL', 'RON', 'RSD', 'RUB',
'RWF', 'SAR', 'SEK', 'SGD', 'SIT', 'SKK', 'SVC', 'THB', 'TND', 'TRL',
'TRY', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEB', 'VEF',
'VES', 'VND', 'XAF', 'XOF', 'ZAR', 'ZMW'], dtype=object)
I was expecting the currency code of the particular account in the loop not
all. What be done here?
Ideally, I want the currency code to be displayed alongside the metrics (
i.e. cost). What can be done here?
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/c53c5fcc-0fbf-4f37-a201-273cb86f6c70n%40googlegroups.com.