Campaign Creation - Google Ads API

42 views
Skip to first unread message

Zied Chaari

unread,
Apr 18, 2019, 12:06:05 PM4/18/19
to AdWords API and Google Ads API Forum
Hi all,

Is there a way to create a campaign with their elements (AdGroup, Ads, Keyword, Criteria, Extension, ...) with only one call?
Like Facebook is doing, I build a campaign object with all its elements (AdSet, Ads, ...), and the Facebook API create all the objects.

PS: I'm using Google Ads API V1.0

Thank You;
Zied
 

googleadsapi...@google.com

unread,
Apr 18, 2019, 3:02:08 PM4/18/19
to AdWords API and Google Ads API Forum
Hello Zied,

You should be able to create multiple entities like Campaign, AdGroup and AdGroupAd in one go using the Batch jobs with temporary ids, you can refer this guide for more information. You could refer this code sample on how to use temporary Ids in JAVA, code samples in other languages can be found here. Please let me know if you have any further questions.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/875ff192-8d71-4ad4-895c-f6c90e28ebf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zied Chaari

unread,
Apr 19, 2019, 5:00:58 AM4/19/19
to AdWords API and Google Ads API Forum
Hello Sai,

Thank you for your quick response.
Is there an example with Google Ads API not Google AdWords API?

Regards,
Zied

googleadsapi...@google.com

unread,
Apr 19, 2019, 11:05:39 AM4/19/19
to acteol...@gmail.com, AdWords API and Google Ads API Forum
Hello Zied,

As of now the code sample is not available for Google Ads API. I will let my team know regarding your interest, meanwhile you can keep an eye on our blog for information related to the future releases.


Regards,
Sai Teja, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.

Zied Chaari

unread,
Apr 19, 2019, 11:19:41 AM4/19/19
to AdWords API and Google Ads API Forum
Ok, Thank you

Zied Chaari

unread,
Apr 19, 2019, 1:23:20 PM4/19/19
to AdWords API and Google Ads API Forum
Hi Sai,

Another question please,
Is there a way to validate my whole campaign using the batch job?

Cause when I added this line of code => batchJobService.RequestHeader.validateOnly = true;, 
I got an exception on this line https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201809/CampaignManagement/AddCompleteCampaignsUsingBatchJob.cs#L124, saying object :Object reference not set to an instance of an object

Thanks
Zied



On Fri, Apr 19, 2019 at 5:19 PM Zied Chaari <acteol...@gmail.com> wrote:
Ok, Thank you

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to

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 adwords-api...@googlegroups.com.

googleadsapi...@google.com

unread,
Apr 19, 2019, 3:31:42 PM4/19/19
to AdWords API and Google Ads API Forum
Hello Zied,

Could you please share the complete SOAP logs to investigate further? You could refer here to enable logging. Please use the reply privately to the author option while sending the logs.


Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.


If not -- reply to this email and tell us what else we can do to help.

Reply all
Reply to author
Forward
0 new messages