Hello,

I am trying to fetch the budget amount of the campaign using the Ad Query. 
Earlier I was using the "Amount" field of the campaign with AdWords api. In 
the new Google Ad api I am using the "campaign_budget.amount_micros" field 
based on the documentation 
(https://developers.google.com/google-ads/api/fields/v10/campaign_budget#campaign_budget.amount_micros).
 
So below is my final query.

SELECT campaign.id, campaign.name, campaign.status, 
campaign.serving_status,  campaign_budget.amount_micros, 
campaign.start_date, campaign.end_date
FROM campaign WHERE campaign.status IN ('ENABLED', 'PAUSED') ORDER BY 
campaign.id

But I am having difficulty extracting the "amount_micros" field from the 
result. I am using Java Client and the parameter I can see if 
"googleAdsRow.getCampaign().getCampaignBudget()" but this is not returning 
the amount in micro value. Could you please suggest how can I extract the 
budget amount from the above query result?

Thanks,
Bikram.


On Monday, April 4, 2022 at 3:22:12 AM UTC-7 adsapi wrote:

> Hi Bikram,
>
> Thank you for the update.
>
> I work with Heidi and we are glad to hear that. If you have further 
> questions, please feel free to add those in this thread. Our team will be 
> happy to assist and give support to you.
>
> Regards,
> [image: Google Logo] 
> Carmela 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2ZJGKQ:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/2c093d3c-0390-4500-bbd2-33edeb133d22n%40googlegroups.com.
  • Qu... Bikram Bhuyan
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Bikram Bhuyan
        • ... Bikram Bhuyan
          • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to