Thanks Matt for the quick response there!

I had a doubt, wouldn't GET request be a not-so-good idea, since there is a 
limit on GET requests(1000/day)? Further we don't want to make any external 
Google API call.
All we need is the campaign ID from the resource name! Is there a function 
for that without making a GET / Search request ? This would be quite 
helpful since we can't change the Database schema at our end. All primary 
keys are campaign ID, adgroup ID and so on... We can't change it to 
campaign resource name or adgroup resource name. Please help us in figuring 
out how to extract the campaign ID from the resource name WITHOUT making an 
API call to Google!

Help would be appreciated. Thanks!

On Tuesday, January 11, 2022 at 8:34:17 PM UTC+5:30 adsapi wrote:

> Hi Wayne,
>
> Thanks for reaching out. To fetch the entire campaign object with all of 
> its attributes, you must issue a GET request.
>
> You can create a campaign object, referencing an existing campaign with: 
>
>       Campaign campaign =
>           Campaign.newBuilder()
>               .setResourceName(ResourceNames.campaign(customerId, 
> campaignId))
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2UinQf: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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/76235291-6841-4def-85c3-4f864c227660n%40googlegroups.com.
  • Ho... Wayne
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Wayne
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to