Re: How to get the Entire Campaign object when creating the campaign

2022-01-12 Thread Wayne
Amazing! That helped. Thanks a lot! :) On Wednesday, January 12, 2022 at 11:05:35 PM UTC+5:30 adsapi wrote: > Hi Wayne, > > You can make a MutateCampaignsRequest > > and > set the response_content_type field

Re: How to get the Entire Campaign object when creating the campaign

2022-01-12 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Wayne, You can make a MutateCampaignsRequest and set the response_content_type field to MUTABLE_RESOURCE. This determines whether the mutable resource or just the resource name should be returned post mutation. Please see this example of its usage. Alternatively, if you have the resource na

Re: How to get the Entire Campaign object when creating the campaign

2022-01-11 Thread Wayne
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

RE: How to get the Entire Campaign object when creating the campaign

2022-01-11 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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,